diff options
author | hexcoder- <heiko@hexco.de> | 2020-08-07 20:22:13 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-08-07 20:22:13 +0200 |
commit | 33141cf8a3b0e86d01ab5112c2172d0f7004e9c1 (patch) | |
tree | 28cef5557088355f2edab1e39373d1b2d9e005d1 | |
parent | 8551d8e48e18a5a50955945b5f73aff3cb492de5 (diff) | |
download | afl++-33141cf8a3b0e86d01ab5112c2172d0f7004e9c1.tar.gz |
tests: cleanup core files, more time for llvm cmplog
-rwxr-xr-x | test/test-all.sh | 2 | ||||
-rwxr-xr-x | test/test-custom-mutators.sh | 6 | ||||
-rwxr-xr-x | test/test-libextensions.sh (renamed from test/test-compcov.sh) | 0 | ||||
-rwxr-xr-x | test/test-llvm.sh | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/test/test-all.sh b/test/test-all.sh index 7175493b..8df4bef9 100755 --- a/test/test-all.sh +++ b/test/test-all.sh @@ -10,7 +10,7 @@ . ./test-gcc-plugin.sh -. ./test-compcov.sh +. ./test-libextensions.sh . ./test-qemu-mode.sh diff --git a/test/test-custom-mutators.sh b/test/test-custom-mutators.sh index b0a05e15..4d73739f 100755 --- a/test/test-custom-mutators.sh +++ b/test/test-custom-mutators.sh @@ -54,7 +54,7 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && { } # Clean - rm -rf out errors + rm -rf out errors core.* # Run afl-fuzz w/ multiple C mutators $ECHO "$GREY[*] running afl-fuzz with multiple custom C mutators, this will take approx 5 seconds" @@ -73,7 +73,7 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && { } # Clean - rm -rf out errors + rm -rf out errors core.* # Run afl-fuzz w/ the Python mutator $ECHO "$GREY[*] running afl-fuzz for the Python mutator, this will take approx 5 seconds" @@ -97,7 +97,7 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && { } # Clean - rm -rf in out errors + rm -rf in out errors core.* rm -rf ${CUSTOM_MUTATOR_PATH}/__pycache__/ rm -f test-multiple-mutators test-custom-mutator libexamplemutator.so libexamplemutator2.so } || { diff --git a/test/test-compcov.sh b/test/test-libextensions.sh index 905a4cbc..905a4cbc 100755 --- a/test/test-compcov.sh +++ b/test/test-libextensions.sh diff --git a/test/test-llvm.sh b/test/test-llvm.sh index 85cc16f6..feeb3992 100755 --- a/test/test-llvm.sh +++ b/test/test-llvm.sh @@ -172,7 +172,7 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && { $ECHO "$RED[!] llvm_mode laf-intel floatingpoint splitting feature compilation failed" CODE=1 } - rm -f test-floatingpoint test.out in/in errors + rm -f test-floatingpoint test.out in/in errors core.* echo foobar.c > instrumentlist.txt AFL_DEBUG=1 AFL_LLVM_INSTRUMENT_FILE=instrumentlist.txt ../afl-clang-fast -o test-compcov test-compcov.c > test.out 2>&1 test -e test-compcov && test_compcov_binary_functionality ./test-compcov && { @@ -208,7 +208,7 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && { $ECHO "$YELLOW[-] we cannot test llvm_mode cmplog because it is not present" INCOMPLETE=1 } - rm -rf errors test-cmplog in + rm -rf errors test-cmplog in core.* ../afl-clang-fast -o test-persistent ../examples/persistent_demo/persistent_demo.c > /dev/null 2>&1 test -e test-persistent && { echo foo | ../afl-showmap -m ${MEM_LIMIT} -o /dev/null -q -r ./test-persistent && { |