Skip to content

Commit

Permalink
Cherry pick PR #3010: Enable wpt in all linux builds (#3078)
Browse files Browse the repository at this point in the history
Refer to the original PR: #3010

b/332367155
  • Loading branch information
sherryzy authored Apr 25, 2024
2 parents e5e4e33 + 06e2aab commit f8a6bbe
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 f8a6bbe

Please sign in to comment.