diff options
author | van Hauser <vh@thc.org> | 2020-04-08 18:28:35 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-04-08 18:28:35 +0200 |
commit | 7793ca4055fd29f1d0a4223d1f122694fbafb1e4 (patch) | |
tree | 646567e6ffceea71c7cafc96f90b7193878af35b | |
parent | 3353a23fcbce32f51dd43fe5bb6d619576573e72 (diff) | |
download | afl++-7793ca4055fd29f1d0a4223d1f122694fbafb1e4.tar.gz |
fix travis - heiko test your changes on linux pls ;)
-rwxr-xr-x | test/test.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index 871345f0..0666ca36 100755 --- a/test/test.sh +++ b/test/test.sh @@ -616,7 +616,6 @@ test -e ../libdislocator.so && { rm -f test-compcov test -e ../libradamsa.so && { # on FreeBSD need to set AFL_CC - test `uname -s` = 'FreeBSD' && { if type clang >/dev/null; then export AFL_CC=`command -v clang` @@ -653,6 +652,16 @@ test -e ../libradamsa.so && { INCOMPLETE=1 } +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 +} + $ECHO "$BLUE[*] Testing: qemu_mode" test -e ../afl-qemu-trace && { gcc -pie -fPIE -o test-instr ../test-instr.c |