Lines Matching +full:cmdline +full:- +full:tools
2 CMDLINE="/prg/tests/normal/tiff-4.0.4/tools/thumbnail @@ /dev/null"
3 INDIR="/prg/tests/normal/tiff-4.0.4/in-small"
5 test -z "$1" -o -n "$4" && {
6 echo "Syntax: $0 commit-id <indir> \"<cmdline>\""
9 echo "afl-fuzz on a defind target and input directory, saving timing,"
10 echo "fuzzer_stats and profiling output to \"<commit-id>.out\""
15 echo " cmdline: \"$CMDLINE\""
20 test -n "$2" && INDIR=$2
21 test -n "$3" && CMDLINE=$3
25 test -z "$CFLAGS" && CFLAGS="-O3 -funroll-loops"
26 export CFLAGS="$CFLAGS -pg"
27 export LDFLAGS="$LDFLAGS -pg"
29 test -x ./afl-fuzz || { echo "BUILD FAIL $C" > $C.out ; make clean ; exit 1 ; }
33 time nice -n -20 ./afl-fuzz -i "$INDIR" -s 123 -o out-profile -- $CMDLINE 2>> $C.out
36 echo RUNTIME: `expr $STOP - $START` >> $C.out
37 cat out-profile/default/fuzzer_stats >> $C.out
38 gprof ./afl-fuzz gmon.out >> $C.out
41 rm -rf out-profile gmon.out