[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite anaylse-results.sh
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash/testsuite anaylse-results.sh |
Date: |
Fri, 13 Oct 2006 19:59:58 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 06/10/13 19:59:58
Added files:
testsuite : anaylse-results.sh
Log message:
Script to anaylze test runs summary files.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/anaylse-results.sh?cvsroot=gnash&rev=1.1
Patches:
Index: anaylse-results.sh
===================================================================
RCS file: anaylse-results.sh
diff -N anaylse-results.sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ anaylse-results.sh 13 Oct 2006 19:59:58 -0000 1.1
@@ -0,0 +1,59 @@
+#!/bin/sh
+
+
+total_fail=0;
+total_pass=0;
+total_xfail=0;
+total_unresolved=0;
+
+for dir in `find . -maxdepth 1 -type d | egrep -v ".libs|.deps" | grep "./"`;
do
+ nofail=`grep -c "FAIL: " ${dir}/testrun.sum`
+ nopass=`grep -c "PASS: " ${dir}/testrun.sum`
+ noxfail=`grep -c "XFAIL: " ${dir}/testrun.sum`
+ nounresolved=`grep -c "UNRESOLVED: " ${dir}/testrun.sum`
+ echo -n "Test suite $dir had these results: "
+ if test $nofail -gt 0; then
+ echo -n " $nofail failures"
+ total_fail=`expr $total_fail + $nofail`
+ fi
+ if test $nopass -gt 0; then
+ if test $nofail -gt 0; then
+ echo -n ", $nopass passes"
+ else
+ echo -n "$nopass passes"
+ fi
+ total_pass=`expr $total_pass + $nopass`
+ fi
+ if test $noxfail -gt 0; then
+ if test $nofail -gt 0 -o $nopass -gt 0; then
+ echo -n ", ${noxfail} expected failures"
+ else
+ echo -n "${noxfail} expected failure"
+ fi
+ total_xfail=`expr $total_xfail + $noxfail`
+ fi
+ if test $nofail -gt 0; then
+ if test $nofail -gt 0 -o $nopass -gt 0 -o $noxfail -gt 0; then
+ echo -n ", ${nounresolved} unresolved"
+ else
+ echo -n "${nounresolved} unresolved"
+ fi
+ total_unresolved=`expr ${total_unresolved} + ${nounresolved}`
+ fi
+ echo
+done
+
+echo
+echo "Test Result Totals:"
+if test ${total_fail} -gt 0; then
+ echo " Total failures: $total_fail"
+fi
+if test ${total_pass} -gt 0; then
+ echo " Total passes: $total_pass"
+fi
+if test ${total_unresolved} -gt 0; then
+ echo " Total unresolved: $total_unresolved"
+fi
+if test ${total_xfail} -gt 0; then
+ echo " Total expected failures: ${total_xfail}"
+fi
- [Gnash-commit] gnash/testsuite anaylse-results.sh,
Rob Savoye <=