Title: [195984] trunk/Tools
Revision
195984
Author
[email protected]
Date
2016-02-01 15:40:39 -0800 (Mon, 01 Feb 2016)

Log Message

Add command line flag to DRT to output the number of tests completed in server mode.
https://bugs.webkit.org/show_bug.cgi?id=153750

Reviewed by Darin Adler.

* DumpRenderTree/mac/DumpRenderTree.mm:
(initializeGlobalsFromCommandLineOptions):
(runTestingServerLoop):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (195983 => 195984)


--- trunk/Tools/ChangeLog	2016-02-01 23:37:02 UTC (rev 195983)
+++ trunk/Tools/ChangeLog	2016-02-01 23:40:39 UTC (rev 195984)
@@ -1,3 +1,14 @@
+2016-02-01  Brady Eidson  <[email protected]>
+
+        Add command line flag to DRT to output the number of tests completed in server mode.
+        https://bugs.webkit.org/show_bug.cgi?id=153750
+
+        Reviewed by Darin Adler.
+
+        * DumpRenderTree/mac/DumpRenderTree.mm:
+        (initializeGlobalsFromCommandLineOptions):
+        (runTestingServerLoop):
+
 2016-02-01  Jason Marcell  <[email protected]>
 
         Improvements to botwatcher's dashboard unit tests.

Modified: trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm (195983 => 195984)


--- trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm	2016-02-01 23:37:02 UTC (rev 195983)
+++ trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm	2016-02-01 23:40:39 UTC (rev 195984)
@@ -206,6 +206,7 @@
 static int useAcceleratedDrawing;
 static int gcBetweenTests;
 static int showWebView = NO;
+static int printTestCount = NO;
 static BOOL printSeparators;
 static RetainPtr<CFStringRef> persistentUserStyleSheetLocation;
 static std::set<std::string> allowedHosts;
@@ -1140,6 +1141,7 @@
         {"no-timeout", no_argument, &useTimeoutWatchdog, NO},
         {"allowed-host", required_argument, nullptr, 'a'},
         {"show-webview", no_argument, &showWebView, YES},
+        {"print-test-count", no_argument, &printTestCount, YES},
         {nullptr, 0, nullptr, 0}
     };
     
@@ -1177,6 +1179,7 @@
     // When DumpRenderTree run in server mode, we just wait around for file names
     // to be passed to us and read each in turn, passing the results back to the client
     char filenameBuffer[2048];
+    unsigned testCount = 0;
     while (fgets(filenameBuffer, sizeof(filenameBuffer), stdin)) {
         char *newLineCharacter = strchr(filenameBuffer, '\n');
         if (newLineCharacter)
@@ -1186,6 +1189,11 @@
             continue;
 
         runTest(filenameBuffer);
+
+        if (printTestCount) {
+            ++testCount;
+            printf("\nServer mode has completed %u tests.\n\n", testCount);
+        }
     }
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to