diff options
author | van Hauser <vh@thc.org> | 2019-10-14 11:08:25 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2019-10-14 11:08:25 +0200 |
commit | 540de896e346694dd6df03bf4b3676388b53fecf (patch) | |
tree | 42d72697d16a2c9c9a574eb4c2bab515febf7d0f /test | |
parent | dcfccb2a0d6d351588d6e312410974b36462bbce (diff) | |
download | AFLplusplus-540de896e346694dd6df03bf4b3676388b53fecf.tar.gz |
more time for test case
Diffstat (limited to 'test')
-rwxr-xr-x | test/test.sh | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/test/test.sh b/test/test.sh index 94d28047..d5372233 100755 --- a/test/test.sh +++ b/test/test.sh @@ -102,7 +102,9 @@ test -e ../${AFL_GCC} -a -e ../afl-showmap -a -e ../afl-fuzz && { test -n "$( ls out/queue/id:000002* 2> /dev/null )" && { $ECHO "$GREEN[+] afl-fuzz is working correctly with ${AFL_GCC}" } || { - cat errors + echo CUT------------------------------------------------------------------CUT + cat errors + echo CUT------------------------------------------------------------------CUT $ECHO "$RED[!] afl-fuzz is not working correctly with ${AFL_GCC}" } rm -rf in out errors @@ -156,7 +158,9 @@ test -e ../afl-clang-fast && { test -n "$( ls out/queue/id:000002* 2> /dev/null )" && { $ECHO "$GREEN[+] afl-fuzz is working correctly with llvm_mode" } || { + echo CUT------------------------------------------------------------------CUT cat errors + echo CUT------------------------------------------------------------------CUT $ECHO "$RED[!] afl-fuzz is not working correctly with llvm_mode" } rm -rf in out errors @@ -231,7 +235,9 @@ test -e ../afl-qemu-trace && { test -n "$( ls out/queue/id:000002* 2> /dev/null )" && { $ECHO "$GREEN[+] afl-fuzz is working correctly with qemu_mode" } || { + echo CUT------------------------------------------------------------------CUT cat errors + echo CUT------------------------------------------------------------------CUT $ECHO "$RED[!] afl-fuzz is not working correctly with qemu_mode" } rm -f errors @@ -246,7 +252,9 @@ test -e ../afl-qemu-trace && { test -n "$( ls out/queue/id:000002* 2> /dev/null )" && { $ECHO "$GREEN[+] afl-fuzz is working correctly with qemu_mode libcompcov" } || { + echo CUT------------------------------------------------------------------CUT cat errors + echo CUT------------------------------------------------------------------CUT $ECHO "$RED[!] afl-fuzz is not working correctly with qemu_mode libcompcov" } } || $ECHO "$YELLOW[-] we cannot test qemu_mode libcompcov because it is not present" @@ -261,7 +269,9 @@ test -e ../afl-qemu-trace && { test -n "$( ls out/queue/id:000002* 2> /dev/null )" && { $ECHO "$GREEN[+] afl-fuzz is working correctly with persistent qemu_mode" } || { + echo CUT------------------------------------------------------------------CUT cat errors + echo CUT------------------------------------------------------------------CUT $ECHO "$RED[!] afl-fuzz is not working correctly with persistent qemu_mode" exit 1 } @@ -286,20 +296,24 @@ test -d ../unicorn_mode/unicorn && { test -n "$( ls out/queue/id:000002* 2> /dev/null )" && { $ECHO "$GREEN[+] afl-fuzz is working correctly with unicorn_mode" } || { + echo CUT------------------------------------------------------------------CUT cat errors + echo CUT------------------------------------------------------------------CUT $ECHO "$RED[!] afl-fuzz is not working correctly with unicorn_mode" } rm -f errors - $ECHO "$GREY[*] running afl-fuzz for unicorn_mode compcov, this will take approx 15 seconds" + $ECHO "$GREY[*] running afl-fuzz for unicorn_mode compcov, this will take approx 25 seconds" { export AFL_COMPCOV_LEVEL=2 - ../afl-fuzz -V15 -U -i in -o out -d -- python ../unicorn_mode/samples/compcov_x64/compcov_test_harness.py @@ >>errors 2>&1 + ../afl-fuzz -V25 -U -i in -o out -d -- python ../unicorn_mode/samples/compcov_x64/compcov_test_harness.py @@ >>errors 2>&1 } >>errors 2>&1 test -n "$( ls out/queue/id:000001* 2> /dev/null )" && { $ECHO "$GREEN[+] afl-fuzz is working correctly with unicorn_mode compcov" } || { + echo CUT------------------------------------------------------------------CUT cat errors + echo CUT------------------------------------------------------------------CUT $ECHO "$RED[!] afl-fuzz is not working correctly with unicorn_mode compcov" } rm -rf in out errors |