about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-11-05 18:41:23 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-11-05 18:41:23 +0100
commite13fdfb2ce4d3f97c8fa4ef3adfaa93e84835e39 (patch)
tree1bc35f826a3f8e0307a3ae1898c6283aeab1a1d2
parent73cb58726649b860cbea9eef727e90ad14be4b31 (diff)
downloadafl++-e13fdfb2ce4d3f97c8fa4ef3adfaa93e84835e39.tar.gz
reduce time for unicorn compcov test
-rwxr-xr-xtest/test.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test.sh b/test/test.sh
index f086ee50..89310389 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -486,10 +486,12 @@ test -d ../unicorn_mode/unicorn && {
       rm -f errors
 
       echo -e '\xbf' > in/in
-      $ECHO "$GREY[*] running afl-fuzz for unicorn_mode compcov, this will take approx 35 seconds"
+      # This seed is close to the first byte of the comparison.
+      # If CompCov works, a new tuple will appear in the map => new input in queue
+      $ECHO "$GREY[*] running afl-fuzz for unicorn_mode compcov, this will take approx 15 seconds"
       {
         export AFL_COMPCOV_LEVEL=2
-        ../afl-fuzz -V35 -U -i in -o out -d -- "$PY" ../unicorn_mode/samples/compcov_x64/compcov_test_harness.py @@ >>errors 2>&1
+        ../afl-fuzz -V15 -U -i in -o out -- "$PY" ../unicorn_mode/samples/compcov_x64/compcov_test_harness.py @@ >>errors 2>&1
       } >>errors 2>&1
       test -n "$( ls out/queue/id:000001* 2> /dev/null )" && {
         $ECHO "$GREEN[+] afl-fuzz is working correctly with unicorn_mode compcov"