WebKit Bugzilla
Attachment 371454 Details for
Bug 198586
: webkitpy: Support ASan as a style
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-198586-20190605171140.patch (text/plain), 4.60 KB, created by
Jonathan Bedard
on 2019-06-05 17:11:44 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jonathan Bedard
Created:
2019-06-05 17:11:44 PDT
Size:
4.60 KB
patch
obsolete
>Index: Tools/ChangeLog >=================================================================== >--- Tools/ChangeLog (revision 246133) >+++ Tools/ChangeLog (working copy) >@@ -1,3 +1,24 @@ >+2019-06-05 Jonathan Bedard <jbedard@apple.com> >+ >+ Need a short description (OOPS!). >+ https://bugs.webkit.org/show_bug.cgi?id=198586 >+ <rdar://problem/51459088> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * Scripts/webkitpy/port/base.py: >+ (Port.configuration_for_upload): Add ASan as a style. >+ * Scripts/webkitpy/port/config.py: >+ (Config._read_configuration): >+ (Config): >+ (Config.asan): Add property to check if the ASan configuration is active. >+ * Scripts/webkitpy/port/config_unittest.py: >+ (ConfigTest.test_default_configuration__scripterror): >+ (ConfigTest): >+ (ConfigTest.test_asan): >+ * Scripts/webkitpy/test/main.py: >+ (Tester._run_tests): Add Asan as a style. >+ > 2019-06-05 Alex Christensen <achristensen@webkit.org> > > Re-enable safe browsing in WKWebView >Index: Tools/Scripts/webkitpy/port/base.py >=================================================================== >--- Tools/Scripts/webkitpy/port/base.py (revision 246128) >+++ Tools/Scripts/webkitpy/port/base.py (working copy) >@@ -1583,12 +1583,19 @@ class Port(object): > configuration = self.test_configuration() > host = self.host or host > >+ if self.get_option('guard_malloc'): >+ style = 'guard-malloc' >+ elif self._config.asan: >+ style = 'asan' >+ else: >+ style = configuration.build_type >+ > return Upload.create_configuration( > platform=host.platform.os_name, > version=str(host.platform.os_version), > version_name=host.platform.os_version_name(INTERNAL_TABLE) or host.platform.os_version_name(), > architecture=configuration.architecture, >- style='guard-malloc' if self.get_option('guard_malloc') else configuration.build_type, >+ style=style, > sdk=host.platform.build_version(), > ) > >Index: Tools/Scripts/webkitpy/port/config.py >=================================================================== >--- Tools/Scripts/webkitpy/port/config.py (revision 246128) >+++ Tools/Scripts/webkitpy/port/config.py (working copy) >@@ -149,3 +149,11 @@ class Config(object): > return None > > return self._filesystem.read_text_file(configuration_path).rstrip() >+ >+ @property >+ @memoized >+ def asan(self): >+ try: >+ return self._filesystem.exists(self._filesystem.join(self.build_directory(None), "ASan")) >+ except: >+ return False >Index: Tools/Scripts/webkitpy/port/config_unittest.py >=================================================================== >--- Tools/Scripts/webkitpy/port/config_unittest.py (revision 246128) >+++ Tools/Scripts/webkitpy/port/config_unittest.py (working copy) >@@ -156,3 +156,9 @@ class ConfigTest(unittest.TestCase): > c = self.make_config(exception=ScriptError()) > actual = c.default_configuration() > self.assertEqual(actual, 'Release') >+ >+ def test_asan(self): >+ config = self.make_config(output='foo\nfoo/Release', files={'foo/Configuration': 'Release', 'foo/ASan': 'YES'}) >+ self.assertEqual(config.asan, True) >+ config = self.make_config(output='foo\nfoo/Release', files={'foo/Configuration': 'Release'}) >+ self.assertEqual(config.asan, False) >Index: Tools/Scripts/webkitpy/test/main.py >=================================================================== >--- Tools/Scripts/webkitpy/test/main.py (revision 246128) >+++ Tools/Scripts/webkitpy/test/main.py (working copy) >@@ -190,6 +190,7 @@ class Tester(object): > start_time = time.time() > config = Config(_host.executive, self.finder.filesystem) > configuration_to_use = self._options.configuration or config.default_configuration() >+ > if will_run_lldb_webkit_tests: > self.printer.write_update('Building lldbWebKitTester ...') > build_lldbwebkittester = self.finder.filesystem.join(_webkit_root, 'Tools', 'Scripts', 'build-lldbwebkittester') >@@ -260,7 +261,7 @@ class Tester(object): > platform=_host.platform.os_name, > version=str(_host.platform.os_version), > version_name=_host.platform.os_version_name(), >- style=configuration_to_use, >+ style='asan' if config.asan else configuration_to_use, > sdk=_host.platform.build_version(), > ), > details=Upload.create_details(options=self._options),
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 198586
:
371454
|
371509