Title: [252711] trunk
Revision
252711
Author
[email protected]
Date
2019-11-20 14:45:25 -0800 (Wed, 20 Nov 2019)

Log Message

[WebGL] Add `--webgl-test-suite` flag for run-webkit-tests
https://bugs.webkit.org/show_bug.cgi?id=204327

Rubber-stamped by Aakash Jain.

Tools:

* Scripts/webkitpy/layout_tests/run_webkit_tests.py:
(parse_args): Add the --webgl macro command, which is the equivalent of:
'Run-webkit-tests --additional-expectations=LayoutTests/webgl/TestExpectations webgl'

LayoutTests:

* webgl/TestExpectations: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (252710 => 252711)


--- trunk/LayoutTests/ChangeLog	2019-11-20 22:29:44 UTC (rev 252710)
+++ trunk/LayoutTests/ChangeLog	2019-11-20 22:45:25 UTC (rev 252711)
@@ -1,3 +1,12 @@
+2019-11-20  Jonathan Bedard  <[email protected]>
+
+        [WebGL] Add `--webgl-test-suite` flag for run-webkit-tests
+        https://bugs.webkit.org/show_bug.cgi?id=204327
+
+        Rubber-stamped by Aakash Jain.
+
+        * webgl/TestExpectations: Added.
+
 2019-11-20  Myles C. Maxfield  <[email protected]>
 
         [Cocoa] Add ui-sans-serif as a sibling to ui-serif, ui-monospace, and ui-rounded

Added: trunk/LayoutTests/webgl/TestExpectations (0 => 252711)


--- trunk/LayoutTests/webgl/TestExpectations	                        (rev 0)
+++ trunk/LayoutTests/webgl/TestExpectations	2019-11-20 22:45:25 UTC (rev 252711)
@@ -0,0 +1,2 @@
+webgl [ Pass Slow ]
+

Modified: trunk/Tools/ChangeLog (252710 => 252711)


--- trunk/Tools/ChangeLog	2019-11-20 22:29:44 UTC (rev 252710)
+++ trunk/Tools/ChangeLog	2019-11-20 22:45:25 UTC (rev 252711)
@@ -1,3 +1,14 @@
+2019-11-20  Jonathan Bedard  <[email protected]>
+
+        [WebGL] Add `--webgl-test-suite` flag for run-webkit-tests
+        https://bugs.webkit.org/show_bug.cgi?id=204327
+
+        Rubber-stamped by Aakash Jain.
+
+        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
+        (parse_args): Add the --webgl macro command, which is the equivalent of:
+        'Run-webkit-tests --additional-expectations=LayoutTests/webgl/TestExpectations webgl'
+
 2019-11-20  ChangSeok Oh  <[email protected]>
 
         Reactivate my committer status.

Modified: trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py (252710 => 252711)


--- trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py	2019-11-20 22:29:44 UTC (rev 252710)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py	2019-11-20 22:45:25 UTC (rev 252711)
@@ -311,12 +311,15 @@
     ]))
 
     option_group_definitions.append(("Miscellaneous Options", [
-        optparse.make_option("--lint-test-files", action=""
-        default=False, help=("Makes sure the test files parse for all "
-                            "configurations. Does not run any tests.")),
-        optparse.make_option("--print-expectations", action=""
-        default=False, help=("Print the expected outcome for the given test, or all tests listed in TestExpectations. "
-                            "Does not run any tests.")),
+        optparse.make_option(
+            "--lint-test-files", action="" default=False,
+            help=("Makes sure the test files parse for all configurations. Does not run any tests.")),
+        optparse.make_option(
+            "--print-expectations", action="" default=False,
+            help=("Print the expected outcome for the given test, or all tests listed in TestExpectations. Does not run any tests.")),
+        optparse.make_option(
+            "--webgl-test-suite", action="" default=False,
+            help=("Run exhaustive webgl list, including test ordinarily skipped for performance reasons. Equivalent to '--additional-expectations=LayoutTests/webgl/TestExpectations webgl'")),
     ]))
 
     option_group_definitions.append(("Web Platform Test Server Options", [
@@ -351,7 +354,14 @@
         option_group.add_options(group_options)
         option_parser.add_option_group(option_group)
 
-    return option_parser.parse_args(args)
+    options, args = option_parser.parse_args(args)
+    if options.webgl_test_suite:
+        if not args:
+            args.append('webgl')
+        host = Host()
+        host.initialize_scm()
+        options.additional_expectations.insert(0, host.filesystem.join(host.scm().checkout_root, 'LayoutTests/webgl/TestExpectations'))
+    return options, args
 
 
 def _print_expectations(port, options, args, logging_stream):
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to