diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-04-13 10:53:37 +0200 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-04-13 10:53:37 +0200 |
commit | 459d8f9ba2bb2af8820a5fddcf57002031bdcaa3 (patch) | |
tree | 4e11ff50fdd38d3d51382b5b3fb6ce8951fe6035 | |
parent | 0022cc478244ce12050e1bc8733ab96104313e4e (diff) | |
download | afl++-459d8f9ba2bb2af8820a5fddcf57002031bdcaa3.tar.gz |
qemu cmplog test.sh
-rwxr-xr-x | test/test.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh index 51304eb6..4295d36b 100755 --- a/test/test.sh +++ b/test/test.sh @@ -736,6 +736,25 @@ test -e ../afl-qemu-trace && { } || { $ECHO "$YELLOW[-] not an intel or arm platform, cannot test qemu_mode compcov" } + + test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc" -o "$SYS" = "aarch64" -o ! "${SYS%%arm*}" && { + $ECHO "$GREY[*] running afl-fuzz for qemu_mode cmplog, this will take approx 10 seconds" + { + ../afl-fuzz -m none -V10 -Q -c 0 -i in -o out -- ./test-compcov >>errors 2>&1 + } >>errors 2>&1 + test -n "$( ls out/queue/id:000001* 2>/dev/null )" && { + $ECHO "$GREEN[+] afl-fuzz is working correctly with qemu_mode cmplog" + } || { + echo CUT------------------------------------------------------------------CUT + cat errors + echo CUT------------------------------------------------------------------CUT + $ECHO "$RED[!] afl-fuzz is not working correctly with qemu_mode cmplog" + CODE=1 + } + rm -f errors + } || { + $ECHO "$YELLOW[-] not an intel or arm platform, cannot test qemu_mode cmplog" + } test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc" -o "$SYS" = "aarch64" -o ! "${SYS%%arm*}" && { $ECHO "$GREY[*] running afl-fuzz for persistent qemu_mode, this will take approx 10 seconds" |