diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/test.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh index 8f40773c..c770c1b7 100755 --- a/test/test.sh +++ b/test/test.sh @@ -457,6 +457,12 @@ test -e ../libdislocator.so && { } rm -f test-compcov test -e ../libradamsa.so && { + # on FreeBSD need to set AFL_CC + if which clang >/dev/null; then + export AFL_CC=`which clang` + else + export AFL_CC=`$LLVM_CONFIG --bindir`/clang + fi test -e test-instr.plain || ../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1 test -e test-instr.plain || ../afl-gcc-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1 test -e test-instr.plain || ../${AFL_GCC} -o test-instr.plain ../test-instr.c > /dev/null 2>&1 |