diff options
Diffstat (limited to 'meta-oe/recipes-test/cunit/files/run-ptest')
-rw-r--r-- | meta-oe/recipes-test/cunit/files/run-ptest | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-oe/recipes-test/cunit/files/run-ptest b/meta-oe/recipes-test/cunit/files/run-ptest new file mode 100644 index 0000000000..903c8c8d95 --- /dev/null +++ b/meta-oe/recipes-test/cunit/files/run-ptest | |||
@@ -0,0 +1,19 @@ | |||
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 | ||