xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-test/cunit/files/run-ptest (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2
3ptestdir=$(dirname "$(readlink -f "$0")")
4cd $ptestdir/tests
5./test_cunit > cunit_test_out.tmp
6
7echo "--- Test output ---"
8cat cunit_test_out.tmp
9echo ""
10echo "--- ptest result ---"
11
12grep "Failures: 0" cunit_test_out.tmp > /dev/null
13if [ $? -eq 0 ]; then
14	echo "PASS: cunit"
15else
16	echo "FAIL: cunit"
17fi
18
19rm -f cunit_test_out.tmp
20