summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/json-c/json-c/run-ptest
blob: 9ee6095ea22c6f267070fba6f5166800ef0c9a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# This script is used to run json-c test suites
cd tests

ret_val=0
for i in test*.test; do
    # test_basic is not an own testcase, just
    # contains common code of other tests
    if [ "$i" != "test_basic.test" ]; then
        if ./$i > json-c_test.log 2>&1 ; then
            echo PASS: $i
        else
            ret_val=1
            echo FAIL: $i
        fi
    fi
done

exit $ret_val