diff options
author | hexcoder- <heiko@hexco.de> | 2021-02-06 11:24:04 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-02-06 11:24:04 +0100 |
commit | e81f30828fbe6374b0fd3be03ebc13cfb490f8a3 (patch) | |
tree | 02511623a750210f0a5346331862aeca6085ba24 | |
parent | bf289ce50e60ffe07d916915cdcca99e59479386 (diff) | |
download | afl++-e81f30828fbe6374b0fd3be03ebc13cfb490f8a3.tar.gz |
fix test-qemu-mode.sh to run standalone
-rwxr-xr-x | test/test-libextensions.sh | 10 | ||||
-rwxr-xr-x | test/test-qemu-mode.sh | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/test/test-libextensions.sh b/test/test-libextensions.sh index 905a4cbc..40a898c8 100755 --- a/test/test-libextensions.sh +++ b/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 diff --git a/test/test-qemu-mode.sh b/test/test-qemu-mode.sh index 73b39a43..0cd6ef40 100755 --- a/test/test-qemu-mode.sh +++ b/test/test-qemu-mode.sh @@ -3,6 +3,16 @@ . ./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 |