aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-01-18 16:46:14 +0100
committerhexcoder- <heiko@hexco.de>2020-01-18 16:46:14 +0100
commitdb5d5017155a24cb04bef97a0cf97d45456e7901 (patch)
treeb4c6047bda38dd77ecdeacb3b0389703bfde60e9
parent00b1d16ac61e9f86cd0c1defec6299e0a5e3fdde (diff)
downloadafl++-db5d5017155a24cb04bef97a0cf97d45456e7901.tar.gz
set AFL_CC for libradamsa test (needed on FreeBSD)
-rwxr-xr-xtest/test.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh
index 8f40773c..5bab0d7a 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -457,7 +457,13 @@ test -e ../libdislocator.so && {
}
rm -f test-compcov
test -e ../libradamsa.so && {
- test -e test-instr.plain || ../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1
+ # 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
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
test -e test-instr.plain && {