19 fixed=$(($fixed + $value)) ;;
21 success=$(($success + $value)) ;;
23 failed=$(($failed + $value)) ;;
25 broken=$(($broken + $value)) ;;
27 total=$(($total + $value)) ;;
53 echo "Notmuch test suite complete."
54 if [ "$fixed" = "0" ] && [ "$failed" = "0" ]; then
55 tests=$(pluralize "test" $total)
56 printf "All $total $tests "
57 if [ "$broken" = "0" ]; then
60 failures=$(pluralize "failure" $broken)
61 echo "behaved as expected ($broken expected $failures)."
64 echo "$success/$total tests passed."
65 if [ "$broken" != "0" ]; then
66 tests=$(pluralize "test" $broken)
67 echo "$broken broken $tests failed as expected."
69 if [ "$fixed" != "0" ]; then
70 tests=$(pluralize "test" $fixed)
71 echo "$fixed broken $tests now fixed."
73 if [ "$failed" != "0" ]; then
74 tests=$(pluralize "test" $failed)
75 echo "$failed $tests failed."
79 skipped=$(($total - $fixed - $success - $failed - $broken))
80 if [ "$skipped" != "0" ]; then
81 tests=$(pluralize "test" $skipped)
82 echo "$skipped $tests skipped."
85 # Note that we currently do not consider skipped tests as failing the
88 if [ $success -gt 0 -a $fixed -eq 0 -a $failed -eq 0 ]