[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9757: simplify code and only look w
From: |
Russell Nelson |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9757: simplify code and only look where we expect testrun.sum files |
Date: |
Tue, 16 Sep 2008 13:27:18 -0400 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9757
committer: Russell Nelson <address@hidden>
branch nick: trunk
timestamp: Tue 2008-09-16 13:27:18 -0400
message:
simplify code and only look where we expect testrun.sum files
modified:
testsuite/anaylse-results.sh
=== modified file 'testsuite/anaylse-results.sh'
--- a/testsuite/anaylse-results.sh 2007-09-21 10:21:56 +0000
+++ b/testsuite/anaylse-results.sh 2008-09-16 17:27:18 +0000
@@ -19,22 +19,16 @@
echo "[Test Results Summary]"
echo
-# TODO1: always find in top-level dir instead (taking a parameter) ?
-# TODO2: increment -maxdepth in case we add subdirs to our testsuites ?
-
-#for dir in `find . -maxdepth 1 -type d | egrep -v ".libs|.deps" | grep "./" |
sort`; do
suitefail=
suitexpass=
-for dir in `find . -type d | egrep -v ".libs|.deps" | grep "./" | sort`; do
- if test ! -f "${dir}/testrun.sum" ; then
- continue
- fi
- nofail=`grep -c "^FAIL: " ${dir}/testrun.sum`
- nopass=`grep -c "^PASS: " ${dir}/testrun.sum`
- noxfail=`grep -c "^XFAIL: " ${dir}/testrun.sum`
- noxpass=`grep -c "^XPASS: " ${dir}/testrun.sum`
- nounresolved=`grep -c "^UNRESOLVED: " ${dir}/testrun.sum`
- nountested=`grep -c "^UNTESTED: " ${dir}/testrun.sum`
+for fn in `find testsuite extensions -name testrun.sum | sort`; do
+ dir=`dirname $fn`
+ nofail=`grep -c "^FAIL: " ${fn}`
+ nopass=`grep -c "^PASS: " ${fn}`
+ noxfail=`grep -c "^XFAIL: " ${fn}`
+ noxpass=`grep -c "^XPASS: " ${fn}`
+ nounresolved=`grep -c "^UNRESOLVED: " ${fn}`
+ nountested=`grep -c "^UNTESTED: " ${fn}`
echo -n "Test suite $dir: "
someprint=0
if test $nofail -gt 0; then
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9757: simplify code and only look where we expect testrun.sum files,
Russell Nelson <=