Skip to content

Commit

Permalink
Enable wpt in all linux builds (#3010)
Browse files Browse the repository at this point in the history
b/332367155
  • Loading branch information
sherryzy authored Apr 23, 2024
2 parents 5e14755 + aaece9a commit fba6e38
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/config/linux-clang-3-9.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"docker_service": "build-linux-clang-3-9",
"on_host_test": true,
"on_host_test_shards": ["0", "1", "2", "3"],
"on_host_test_shards": ["0", "1", "2", "3", "wpt"],
"platforms": [
"linux-x64x11-clang-3-9"
],
Expand Down
2 changes: 1 addition & 1 deletion .github/config/linux-gcc-6-3.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"docker_service": "build-linux-gcc",
"on_host_test": true,
"on_host_test_shards": ["0", "1", "2", "3"],
"on_host_test_shards": ["0", "1", "2", "3", "wpt"],
"platforms": [
"linux-x64x11-gcc-6-3"
],
Expand Down
3 changes: 2 additions & 1 deletion .github/config/linux-modular.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"0",
"1",
"2",
"3"
"3",
"wpt"
],
"platforms": [
"linux-x64x11-modular"
Expand Down
16 changes: 16 additions & 0 deletions starboard/linux/x64x11/clang/3.9/cobalt/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@ def GetTestFilters(self):
filters.extend(test_filter.TestFilter(target, test) for test in tests)
return filters

def GetWebPlatformTestFilters(self):
filters = super().GetWebPlatformTestFilters()
for target, tests in self.__FILTERED_WPT_TESTS.items():
filters.extend(test_filter.TestFilter(target, test) for test in tests)
return filters

# pylint: disable=line-too-long
__FILTERED_WPT_TESTS = { # pylint: disable=invalid-name
'web_platform_tests': [
# TODO(b/332367155): Re-enable web_platform_tests once fixed.
'xhr/WebPlatformTest.Run/XMLHttpRequest_send_sync_blocks_async_htm',
'dom/WebPlatformTest.Run/dom_nodes_MutationObserver_attributes_html',
'html/WebPlatformTest.Run/html_dom_documents_dom_tree_accessors_Document_currentScript_sub_html',
],
}

# A map of failing or crashing tests per target.
__FILTERED_TESTS = { # pylint: disable=invalid-name
'base_unittests': [
Expand Down
16 changes: 16 additions & 0 deletions starboard/linux/x64x11/gcc/6.3/cobalt/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ def GetTestFilters(self):
filters.extend(test_filter.TestFilter(target, test) for test in tests)
return filters

def GetWebPlatformTestFilters(self):
filters = super().GetWebPlatformTestFilters()
for target, tests in self.__FILTERED_WPT_TESTS.items():
filters.extend(test_filter.TestFilter(target, test) for test in tests)
return filters

# pylint: disable=line-too-long
__FILTERED_WPT_TESTS = { # pylint: disable=invalid-name
'web_platform_tests': [
# TODO(b/332367155): Re-enable web_platform_tests once fixed.
'xhr/WebPlatformTest.Run/XMLHttpRequest_send_sync_blocks_async_htm',
'dom/WebPlatformTest.Run/dom_nodes_MutationObserver_attributes_html',
'html/WebPlatformTest.Run/html_dom_documents_dom_tree_accessors_Document_currentScript_sub_html',
],
}

# A map of failing or crashing tests per target.
__FILTERED_TESTS = { # pylint: disable=invalid-name
'base_unittests': [
Expand Down

0 comments on commit fba6e38

Please sign in to comment.