summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/ptest-runner/files/ptest-runner30
1 files changed, 23 insertions, 7 deletions
diff --git a/meta/recipes-support/ptest-runner/files/ptest-runner b/meta/recipes-support/ptest-runner/files/ptest-runner
index 4f3c7ce730..ccb04341c8 100644
--- a/meta/recipes-support/ptest-runner/files/ptest-runner
+++ b/meta/recipes-support/ptest-runner/files/ptest-runner
@@ -1,16 +1,32 @@
1#!/bin/sh 1#!/bin/sh
2 2
3echo "START: $0" 3echo "START: $0"
4cd /usr/lib 4
5for x in * 5for libdir in /usr/lib*
6do 6do
7 if [ -x "/usr/lib/$x/ptest/run-ptest" ]; then 7
8 date "+%Y-%m-%dT%H:%M" 8 [ ! -d "$libdir" ] && continue
9
10 cd "$libdir"
11 for x in `find -L ./ -name run-ptest -type f -perm /u+x,g+x`
12 do
13 # test if a dir is linking to one that they are under same directory
14 # like perl5-->perl
15 ptestdir=`dirname $x|cut -f2 -d"/"`
16 if [ -h "$ptestdir" ]; then
17 linkdir=`readlink -f "$ptestdir"`
18 if [ `dirname "$linkdir"` = "$libdir" ]; then
19 continue
20 fi
21 fi
22
23 date "+%Y-%m-%dT%H:%M"
9 echo "BEGIN: $x" 24 echo "BEGIN: $x"
10 cd /usr/lib/$x/ptest 25 pushd `dirname "$x"`
11 ./run-ptest 26 ./run-ptest
27 popd
12 echo "END: $x" 28 echo "END: $x"
13 date "+%Y-%m-%dT%H:%M" 29 date "+%Y-%m-%dT%H:%M"
14 fi 30 done
15done 31done
16echo "STOP: $0" 32echo "STOP: $0"