summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libgpiod/files/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/libgpiod/files/run-ptest')
-rw-r--r--meta-oe/recipes-support/libgpiod/files/run-ptest21
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
3testbin="gpiod-test" 3testbins="gpiod-test gpio-tools-test gpiod-cxx-test gpiod_py_test.py"
4
4ptestdir=$(dirname "$(readlink -f "$0")") 5ptestdir=$(dirname "$(readlink -f "$0")")
5cd $ptestdir/tests 6cd $ptestdir/tests
6 7
7./$testbin > ./$testbin.out 8for testbin in $testbins; do
8if [ $? -ne 0 ]; then 9 if test -e ./$testbin; then
9 echo "FAIL: $testbin" 10 ./$testbin > ./$testbin.out
10else 11 if [ $? -ne 0 ]; then
11 echo "PASS: $testbin" 12 echo "FAIL: $testbin"
12fi 13 else
14 echo "PASS: $testbin"
15 fi
16 else
17 echo "SKIP: $testbin"
18 fi
19done