diff options
Diffstat (limited to 'meta/recipes-kernel/oprofile/oprofile/run-ptest')
-rw-r--r-- | meta/recipes-kernel/oprofile/oprofile/run-ptest | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile/run-ptest b/meta/recipes-kernel/oprofile/oprofile/run-ptest new file mode 100644 index 0000000000..583ee1b8a8 --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofile/run-ptest | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/bin/bash | ||
2 | saved_dir=$PWD | ||
3 | for dir in */tests ; do | ||
4 | cd $dir | ||
5 | for atest in * ; do | ||
6 | if [ \( -x $atest \) -a \( -f $atest \) ] ; then | ||
7 | ./$atest > ${atest}.stdout 2> ${atest}.stderr | ||
8 | if [ $? = 0 ] ; then | ||
9 | echo "PASS: $dir $atest" | ||
10 | rm ${atest}.stdout ${atest}.stderr | ||
11 | else | ||
12 | echo "FAIL: ${dir}/${atest}" | ||
13 | fi | ||
14 | fi | ||
15 | done | ||
16 | cd $saved_dir | ||
17 | done | ||
18 | |||