r24669: Add CSS to the test run HTML output. See http://samba.org/~jelmer/ for an
[kai/samba.git] / source4 / selftest / output / plain.pm
index d3ffe228a7fc0b1c2660390122cbf4f0d27176ee..2aa01145d004be20a0b70afb02f7cdcdd7d91a6a 100644 (file)
@@ -88,7 +88,13 @@ sub summary($)
                }
        }
 
-       print "FAILED ($self->{statistics}->{TESTS_UNEXPECTED_FAIL} failures and $self->{statistics}->{TESTS_ERROR} errors in $self->{statistics}->{SUITES_FAIL} testsuites)\n";
+       if ($self->{statistics}->{SUITES_FAIL} == 0) {
+               my $ok = $self->{statistics}->{TESTS_EXPECTED_OK} + 
+                                $self->{statistics}->{TESTS_EXPECTED_FAIL};
+               print "ALL OK ($ok tests in $self->{statistics}->{SUITES_OK} testsuites)\n";
+       } else {
+               print "FAILED ($self->{statistics}->{TESTS_UNEXPECTED_FAIL} failures and $self->{statistics}->{TESTS_ERROR} errors in $self->{statistics}->{SUITES_FAIL} testsuites)\n";
+       }
 }
 
 sub missing_env($$$)