diff options
Diffstat (limited to 'meta-oe/recipes-support/libgpiod/files/run-ptest')
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/files/run-ptest | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/meta-oe/recipes-support/libgpiod/files/run-ptest b/meta-oe/recipes-support/libgpiod/files/run-ptest index 3ad737dfc8..60c661fc10 100644 --- a/meta-oe/recipes-support/libgpiod/files/run-ptest +++ b/meta-oe/recipes-support/libgpiod/files/run-ptest | |||
| @@ -1,12 +1,19 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | testbin="gpiod-test" | 3 | testbins="gpiod-test gpio-tools-test gpiod-cxx-test gpiod_py_test.py" |
| 4 | |||
| 4 | ptestdir=$(dirname "$(readlink -f "$0")") | 5 | ptestdir=$(dirname "$(readlink -f "$0")") |
| 5 | cd $ptestdir/tests | 6 | cd $ptestdir/tests |
| 6 | 7 | ||
| 7 | ./$testbin > ./$testbin.out | 8 | for testbin in $testbins; do |
| 8 | if [ $? -ne 0 ]; then | 9 | if test -e ./$testbin; then |
| 9 | echo "FAIL: $testbin" | 10 | ./$testbin > ./$testbin.out |
| 10 | else | 11 | if [ $? -ne 0 ]; then |
| 11 | echo "PASS: $testbin" | 12 | echo "FAIL: $testbin" |
| 12 | fi | 13 | else |
| 14 | echo "PASS: $testbin" | ||
| 15 | fi | ||
| 16 | else | ||
| 17 | echo "SKIP: $testbin" | ||
| 18 | fi | ||
| 19 | done | ||
