mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
cunit: add ptest
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
ptestdir=$(dirname "$(readlink -f "$0")")
|
||||
cd $ptestdir/tests
|
||||
./test_cunit > cunit_test_out.tmp
|
||||
|
||||
echo "--- Test output ---"
|
||||
cat cunit_test_out.tmp
|
||||
echo ""
|
||||
echo "--- ptest result ---"
|
||||
|
||||
grep "Failures: 0" cunit_test_out.tmp > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "PASS: cunit"
|
||||
else
|
||||
echo "FAIL: cunit"
|
||||
fi
|
||||
|
||||
rm -f cunit_test_out.tmp
|
||||
Reference in New Issue
Block a user