xref: /aosp_15_r20/external/AFLplusplus/test/test-post.sh (revision 08b48e0b10e97b33e7b60c5b6e2243bd915777f2)
1#!/bin/sh
2AFL_TEST_DEPTH=$((AFL_TEST_DEPTH-1))
3
4if [ $AFL_TEST_DEPTH = 0 ]; then
5# All runs done :)
6
7$ECHO "$GREY[*] $AFL_TEST_COUNT test cases completed.$RESET"
8test "$INCOMPLETE" = "0" && $ECHO "$GREEN[+] all test cases executed"
9test "$INCOMPLETE" = "1" && $ECHO "$YELLOW[-] not all test cases were executed"
10test "$CODE" = "0" && $ECHO "$GREEN[+] all tests were successful :-)$RESET"
11test "$CODE" = "0" || $ECHO "$RED[!] failure in tests :-($RESET"
12exit $CODE
13
14fi
15