diff options
author | Mina Farid <minafarid@google.com> | 2018-06-04 14:36:55 -0400 |
---|---|---|
committer | Konstantin Varlamov <var-const@users.noreply.github.com> | 2018-06-04 14:36:55 -0400 |
commit | a135ee17175f8f186e73252263b8dbc3785f3d3c (patch) | |
tree | b76fdea7a5bfe27159c497e445a079cce005d1c0 /Firestore/Example/Podfile | |
parent | ce61f4e0e654e7a16dad023e1b8df32449d5a00f (diff) |
Add a new Xcode target and scheme for fuzz tests (#1364)
Created `Firestore_FuzzTests_iOS` Xcode target as a duplicate of the target
`Firestore_Tests_iOS`.
- Added `-fsanitize-coverage=trace-pc-guard` to the compiler flags to enable
code coverage by libFuzzer fuzzing driver.
- Modified the files to compile to the fuzz testing ones.
- Added a Principal testing class.
* Modified the `Podfile` to include `LibFuzzer.podspec` as a dependency for
the target `Firestore_FuzzTests_iOS`.
* Added a skeleton for fuzz testing. Currently does not test any code but
the fuzzing works fine and calls an empty `LLVMFuzzerTestOneInput`
with different input values.
- This means that fuzzing does not finish or crash.
Diffstat (limited to 'Firestore/Example/Podfile')
-rw-r--r-- | Firestore/Example/Podfile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Firestore/Example/Podfile b/Firestore/Example/Podfile index 88cf93a..dc5af48 100644 --- a/Firestore/Example/Podfile +++ b/Firestore/Example/Podfile @@ -37,4 +37,10 @@ target 'Firestore_Example_iOS' do target 'SwiftBuildTest' do platform :ios, '8.0' end + + target 'Firestore_FuzzTests_iOS' do + inherit! :search_paths + + pod 'LibFuzzer', :podspec => 'LibFuzzer.podspec' + end end |