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