blob: 903c8c8d957f2b9636aec0f27110d7fdea6fae59 [file] [log] [blame]
Andrew Geisslerd221e032020-07-10 16:13:21 -05001#!/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