about summary refs log tree commit diff
path: root/test/test.sh
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-04-26 16:51:21 +0200
committerGitHub <noreply@github.com>2020-04-26 16:51:21 +0200
commit62ec52dd956d62957b431ef804b7956124823f00 (patch)
tree706a66892726df089a9d8bf6e8a6e8b1665ff5a8 /test/test.sh
parentce9c6df45639db922feafb55259e20c7e82af0bf (diff)
parentea876e59a8c1abc979ea05aa4dbe660608aaa9ba (diff)
downloadafl++-62ec52dd956d62957b431ef804b7956124823f00.tar.gz
Merge pull request #336 from AFLplusplus/dev
pull again ...
Diffstat (limited to 'test/test.sh')
-rwxr-xr-xtest/test.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh
index 5af35ec3..b8d4208f 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -951,7 +951,15 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && {
   test -e test-custom-mutator.c -a -e ${CUSTOM_MUTATOR_PATH}/example.c -a -e ${CUSTOM_MUTATOR_PATH}/example.py && {
     unset AFL_CC
     # Compile the vulnerable program
-    ../afl-clang-fast -o test-custom-mutator test-custom-mutator.c > /dev/null 2>&1
+    test -e ../afl-clang-fast && {
+      ../afl-clang-fast -o test-custom-mutator test-custom-mutator.c > /dev/null 2>&1
+    } || {
+      test -e ../afl-gcc-fast && {
+        ../afl-gcc-fast -o test-custom-mutator test-custom-mutator.c > /dev/null 2>&1
+      } || {
+        ../afl-gcc -o test-custom-mutator test-custom-mutator.c > /dev/null 2>&1
+      }
+    }
     # Compile the custom mutator
     make -C ../examples/custom_mutators libexamplemutator.so > /dev/null 2>&1
     test -e test-custom-mutator -a -e ${CUSTOM_MUTATOR_PATH}/libexamplemutator.so && {