diff options
author | hexcoder- <heiko@hexco.de> | 2019-09-28 20:32:21 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-09-28 20:32:21 +0200 |
commit | 6e25fde883ce8f3e478ae81b6f0ac2563f1e7bb1 (patch) | |
tree | c4278593364bf0f869069721c6cd5cb0ed7d8621 /test | |
parent | 46955be305a3b504bf202966344fceded34efde8 (diff) | |
download | afl++-6e25fde883ce8f3e478ae81b6f0ac2563f1e7bb1.tar.gz |
FreeBSD: switch to clang by default, and set AFL_CC to fix tests
Diffstat (limited to 'test')
-rwxr-xr-x | test/test.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index 1e094f3c..b3aed628 100755 --- a/test/test.sh +++ b/test/test.sh @@ -41,7 +41,7 @@ unset AFL_LLVM_LAF_SPLIT_COMPARES # on MacOS X we prefer afl-clang over afl-gcc, because # afl-gcc does not work there -test `uname -s` = 'Darwin' && { +test `uname -s` = 'Darwin' -o `uname -s` = 'FreeBSD' && { AFL_GCC=afl-clang } || { AFL_GCC=afl-gcc @@ -105,6 +105,8 @@ test -e ../${AFL_GCC} -a -e ../afl-showmap -a -e ../afl-fuzz && { $ECHO "$BLUE[*] Testing: llvm_mode" test -e ../afl-clang-fast && { + # on FreeBSD need to set AFL_CC + export AFL_CC=`llvm-config --bindir`/clang ../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1 AFL_HARDEN=1 ../afl-clang-fast -o test-compcov.harden test-compcov.c > /dev/null 2>&1 test -e test-instr.plain && { |