diff options
-rwxr-xr-x | test/test.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index 507685db..c6e2e0bd 100755 --- a/test/test.sh +++ b/test/test.sh @@ -563,12 +563,14 @@ test -e ../afl-qemu-trace && { } rm -f errors +$ECHO "debug: $SYS" test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" && { $ECHO "$GREY[*] running afl-fuzz for persistent qemu_mode, this will take approx 10 seconds" { export AFL_QEMU_PERSISTENT_ADDR=`expr 0x4$(nm test-instr | grep "T main" | awk '{print $1}' | sed 's/^.......//')` export AFL_QEMU_PERSISTENT_GPR=1 - ../afl-fuzz -V10 -Q -i in -o out -- ./test-instr > /dev/null 2>&1 +$ECHO "debug: AFL_QEMU_PERSISTENT_ADDR=$AFL_QEMU_PERSISTENT_ADDR + ../afl-fuzz -V10 -Q -i in -o out -- ./test-instr } >>errors 2>&1 test -n "$( ls out/queue/id:000002* 2> /dev/null )" && { $ECHO "$GREEN[+] afl-fuzz is working correctly with persistent qemu_mode" |