summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez5/bluez5/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5/run-ptest')
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/run-ptest31
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
3cd unit
4
5failed=0
6all=0
7
8for 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
24done
25
26if [ "$failed" -eq 0 ] ; then
27 echo "All $all tests passed"
28else
29 echo "$failed of $all tests failed"
30fi
31