oss-fuzz: try fixing build

This commit is contained in:
Marius van der Wijden 2023-10-17 11:08:20 +02:00
parent 091137f85f
commit 341575a734

View file

@ -68,6 +68,7 @@ function compile_fuzzer() {
fuzzer=$3 fuzzer=$3
echo "Building $fuzzer" echo "Building $fuzzer"
cd $path
# Test if file contains a line with "func $function" and "testing.F". # Test if file contains a line with "func $function" and "testing.F".
if [ $(grep -r "func $function" $path | grep "testing.F" | wc -l) -eq 1 ] if [ $(grep -r "func $function" $path | grep "testing.F" | wc -l) -eq 1 ]
@ -84,6 +85,7 @@ function compile_fuzzer() {
cp $corpusfile $OUT/ cp $corpusfile $OUT/
echo "Found seed corpus: $corpusfile" echo "Found seed corpus: $corpusfile"
fi fi
cd -
} }
compile_fuzzer tests/fuzzers/bitutil Fuzz fuzzBitutilCompress compile_fuzzer tests/fuzzers/bitutil Fuzz fuzzBitutilCompress