diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pydbus/run-ptest')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pydbus/run-ptest | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydbus/run-ptest b/meta-python/recipes-devtools/python/python3-pydbus/run-ptest new file mode 100644 index 0000000000..782ceed3bb --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydbus/run-ptest | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | for case in `find tests -type f -name '*.sh'`; do | ||
| 4 | bash $case python3 >$case.output 2>&1 | ||
| 5 | ret=$? | ||
| 6 | if [ $ret -ne 0 ]; then | ||
| 7 | cat $case.output | ||
| 8 | echo "FAIL: ${case}" | ||
| 9 | elif grep -i 'SKIP' $case.output; then | ||
| 10 | echo "SKIP: ${case}" | ||
| 11 | else | ||
| 12 | echo "PASS: ${case}" | ||
| 13 | fi | ||
| 14 | rm -f $case.output | ||
| 15 | done \ No newline at end of file | ||
