diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-kernel/oprofile/oprofile/run-ptest | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
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 | |||