diff options
-rw-r--r-- | meta/recipes-support/ptest-runner/files/ptest-runner | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/meta/recipes-support/ptest-runner/files/ptest-runner b/meta/recipes-support/ptest-runner/files/ptest-runner index ccb04341c8..33424134c5 100644 --- a/meta/recipes-support/ptest-runner/files/ptest-runner +++ b/meta/recipes-support/ptest-runner/files/ptest-runner | |||
@@ -7,24 +7,15 @@ do | |||
7 | 7 | ||
8 | [ ! -d "$libdir" ] && continue | 8 | [ ! -d "$libdir" ] && continue |
9 | 9 | ||
10 | cd "$libdir" | 10 | for x in `ls -d $libdir/*/ptest 2>/dev/null` |
11 | for x in `find -L ./ -name run-ptest -type f -perm /u+x,g+x` | ||
12 | do | 11 | do |
13 | # test if a dir is linking to one that they are under same directory | 12 | [ ! -f $x/run-ptest ] && continue |
14 | # like perl5-->perl | 13 | [ -h `dirname $x` ] && continue |
15 | ptestdir=`dirname $x|cut -f2 -d"/"` | 14 | |
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" | 15 | date "+%Y-%m-%dT%H:%M" |
24 | echo "BEGIN: $x" | 16 | echo "BEGIN: $x" |
25 | pushd `dirname "$x"` | 17 | cd "$x" |
26 | ./run-ptest | 18 | ./run-ptest |
27 | popd | ||
28 | echo "END: $x" | 19 | echo "END: $x" |
29 | date "+%Y-%m-%dT%H:%M" | 20 | date "+%Y-%m-%dT%H:%M" |
30 | done | 21 | done |