diff options
author | hexcoder- <heiko@hexco.de> | 2020-01-07 07:12:05 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-01-07 07:12:05 +0100 |
commit | f88910755b280fdd8681dfcfff62d76a4fc416e5 (patch) | |
tree | 320e534c6b347b9289eb0f43538f8ff132cf44d6 /test | |
parent | d176c59ea28c3830dce2b7aa5ac404bbd769420b (diff) | |
parent | b2bee5c32a4bd4d7b063f1189ac71a9658114f71 (diff) | |
download | afl++-f88910755b280fdd8681dfcfff62d76a4fc416e5.tar.gz |
Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus
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 44cced08..86a76529 100755 --- a/test/test.sh +++ b/test/test.sh @@ -13,6 +13,8 @@ OK=OK diff -q test.1 test.2 >/dev/null 2>&1 || OK= rm -f test.1 test.2 test -z "$OK" && { echo Error: diff -q is not working ; exit 1 ; } +test -z "$LLVM_CONFIG" && LLVM_CONFIG=llvm-config + ECHO="printf %b\\n" $ECHO \\101 2>&1 | grep -qE '^A' || { @@ -179,7 +181,7 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && { if which clang >/dev/null; then export AFL_CC=`which clang` else - export AFL_CC=`llvm-config --bindir`/clang + export AFL_CC=`$LLVM_CONFIG --bindir`/clang fi ../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 |