18 fixed=$((fixed + value)) ;;
20 success=$((success + value)) ;;
22 failed=$((failed + value)) ;;
24 broken=$((broken + value)) ;;
26 total=$((total + value))
27 if [ "$value" -eq 0 ]; then
28 all_skipped=$((all_skipped + 1))
34 pluralize_s () { [ "$1" -eq 1 ] && s='' || s='s'; }
36 echo "Notmuch test suite complete."
38 if [ "$fixed" -eq 0 ] && [ "$failed" -eq 0 ]; then
40 printf "All $total test$s "
41 if [ "$broken" -eq 0 ]; then
45 echo "behaved as expected ($broken expected failure$s)."
48 echo "$success/$total tests passed."
49 if [ "$broken" -ne 0 ]; then
51 echo "$broken broken test$s failed as expected."
53 if [ "$fixed" -ne 0 ]; then
55 echo "$fixed broken test$s now fixed."
57 if [ "$failed" -ne 0 ]; then
59 echo "$failed test$s failed."
63 skipped=$((total - fixed - success - failed - broken))
64 if [ "$skipped" -ne 0 ]; then
65 pluralize_s "$skipped"
66 echo "$skipped test$s skipped."
68 if [ "$all_skipped" -ne 0 ]; then
69 pluralize_s "$all_skipped"
70 echo "All tests in $all_skipped file$s skipped."
73 # Note that we currently do not consider skipped tests as failing the
76 if [ "$success" -gt 0 ] && [ "$fixed" -eq 0 ] && [ "$failed" -eq 0 ]