about summary refs log tree commit diff
path: root/test/test.sh
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-01-07 07:12:05 +0100
committerhexcoder- <heiko@hexco.de>2020-01-07 07:12:05 +0100
commitf88910755b280fdd8681dfcfff62d76a4fc416e5 (patch)
tree320e534c6b347b9289eb0f43538f8ff132cf44d6 /test/test.sh
parentd176c59ea28c3830dce2b7aa5ac404bbd769420b (diff)
parentb2bee5c32a4bd4d7b063f1189ac71a9658114f71 (diff)
downloadafl++-f88910755b280fdd8681dfcfff62d76a4fc416e5.tar.gz
Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus
Diffstat (limited to 'test/test.sh')
-rwxr-xr-xtest/test.sh4
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