⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 246159 in webkit


Ignore:
Timestamp:
Jun 6, 2019, 11:44:03 AM (7 years ago)
Author:
Jonathan Bedard
Message:

webkitpluginhost: Support ASan as a style
https://bugs.webkit.org/show_bug.cgi?id=198586
<rdar://problem/51459088>

Reviewed by Alexey Proskuryakov.

  • 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_configurationscripterror):
(ConfigTest):
(ConfigTest.test_asan):

  • Scripts/webkitpy/test/main.py:

(Tester._run_tests): Add Asan as a style.

Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r246155 r246159  
     12019-06-06  Jonathan Bedard  <jbedard@apple.com>
     2
     3        webkitpluginhost: Support ASan as a style
     4        https://bugs.webkit.org/show_bug.cgi?id=198586
     5        <rdar://problem/51459088>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * Scripts/webkitpy/port/base.py:
     10        (Port.configuration_for_upload): Add ASan as a style.
     11        * Scripts/webkitpy/port/config.py:
     12        (Config._read_configuration):
     13        (Config):
     14        (Config.asan): Add property to check if the ASan configuration is active.
     15        * Scripts/webkitpy/port/config_unittest.py:
     16        (ConfigTest.test_default_configuration__scripterror):
     17        (ConfigTest):
     18        (ConfigTest.test_asan):
     19        * Scripts/webkitpy/test/main.py:
     20        (Tester._run_tests): Add Asan as a style.
     21
    1222019-06-06  Alexey Proskuryakov  <ap@apple.com>
    223
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r245733 r246159  
    15841584        host = self.host or host
    15851585
     1586        if self.get_option('guard_malloc'):
     1587            style = 'guard-malloc'
     1588        elif self._config.asan:
     1589            style = 'asan'
     1590        else:
     1591            style = configuration.build_type
     1592
    15861593        return Upload.create_configuration(
    15871594            platform=host.platform.os_name,
     
    15891596            version_name=host.platform.os_version_name(INTERNAL_TABLE) or host.platform.os_version_name(),
    15901597            architecture=configuration.architecture,
    1591             style='guard-malloc' if self.get_option('guard_malloc') else configuration.build_type,
     1598            style=style,
    15921599            sdk=host.platform.build_version(),
    15931600        )
  • trunk/Tools/Scripts/webkitpy/port/config.py

    r215965 r246159  
    150150
    151151        return self._filesystem.read_text_file(configuration_path).rstrip()
     152
     153    @property
     154    @memoized
     155    def asan(self):
     156        try:
     157            return self._filesystem.exists(self._filesystem.join(self.build_directory(None), "ASan"))
     158        except:
     159            return False
  • trunk/Tools/Scripts/webkitpy/port/config_unittest.py

    r174136 r246159  
    157157        actual = c.default_configuration()
    158158        self.assertEqual(actual, 'Release')
     159
     160    def test_asan(self):
     161        config = self.make_config(output='foo\nfoo/Release', files={'foo/Configuration': 'Release', 'foo/ASan': 'YES'})
     162        self.assertEqual(config.asan, True)
     163        config = self.make_config(output='foo\nfoo/Release', files={'foo/Configuration': 'Release'})
     164        self.assertEqual(config.asan, False)
  • trunk/Tools/Scripts/webkitpy/test/main.py

    r243030 r246159  
    191191        config = Config(_host.executive, self.finder.filesystem)
    192192        configuration_to_use = self._options.configuration or config.default_configuration()
     193
    193194        if will_run_lldb_webkit_tests:
    194195            self.printer.write_update('Building lldbWebKitTester ...')
     
    261262                    version=str(_host.platform.os_version),
    262263                    version_name=_host.platform.os_version_name(),
    263                     style=configuration_to_use,
     264                    style='asan' if config.asan else configuration_to_use,
    264265                    sdk=_host.platform.build_version(),
    265266                ),
Note: See TracChangeset for help on using the changeset viewer.