diff options
Diffstat (limited to 'meta/recipes-support/ptest-runner/files/ptest-runner')
-rw-r--r-- | meta/recipes-support/ptest-runner/files/ptest-runner | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-support/ptest-runner/files/ptest-runner b/meta/recipes-support/ptest-runner/files/ptest-runner new file mode 100644 index 0000000000..c618f1148d --- /dev/null +++ b/meta/recipes-support/ptest-runner/files/ptest-runner | |||
@@ -0,0 +1,27 @@ | |||
1 | #!/bin/sh | ||
2 | ANYFAILED=no | ||
3 | echo "START: $0" | ||
4 | |||
5 | for libdir in /usr/lib* | ||
6 | do | ||
7 | |||
8 | [ ! -d "$libdir" ] && continue | ||
9 | |||
10 | for x in `ls -d $libdir/*/ptest 2>/dev/null` | ||
11 | do | ||
12 | [ ! -f $x/run-ptest ] && continue | ||
13 | [ -h `dirname $x` ] && continue | ||
14 | |||
15 | date "+%Y-%m-%dT%H:%M" | ||
16 | echo "BEGIN: $x" | ||
17 | cd "$x" | ||
18 | ./run-ptest || ANYFAILED=yes | ||
19 | echo "END: $x" | ||
20 | date "+%Y-%m-%dT%H:%M" | ||
21 | done | ||
22 | done | ||
23 | echo "STOP: $0" | ||
24 | if [ "$ANYFAILED" = "yes" ]; then | ||
25 | exit 1 | ||
26 | fi | ||
27 | exit 0 | ||