about summary refs log tree commit diff
path: root/test/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.sh')
-rwxr-xr-xtest/test.sh28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/test.sh b/test/test.sh
index 1a3f562c..f4cc1db6 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -423,7 +423,7 @@ test -e ../afl-clang-lto -a -e ../afl-llvm-lto-instrumentation.so && {
   }
   rm -f test-instr.plain
 
-# Disabled whitelist and persistent until I have a different solution -mh
+# Disabled whitelist until I have a different solution -mh
 #  echo foobar.c > whitelist.txt
 #  AFL_LLVM_WHITELIST=whitelist.txt ../afl-clang-lto -o test-compcov test-compcov.c > test.out 2>&1
 #  test -e test-compcov && {
@@ -438,19 +438,19 @@ test -e ../afl-clang-lto -a -e ../afl-llvm-lto-instrumentation.so && {
 #    CODE=1
 #  }
 #  rm -f test-compcov test.out whitelist.txt
-#  ../afl-clang-lto -o test-persistent ../experimental/persistent_demo/persistent_demo.c > /dev/null 2>&1
-#  test -e test-persistent && {
-#    echo foo | ../afl-showmap -o /dev/null -q -r ./test-persistent && {
-#      $ECHO "$GREEN[+] llvm_mode LTO persistent mode feature works correctly"
-#    } || {
-#      $ECHO "$RED[!] llvm_mode LTO persistent mode feature failed to work"
-#      CODE=1
-#    }
-#  } || {
-#    $ECHO "$RED[!] llvm_mode LTO persistent mode feature compilation failed"
-#    CODE=1
-#  }
-#  rm -f test-persistent
+  ../afl-clang-lto -o test-persistent ../examples/persistent_demo/persistent_demo.c > /dev/null 2>&1
+  test -e test-persistent && {
+    echo foo | ../afl-showmap -o /dev/null -q -r ./test-persistent && {
+      $ECHO "$GREEN[+] llvm_mode LTO persistent mode feature works correctly"
+    } || {
+      $ECHO "$RED[!] llvm_mode LTO persistent mode feature failed to work"
+      CODE=1
+    }
+  } || {
+    $ECHO "$RED[!] llvm_mode LTO persistent mode feature compilation failed"
+    CODE=1
+  }
+  rm -f test-persistent
 } || {
   $ECHO "$YELLOW[-] LTO llvm_mode not compiled, cannot test"
   INCOMPLETE=1