17 fixed=$(($fixed + $value)) ;;
19 success=$(($success + $value)) ;;
21 failed=$(($failed + $value)) ;;
23 broken=$(($broken + $value)) ;;
25 total=$(($total + $value)) ;;
51 echo "Notmuch test suite complete."
52 if [ "$fixed" = "0" ] && [ "$failed" = "0" ]; then
53 tests=$(pluralize "test" $total)
54 printf "All $total $tests "
55 if [ "$broken" = "0" ]; then
58 failures=$(pluralize "failure" $broken)
59 echo "behaved as expected ($broken expected $failures)."
62 echo "$success/$total tests passed."
63 if [ "$broken" != "0" ]; then
64 tests=$(pluralize "test" $broken)
65 echo "$broken broken $tests failed as expected."
67 if [ "$fixed" != "0" ]; then
68 tests=$(pluralize "test" $fixed)
69 echo "$fixed broken $tests now fixed."
71 if [ "$failed" != "0" ]; then
72 tests=$(pluralize "test" $failed)
73 echo "$failed $tests failed."
77 skipped=$(($total - $fixed - $success - $failed - $broken))
78 if [ "$skipped" != "0" ]; then
79 tests=$(pluralize "test" $skipped)
80 echo "$skipped $tests skipped."