Browse Source

Add Fuzz Test to travis Firestore-iOS-xcodebuild (#1617)

* Does not run any fuzz targets, but ensures that the fuzzing code compiles and is still compatible with our APIs.
Mina Farid 7 years ago
parent
commit
6739dea3b1
1 changed files with 10 additions and 0 deletions
  1. 10 0
      scripts/build.sh

+ 10 - 0
scripts/build.sh

@@ -235,6 +235,16 @@ case "$product-$method-$platform" in
         -scheme "Firestore_IntegrationTests_$platform" \
         "${xcb_flags[@]}" \
         build
+
+    # Firestore_FuzzTests_iOS require a Clang that supports -fsanitize-coverage=trace-pc-guard.
+    if [[ "$xcode_major" -ge 9 ]]; then
+      RunXcodebuild \
+          -workspace 'Firestore/Example/Firestore.xcworkspace' \
+          -scheme "Firestore_FuzzTests_iOS" \
+          "${xcb_flags[@]}" \
+          FUZZING_TARGET="NONE" \
+          test
+    fi
     ;;
 
   Firestore-cmake-macOS)