diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5/run-ptest')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/run-ptest | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5/run-ptest b/meta/recipes-connectivity/bluez5/bluez5/run-ptest new file mode 100644 index 0000000000..21df00c327 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/run-ptest | |||
@@ -0,0 +1,31 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | cd unit | ||
4 | |||
5 | failed=0 | ||
6 | all=0 | ||
7 | |||
8 | for f in test-*; do | ||
9 | "./$f" | ||
10 | case "$?" in | ||
11 | 0) | ||
12 | echo "PASS: $f" | ||
13 | all=$((all + 1)) | ||
14 | ;; | ||
15 | 77) | ||
16 | echo "SKIP: $f" | ||
17 | ;; | ||
18 | *) | ||
19 | echo "FAIL: $f" | ||
20 | failed=$((failed + 1)) | ||
21 | all=$((all + 1)) | ||
22 | ;; | ||
23 | esac | ||
24 | done | ||
25 | |||
26 | if [ "$failed" -eq 0 ] ; then | ||
27 | echo "All $all tests passed" | ||
28 | else | ||
29 | echo "$failed of $all tests failed" | ||
30 | fi | ||
31 | |||