mirror of https://github.com/google/oss-fuzz.git
[minify] Moved build script upstream (#3867)
This commit is contained in:
parent
f301751aa5
commit
d96459aa05
|
@ -14,18 +14,4 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
function compile_fuzzer {
|
$GOPATH/src/github.com/tdewolff/minify/tests/oss-fuzz-build.sh
|
||||||
path=$1
|
|
||||||
function=$2
|
|
||||||
fuzzer=$3
|
|
||||||
|
|
||||||
go-fuzz -func $function -o $fuzzer.a $path
|
|
||||||
|
|
||||||
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer
|
|
||||||
}
|
|
||||||
|
|
||||||
find $GOPATH/src/github.com/tdewolff/minify/tests/*/ -maxdepth 1 -type d | while read target
|
|
||||||
do
|
|
||||||
fuzz_target=`echo $target | cut -d'/' -f 9`
|
|
||||||
compile_fuzzer github.com/tdewolff/minify/tests/$fuzz_target Fuzz $fuzz_target-fuzzer
|
|
||||||
done
|
|
||||||
|
|
Loading…
Reference in New Issue