Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | # This script is used to run json-c test suites | ||||
4 | cd tests | ||||
5 | |||||
6 | ret_val=0 | ||||
7 | for i in test*.test; do | ||||
8 | # test_basic is not an own testcase, just | ||||
9 | # contains common code of other tests | ||||
10 | if [ "$i" != "test_basic.test" ]; then | ||||
11 | if ./$i > json-c_test.log 2>&1 ; then | ||||
12 | echo PASS: $i | ||||
13 | else | ||||
14 | ret_val=1 | ||||
15 | echo FAIL: $i | ||||
16 | fi | ||||
17 | fi | ||||
18 | done | ||||
19 | |||||
20 | exit $ret_val |