13 echo "[Test Results Summary]"
18 for fn
in `find testsuite extensions -name testrun.sum | sort`; do
20 nofail
=`grep -c "^FAIL: " ${fn}`
21 nopass
=`grep -c "^PASS: " ${fn}`
22 noxfail
=`grep -c "^XFAIL: " ${fn}`
23 noxpass
=`grep -c "^XPASS: " ${fn}`
24 nounresolved
=`grep -c "^UNRESOLVED: " ${fn}`
25 nountested
=`grep -c "^UNTESTED: " ${fn}`
26 echo -n "Test suite $dir: "
28 if test $nofail -gt 0; then
29 suitefail
="${suitefail} ${dir}"
30 echo -n "$nofail real failures"
31 total_fail
=`expr $total_fail + $nofail`
34 if test $noxpass -gt 0; then
35 suitexpass
="${suitexpass} ${dir}"
36 if test $someprint -gt 0; then echo -n ", "; fi
37 echo -n "$noxpass unexpected successes"
38 total_xpass
=`expr $total_xpass + $noxpass`
41 if test $nopass -gt 0; then
42 if test $someprint -gt 0; then echo -n ", "; fi
43 echo -n "$nopass passes"
44 total_pass
=`expr $total_pass + $nopass`
47 if test $noxfail -gt 0; then
48 if test $someprint -gt 0; then echo -n ", "; fi
49 echo -n "${noxfail} expected failure"
50 total_xfail
=`expr $total_xfail + $noxfail`
53 if test ${nounresolved} -gt 0; then
54 if test $someprint -gt 0; then echo -n ", "; fi
55 echo -n "${nounresolved} unresolved"
56 total_unresolved
=`expr ${total_unresolved} + ${nounresolved}`
59 if test ${nountested} -gt 0; then
60 if test $someprint -gt 0; then echo -n ", "; fi
61 echo -n "${nountested} untested"
62 total_untested
=`expr ${total_untested} + ${nountested}`
65 if test ${nofail} -gt 0 ||
test ${noxpass} -gt 0; then echo -n " *"; fi
70 echo "Test Result Totals:"
71 if test ${total_pass} -gt 0; then
72 echo " Total passes: $total_pass"
74 if test ${total_unresolved} -gt 0; then
75 echo " Total unresolved: $total_unresolved"
77 if test ${total_xfail} -gt 0; then
78 echo " Total expected failures: ${total_xfail}"
80 if test ${total_untested} -gt 0; then
81 echo " Total untested: ${total_untested}"
83 if test ${total_fail} -gt 0; then
84 echo " * Total real failures: $total_fail"
86 if test ${total_xpass} -gt 0; then
87 echo " --> Total unexpected successes: ${total_xpass}"
92 # For now, return a failure if any XPASS or FAIL occurred
93 if test ${total_fail} -gt 0 ||
test ${total_xpass} -gt 0; then
96 timing
=$
(dirname $0)/timingissues
97 for t
in ${suitefail}; do
98 testruns
="${testruns} ${t}/testrun.sum"
100 failures
="grep -hw FAIL ${testruns}"
102 if test ${total_fail} -gt 0; then
103 echo "Unexpected failures follow:"
104 for s
in ${suitefail}; do
105 echo " --=[ ${s} ]=-- "
106 grep -w FAIL
${s}/testrun.
sum
111 if test ${total_xpass} -gt 0; then
112 echo "Unexpected successes follow:"
113 for s
in ${suitexpass}; do
114 echo " --=[ ${s} ]=-- "
115 grep -w XPASS
${s}/testrun.
sum
120 if test `$failures | grep -cf $timing` -gt 0; then
121 if test `$failures | grep -cvf $timing` -eq 0; then
122 echo "All failures are time-related. Exiting 0."
123 echo "See http://wiki.gnashdev.org/PredictableLoading"
127 echo "Time-related failures follow:"
128 $failures |
grep -f $timing
130 echo "See http://wiki.gnashdev.org/PredictableLoading"
132 echo "Non time-related failures follow:"
133 $failures |
grep -vf $timing
138 if [ "$mode" = "verbose" ]; then
139 if test ${total_fail} -gt 0; then
140 echo "Verbose mode enabled. Displaying following files:"
142 swfdecfail
=$
($failures |
sed -n 's/^.*in \(.*.trace-gnash\).*in \(.*.log\).*$/\1\n\2/p')
143 for log
in $swfdecfail; do
144 echo " testsuite/swfdec/$log"
145 logfiles
="${logfiles} testsuite/swfdec/$log"
147 for s
in ${suitefail}; do
148 echo " ${s}/testrun.log"
149 logfiles
="${logfiles} ${s}/testrun.log"
152 for logfile
in ${logfiles}; do
153 echo "= = = = = = = [ ${logfile} file - BEGIN ] = = = = = = ="
155 echo "= = = = = = = [ ${logfile} file - END ] = = = = = = ="
167 # Look for regressions