UI tweaks to the test summary.
This commit is contained in:
parent
467709ff38
commit
3aa0487289
|
@ -1,21 +1,33 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
notsucceeding=$(find "$@" ! -size 0)
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "$(echo $notsucceeding | wc -w) tests failed to pass"
|
|
||||||
|
|
||||||
skipped=$(grep -l @@SKIPPED $notsucceeding)
|
succeeding="$(find "$@" -size 0)"
|
||||||
echo "$(echo $skipped | wc -w) were skipped (see build log for details)"
|
notsucceeding="$(find "$@" ! -size 0)"
|
||||||
|
skipped="$(grep -l @@SKIPPED $notsucceeding)"
|
||||||
|
timedout="$(grep -l @@TIMEDOUT $notsucceeding)"
|
||||||
|
failed="$(grep -l @@FAIL $notsucceeding)"
|
||||||
|
|
||||||
timedout=$(grep -l @@TIMEDOUT $notsucceeding)
|
|
||||||
echo "$(echo $timedout | wc -w) timed out"
|
|
||||||
|
|
||||||
failed=$(grep -l @@FAIL $notsucceeding)
|
|
||||||
echo "$(echo $failed | wc -w) failed"
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
for a in $failed $timedout; do
|
for a in $failed $timedout; do
|
||||||
echo "**** $a"
|
echo "**** $a"
|
||||||
cat $a
|
cat $a
|
||||||
echo ""
|
echo ""
|
||||||
done
|
done
|
||||||
exec test "$failed" == "" -o "$timedout" == ""
|
|
||||||
|
echo "$(echo $succeeding | wc -w) tests passed"
|
||||||
|
echo "$(echo $notsucceeding | wc -w) tests failed to pass"
|
||||||
|
echo "$(echo $skipped | wc -w) were skipped (see build log for details)"
|
||||||
|
echo "$(echo $timedout | wc -w) timed out"
|
||||||
|
echo "$(echo $failed | wc -w) failed"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
if [ "$failed" != "" -o "$timedout" != "" ]; then
|
||||||
|
echo "Test status: SAD FACE (tests are failing)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ "$succeeding" = "" ]; then
|
||||||
|
echo "Test status: PUZZLED FACE (all tests were skipped)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Test status: HAPPY FACE (all tests are passing)"
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue