17 fixed=$((fixed + value)) ;;
19 success=$((success + value)) ;;
21 failed=$((failed + value)) ;;
23 broken=$((broken + value)) ;;
25 total=$((total + value)) ;;
30 pluralize_s () { [ "$1" -eq 1 ] && s='' || s='s'; }
32 echo "Notmuch test suite complete."
34 if [ "$fixed" -eq 0 ] && [ "$failed" -eq 0 ]; then
36 printf "All $total test$s "
37 if [ "$broken" -eq 0 ]; then
41 echo "behaved as expected ($broken expected failure$s)."
44 echo "$success/$total tests passed."
45 if [ "$broken" -ne 0 ]; then
47 echo "$broken broken test$s failed as expected."
49 if [ "$fixed" -ne 0 ]; then
51 echo "$fixed broken test$s now fixed."
53 if [ "$failed" -ne 0 ]; then
55 echo "$failed test$s failed."
59 skipped=$((total - fixed - success - failed - broken))
60 if [ "$skipped" -ne 0 ]; then
61 pluralize_s "$skipped"
62 echo "$skipped test$s skipped."
65 # Note that we currently do not consider skipped tests as failing the
68 if [ "$success" -gt 0 ] && [ "$fixed" -eq 0 ] && [ "$failed" -eq 0 ]