diff options
author | michelou <michelou@epfl.ch> | 2005-11-06 10:22:36 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2005-11-06 10:22:36 +0000 |
commit | 607db199f0596e44b46bf204fcc2edcf26c9fc71 (patch) | |
tree | 33de99501b8d678e3824fef4b4b3343a14a6c618 /test-nsc/scalanstest | |
parent | f2b9ba819a2ccd53995494c694d73a2fd5f408ff (diff) | |
download | scala-607db199f0596e44b46bf204fcc2edcf26c9fc71.tar.gz scala-607db199f0596e44b46bf204fcc2edcf26c9fc71.tar.bz2 scala-607db199f0596e44b46bf204fcc2edcf26c9fc71.zip |
- also displays total test count.
Diffstat (limited to 'test-nsc/scalanstest')
-rw-r--r-- | test-nsc/scalanstest | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test-nsc/scalanstest b/test-nsc/scalanstest index 78a9b11fed..37de528c8e 100644 --- a/test-nsc/scalanstest +++ b/test-nsc/scalanstest @@ -532,12 +532,11 @@ printf_outline "Source directory is: $SRCDIR\\n\\n"; test_check_all; +TOTAL_COUNT=`echo "$FAILURE_COUNT+$SUCCESS_COUNT" | bc`; if [ $FAILURE_COUNT -eq 0 ]; then - printf_success "All tests were successful\\n"; -elif [ $FAILURE_COUNT -eq 1 ]; then - printf_failure "There was 1 test that failed\\n"; + printf_success "All $TOTAL_COUNT tests were successful\\n"; else - printf_failure "There were $FAILURE_COUNT tests that failed\\n"; + printf_failure "$FAILURE_COUNT of $TOTAL_COUNT tests failed\\n"; fi; if [ $FAILURE_COUNT -eq "$ERRORS" ]; then |