fix test-qemu-mode.sh to run standalone
MODIFY
test/test-libextensions.sh
test/test-libextensions.sh
@@ -38,14 +38,4 @@ test -e ../libdislocator.so && {
}
rm -f test-compcov
-test -z "$AFL_CC" && {
- if type gcc >/dev/null; then
- export AFL_CC=gcc
- else
- if type clang >/dev/null; then
- export AFL_CC=clang
- fi
- fi
-}
-
. ./test-post.sh

MODIFY
test/test-qemu-mode.sh
test/test-qemu-mode.sh
. ./test-pre.sh
$ECHO "$BLUE[*] Testing: qemu_mode"
+test -z "$AFL_CC" && {
+ if type gcc >/dev/null; then
+ export AFL_CC=gcc
+ else
+ if type clang >/dev/null; then
+ export AFL_CC=clang
+ fi
+ fi
+}
+
test -e ../afl-qemu-trace && {
cc -pie -fPIE -o test-instr ../test-instr.c
cc -o test-compcov test-compcov.c

fix test-qemu-mode.sh to run standalone