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