r24678: More improvements to html output; list unexpected successes and failures...
authorJelmer Vernooij <jelmer@samba.org>
Sun, 26 Aug 2007 20:14:28 +0000 (20:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:39 +0000 (15:02 -0500)
(This used to be commit 14fda5260d49a89d7e74302958fe27b73415e6a1)

source4/selftest/output/html.pm

index afbe63177a6bb55facf005e6dccac823a74ca7a5..3b95a3d9b839f18034b9eb4bee83041eb093b126 100644 (file)
@@ -199,17 +199,16 @@ sub summary($)
        } else {
                print INDEX "  <td class=\"resultFailure\">";
        }
-       print INDEX "$st->{TESTS_EXPECTED_OK} ok";
+       print INDEX ($st->{TESTS_EXPECTED_OK} + $st->{TESTS_UNEXPECTED_OK}) + " ok";
        if ($st->{TESTS_UNEXPECTED_OK} > 0) {
-               print INDEX " ($st->{TESTS_UNEXPECTED_OK})";
+               print INDEX " ($st->{TESTS_UNEXPECTED_OK} unexpected)";
        }
-       print INDEX "</td>";
        if ($st->{TESTS_SKIP} > 0) {
                print INDEX ", $st->{TESTS_SKIP} skipped";
        }
-       print INDEX ", $st->{TESTS_EXPECTED_FAIL} failures";
+       print INDEX ", " . ($st->{TESTS_UNEXPECTED_FAIL} + $st->{TESTS_EXPECTED_FAIL}) . " failures";
        if ($st->{TESTS_UNEXPECTED_OK} > 0) {
-               print INDEX " ($st->{TESTS_UNEXPECTED_FAIL})";
+               print INDEX " ($st->{TESTS_EXPECTED_FAIL} expected)";
        }
        if ($st->{TESTS_ERROR} > 0) {
                print INDEX ", $st->{TESTS_ERROR} errors";
@@ -232,7 +231,10 @@ sub missing_env($$$)
 {
        my ($self, $name, $envname) = @_;
 
-       print "FAIL: $name (ENV[$envname] not available!)\n";
+       print INDEX "<tr>\n";
+       print INDEX "  <td class=\"testSuite\">$name</td>\n";
+       print INDEX "  <td class=\"resultSkipped\" colspan=\"2\">SKIPPED - environment `$envname` not available!</td>\n";
+       print INDEX "</tr>\n";
 }
 
 sub skip_testsuite($$)