Skip to content

Commit

Permalink
Upstream changes in compile script (#28)
Browse files Browse the repository at this point in the history
* make all.sh conditional to avoid it in cloud build

* add find for covreport on cloud build
  • Loading branch information
Navidem committed Jan 11, 2022
1 parent 383a6fb commit 490fa0a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions oss_fuzz_integration/oss-fuzz-patches.diff
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ index c934d3b5..d6844e63 100755
echo "---------------------------------------------------------------"
echo "CC=$CC"
echo "CXX=$CXX"
@@ -186,6 +200,32 @@ else
@@ -186,6 +200,36 @@ else
fi
fi

Expand All @@ -61,9 +61,13 @@ index c934d3b5..d6844e63 100755
+ find $SRC/ -name "*.data.yaml" -exec cp {} $SRC/inspector-tmp/ \;
+
+ # Move coverage report in case
+ if [ -d "$OUT/fuzzer_stats" ]
+ then
+ cp $OUT/fuzzer_stats/*.covreport $SRC/inspector-tmp/
+ if [[ -z ${CLOUD_BUILD_ENV:+dummy} ]]; then
+ if [ -d "$OUT/fuzzer_stats" ]
+ then
+ cp $OUT/fuzzer_stats/*.covreport $SRC/inspector-tmp/
+ fi
+ else
+ find /workspace/ -name "*.covreport" -exec cp {} $SRC/inspector-tmp/ \;
+ fi
+ ls -la $SRC/inspector-tmp
+
Expand Down

0 comments on commit 490fa0a

Please sign in to comment.