File: oss-fuzz-build.sh

package info (click to toggle)
golang-github-tdewolff-minify 2.20.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,388 kB
  • sloc: javascript: 394,644; xml: 25,649; ansic: 253; makefile: 108; python: 108; sh: 47
file content (15 lines) | stat: -rwxr-xr-x 481 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# compile_go_fuzzer can be found in the oss-fuzz repository
root=$(pwd)
find parse/tests/* -maxdepth 0 -type d | while read target
do
    cd $root/$target
    fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev`
    compile_go_fuzzer . Fuzz parse-$fuzz_target gofuzz
done

find minify/tests/* -maxdepth 0 -type d | while read target
do
    cd $root/$target
    fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev`
    compile_go_fuzzer . Fuzz minify-$fuzz_target gofuzz
done