mirror of https://github.com/google/oss-fuzz.git
ngolo-fuzzing-x: do not remove generated fuzz targets (#9903)
They will be used for coverage
This commit is contained in:
parent
c09f789073
commit
ef223dc0ca
|
@ -72,7 +72,6 @@ compile_package () {
|
|||
go test -mod=readonly
|
||||
zip -r $OUT/fuzz_ngo_"$pkg_flat"_seed_corpus.zip corpus
|
||||
popd
|
||||
rm -rf fuzz_ng_$pkg_flat/
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@ compile_package () {
|
|||
cp fuzz_ng_$pkg_flat/copy/*.go $SRC/goroot/src/fuzz_ng_$pkg_flat/
|
||||
cp fuzz_ng_$pkg_flat/*.go $SRC/goroot/src/fuzz_ng_$pkg_flat/
|
||||
cp $SRC/goroot/src/$pkg/*_test.go $SRC/goroot/src/fuzz_ng_$pkg_flat/
|
||||
cp -r $SRC/goroot/src/$pkg/testdata $SRC/goroot/src/fuzz_ng_$pkg_flat/ || true
|
||||
sed -i -e 's/^package .*/package 'fuzz_ng_$pkg_flat'/' $SRC/goroot/src/fuzz_ng_$pkg_flat/*.go
|
||||
export FUZZ_NG_CORPUS_DIR=`pwd`/fuzz_ng_$pkg_flat/corpus/
|
||||
pushd $SRC/goroot/src/fuzz_ng_$pkg_flat/
|
||||
|
|
Loading…
Reference in New Issue