Changeset 85040 in webkit


Ignore:
Timestamp:
Apr 27, 2011 2:48:06 AM (13 years ago)
Author:
koz@chromium.org
Message:

2011-04-27 James Kozianski <koz@chromium.org>

Reviewed by Ojan Vafai.

Extract map from port to builder name.
https://bugs.webkit.org/show_bug.cgi?id=58301

  • Scripts/webkitpy/layout_tests/port/init.py:
  • Scripts/webkitpy/layout_tests/port/builders.py: Added.
  • Scripts/webkitpy/layout_tests/port/builders_unittest.py: Added.
  • Scripts/webkitpy/layout_tests/port/factory.py:
Location:
trunk/Tools
Files:
1 added
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85039 r85040  
     12011-04-27  James Kozianski  <koz@chromium.org>
     2
     3        Reviewed by Ojan Vafai.
     4
     5        Extract map from port to builder name.
     6        https://bugs.webkit.org/show_bug.cgi?id=58301
     7
     8        * Scripts/webkitpy/layout_tests/port/__init__.py:
     9        * Scripts/webkitpy/layout_tests/port/builders.py: Added.
     10        * Scripts/webkitpy/layout_tests/port/builders_unittest.py: Added.
     11        * Scripts/webkitpy/layout_tests/port/factory.py:
     12
    1132011-04-27  Ryuan Choi  <ryuan.choi@samsung.com>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/__init__.py

    r76184 r85040  
    3333
    3434from test import unit_test_filesystem
     35
     36import builders
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/builders_unittest.py

    r85039 r85040  
    1 #!/usr/bin/env python
    2 # Copyright (C) 2010 Google Inc. All rights reserved.
     1# Copyright (C) 2011 Google Inc. All rights reserved.
    32#
    43# Redistribution and use in source and binary forms, with or without
     
    65# met:
    76#
    8 #     * Redistributions of source code must retain the above copyright
     7#    * Redistributions of source code must retain the above copyright
    98# notice, this list of conditions and the following disclaimer.
    10 #     * Redistributions in binary form must reproduce the above
     9#    * Redistributions in binary form must reproduce the above
    1110# copyright notice, this list of conditions and the following disclaimer
    1211# in the documentation and/or other materials provided with the
    1312# distribution.
    14 #     * Neither the name of Google Inc. nor the names of its
     13#    * Neither the name of Google Inc. nor the names of its
    1514# contributors may be used to endorse or promote products derived from
    1615# this software without specific prior written permission.
     
    2827# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2928
    30 """Port-specific entrypoints for the layout tests test infrastructure."""
     29import builders
     30import unittest
    3131
    32 from factory import get
    3332
    34 from test import unit_test_filesystem
     33class BuildersTest(unittest.TestCase):
     34    def test_path_from_name(self):
     35        tests = {
     36            'test': 'test',
     37            'Mac 10.6 (dbg)(1)': 'Mac_10_6__dbg__1_',
     38            '(.) ': '____',
     39        }
     40        for name, expected in tests.items():
     41            self.assertEquals(expected, builders._path_from_name(name))
     42
     43if __name__ == '__main__':
     44    unittest.main()
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/factory.py

    r80192 r85040  
    3333import sys
    3434
     35from webkitpy.layout_tests.port import builders
     36
    3537
    3638def all_port_names():
     
    4143    or "mock-mac", and it does not include any directories that are not ."""
    4244    # FIXME: There's probably a better way to generate this list ...
    43     return ['chromium-gpu-linux',
    44             'chromium-gpu-mac-snowleopard', 'chromium-gpu-mac-leopard',
    45             'chromium-gpu-win-xp', 'chromium-gpu-win-vista', 'chromium-gpu-win-win7',
    46             'chromium-linux-x86_64', 'chromium-linux-x86',
    47             'chromium-mac-leopard', 'chromium-mac-snowleopard',
    48             'chromium-win-xp', 'chromium-win-vista', 'chromium-win-win7',
    49             'google-chrome-linux32', 'google-chrome-linux64',
    50             'gtk',
    51             'mac-tiger', 'mac-leopard', 'mac-snowleopard', 'mac-wk2',
    52             'qt-linux', 'qt-mac', 'qt-win', 'qt-wk2',
    53             'win-xp', 'win', 'win-wk2',
    54     ]
     45    return builders.PORT_TO_BUILDER_NAME.keys()
    5546
    5647
Note: See TracChangeset for help on using the changeset viewer.