From a135ee17175f8f186e73252263b8dbc3785f3d3c Mon Sep 17 00:00:00 2001 From: Mina Farid Date: Mon, 4 Jun 2018 14:36:55 -0400 Subject: 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. --- .../FuzzTests/Firestore_FuzzTests_iOS-Info.plist | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Firestore/Example/FuzzTests/Firestore_FuzzTests_iOS-Info.plist (limited to 'Firestore/Example/FuzzTests/Firestore_FuzzTests_iOS-Info.plist') diff --git a/Firestore/Example/FuzzTests/Firestore_FuzzTests_iOS-Info.plist b/Firestore/Example/FuzzTests/Firestore_FuzzTests_iOS-Info.plist new file mode 100644 index 0000000..0d53e5f --- /dev/null +++ b/Firestore/Example/FuzzTests/Firestore_FuzzTests_iOS-Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + NSPrincipalClass + FSTFuzzTestsPrincipal + CFBundleVersion + 1 + + -- cgit v1.2.3