testcases indicate count
MODIFY
test/test-basic.sh
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

MODIFY
test/test-post.sh
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"

MODIFY
test/test-pre.sh
test/test-pre.sh
# 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

testcases indicate count