Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame^] | 3 | testbins="gpiod-test gpio-tools-test gpiod-cxx-test gpiod_py_test.py" |
| 4 | |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 5 | ptestdir=$(dirname "$(readlink -f "$0")") |
| 6 | cd $ptestdir/tests |
| 7 | |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame^] | 8 | for testbin in $testbins; do |
| 9 | if test -e ./$testbin; then |
| 10 | ./$testbin > ./$testbin.out |
| 11 | if [ $? -ne 0 ]; then |
| 12 | echo "FAIL: $testbin" |
| 13 | else |
| 14 | echo "PASS: $testbin" |
| 15 | fi |
| 16 | else |
| 17 | echo "SKIP: $testbin" |
| 18 | fi |
| 19 | done |