Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | ptestdir=$(dirname "$(readlink -f "$0")") | ||||
4 | cd $ptestdir/tests | ||||
5 | ./test_cunit > cunit_test_out.tmp | ||||
6 | |||||
7 | echo "--- Test output ---" | ||||
8 | cat cunit_test_out.tmp | ||||
9 | echo "" | ||||
10 | echo "--- ptest result ---" | ||||
11 | |||||
12 | grep "Failures: 0" cunit_test_out.tmp > /dev/null | ||||
13 | if [ $? -eq 0 ]; then | ||||
14 | echo "PASS: cunit" | ||||
15 | else | ||||
16 | echo "FAIL: cunit" | ||||
17 | fi | ||||
18 | |||||
19 | rm -f cunit_test_out.tmp |