[test suite] update afl-compile-code-coverage.sh to not use afl-gcc
This commit is contained in:
parent
d058493d3b
commit
211f1fb5a2
@ -360,7 +360,6 @@ EXTRA_DIST = \
|
||||
test/afl/compile/afl-compile-code-coverage.sh \
|
||||
test/afl/compile/afl-compile-no-enable-arg.sh \
|
||||
test/afl/compile/afl-compile.sh \
|
||||
test/afl/compile/afl-gen-code-coverage.sh \
|
||||
test/afl/doc/AFL_status_screen.png \
|
||||
test/afl/README \
|
||||
test/afl/fuzzing-wrappers/client-rc.sh \
|
||||
|
||||
@ -1,9 +1,16 @@
|
||||
#!/bin/sh -x
|
||||
#
|
||||
# Recompile fwknop with AFL code enabled, but without using afl-gcc. The
|
||||
# purpose of this is to allow the generated fuzzing corpus under an AFL
|
||||
# fuzzing run to be sent back through the fwknop code to see which
|
||||
# functions/lines were executed by AFL. This can be used to help tune the
|
||||
# original test case inputs.
|
||||
#
|
||||
|
||||
cd ..
|
||||
./rm-coverage-files.sh
|
||||
cd afl
|
||||
|
||||
./compile/afl-compile.sh --enable-profile-coverage
|
||||
cd ../../
|
||||
./extras/apparmor/configure_args.sh --enable-afl-fuzzing --enable-profile-coverage $@
|
||||
make clean
|
||||
make
|
||||
cd test/afl
|
||||
|
||||
exit $?
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
#!/bin/sh -x
|
||||
|
||||
RESULTS_DIR=afl-lcov-results
|
||||
[ -d $RESULTS_DIR ] && rm -rf $RESULTS_DIR
|
||||
|
||||
cd ..
|
||||
./gen-coverage-report.sh
|
||||
mv lcov-results afl/$RESULTS_DIR
|
||||
cd afl
|
||||
|
||||
echo "[+] Code coverage available in the $RESULTS_DIR/ directory"
|
||||
|
||||
exit $?
|
||||
Loading…
x
Reference in New Issue
Block a user