aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-10-14 11:08:25 +0200
committervan Hauser <vh@thc.org>2019-10-14 11:08:25 +0200
commit540de896e346694dd6df03bf4b3676388b53fecf (patch)
tree42d72697d16a2c9c9a574eb4c2bab515febf7d0f /test
parentdcfccb2a0d6d351588d6e312410974b36462bbce (diff)
downloadAFLplusplus-540de896e346694dd6df03bf4b3676388b53fecf.tar.gz
more time for test case
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.sh20
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