diff options
Diffstat (limited to 'meta/recipes-support/libunwind/libunwind/run-ptest')
-rw-r--r-- | meta/recipes-support/libunwind/libunwind/run-ptest | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind/run-ptest b/meta/recipes-support/libunwind/libunwind/run-ptest new file mode 100644 index 00000000000..360c2cee8fa --- /dev/null +++ b/meta/recipes-support/libunwind/libunwind/run-ptest @@ -0,0 +1,30 @@ +#! /bin/sh + +FAILED=0 +ALL=0 + +for TEST in $(cat tests); do + ./$TEST + ret=$? + + case "$ret" in + 0) + echo "PASS: $TEST" + ALL=$((ALL + 1)) + ;; + 77) + echo "SKIP: $TEST" + ;; + *) + echo "FAIL: $TEST" + FAILED=$((FAILED + 1)) + ALL=$((ALL + 1)) + ;; + esac +done + +if [ "$FAILED" -eq 0 ] ; then + echo "All $ALL tests passed" +else + echo "$FAILED of $ALL tests failed" +fi |