21df00c3277d81e609e87c147f6c95f10308b2af
[AGL/meta-agl.git] / meta-agl / recipes-connectivity / bluez5 / bluez5 / run-ptest
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