about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-08-14 00:20:04 +0200
committerDominik Maier <domenukk@gmail.com>2020-08-14 00:20:04 +0200
commitc3a6e7e87053f904214484f4887afc576e016d18 (patch)
treed15ba8b9670e4580d7795c70792b20fc64c92038
parentd0ab83a202ef5bb0614dde01825e4dd48f0da645 (diff)
downloadafl++-c3a6e7e87053f904214484f4887afc576e016d18.tar.gz
testcases indicate count
-rwxr-xr-xtest/test-basic.sh6
-rwxr-xr-xtest/test-post.sh2
-rwxr-xr-xtest/test-pre.sh1
3 files changed, 5 insertions, 4 deletions
diff --git a/test/test-basic.sh b/test/test-basic.sh
index 9e4b03c3..06c40efe 100755
--- a/test/test-basic.sh
+++ b/test/test-basic.sh
@@ -99,8 +99,7 @@ test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc
             ;;
         esac
     } else {
-      $ECHO "$YELLOW[-] no bash available, cannot test afl-cmin.bash"
-      INCOMPLETE=1
+      $ECHO "$GRAY[*] no bash available, cannot test afl-cmin.bash"
     }
     fi
     ../afl-tmin -m ${MEM_LIMIT} -i in/in2 -o in2/in2 -- ./test-instr.plain > /dev/null 2>&1
@@ -119,8 +118,9 @@ test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc
   INCOMPLETE=1
  }
 } || {
- $ECHO "$YELLOW[-] not an intel platform, cannot test afl-gcc"
+ $ECHO "$GREY[[*] not an intel platform, skipped tests of afl-gcc"
  #this is not incomplete as this feature doesnt exist, so all good
+ AFL_TEST_COUNT=$((AFL_TEST_COUNT-1))
 }
 
 . ./test-post.sh
diff --git a/test/test-post.sh b/test/test-post.sh
index c1e22498..0911e2cd 100755
--- a/test/test-post.sh
+++ b/test/test-post.sh
@@ -4,7 +4,7 @@ AFL_TEST_DEPTH=$((AFL_TEST_DEPTH-1))
 if [ $AFL_TEST_DEPTH = 0 ]; then
 # All runs done :)
 
-$ECHO "$GREY[*] all test cases completed.$RESET"
+$ECHO "$GREY[*] $AFL_TEST_COUNT test cases completed.$RESET"
 test "$INCOMPLETE" = "0" && $ECHO "$GREEN[+] all test cases executed"
 test "$INCOMPLETE" = "1" && $ECHO "$YELLOW[-] not all test cases were executed"
 test "$CODE" = "0" && $ECHO "$GREEN[+] all tests were successful :-)$RESET"
diff --git a/test/test-pre.sh b/test/test-pre.sh
index 3e2d475d..e3393962 100755
--- a/test/test-pre.sh
+++ b/test/test-pre.sh
@@ -4,6 +4,7 @@
 # They may set an error code with $CODE=1
 # If tests are incomplete, they may set $INCOMPLETE=1
 
+AFL_TEST_COUNT=$((AFL_TEST_COUNT+1))
 AFL_TEST_DEPTH=$((AFL_TEST_DEPTH+1))
 
 if [ $AFL_TEST_DEPTH = 1 ]; then