File: test-post.sh

package info (click to toggle)
aflplusplus 4.33c-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,740 kB
  • sloc: ansic: 111,574; cpp: 16,019; sh: 4,766; python: 4,546; makefile: 1,000; javascript: 521; java: 43; sql: 3; xml: 1
file content (14 lines) | stat: -rwxr-xr-x 468 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
AFL_TEST_DEPTH=$((AFL_TEST_DEPTH-1))

if [ $AFL_TEST_DEPTH = 0 ]; then
# All runs done :)

$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"
test "$CODE" = "0" || $ECHO "$RED[!] failure in tests :-($RESET"
exit $CODE

fi