skip persistent qemu test when SYS is not intel
MODIFY
test/test.sh
test/test.sh
@@ -563,6 +563,7 @@ test -e ../afl-qemu-trace && {
}
rm -f errors
+ 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/^.......//')`
@@ -591,6 +592,10 @@ test -e ../afl-qemu-trace && {
exit 1
}
rm -rf in out errors
+ } || {
+ $ECHO "$YELLOW[-] not an intel platform, cannot test persistent qemu_mode"
+ }
+
test -e ../qemu_mode/unsigaction/unsigaction32.so && {
${AFL_CC} -o test-unsigaction32 -m32 test-unsigaction.c >> errors 2>&1 && {
./test-unsigaction32

skip persistent qemu test when SYS is not intel