Changeset 85040 in webkit
- Timestamp:
- Apr 27, 2011 2:48:06 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 1 added
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r85039 r85040 1 2011-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 1 13 2011-04-27 Ryuan Choi <ryuan.choi@samsung.com> 2 14 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/__init__.py
r76184 r85040 33 33 34 34 from test import unit_test_filesystem 35 36 import 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. 3 2 # 4 3 # Redistribution and use in source and binary forms, with or without … … 6 5 # met: 7 6 # 8 # 7 # * Redistributions of source code must retain the above copyright 9 8 # notice, this list of conditions and the following disclaimer. 10 # 9 # * Redistributions in binary form must reproduce the above 11 10 # copyright notice, this list of conditions and the following disclaimer 12 11 # in the documentation and/or other materials provided with the 13 12 # distribution. 14 # 13 # * Neither the name of Google Inc. nor the names of its 15 14 # contributors may be used to endorse or promote products derived from 16 15 # this software without specific prior written permission. … … 28 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 28 30 """Port-specific entrypoints for the layout tests test infrastructure.""" 29 import builders 30 import unittest 31 31 32 from factory import get33 32 34 from test import unit_test_filesystem 33 class 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 43 if __name__ == '__main__': 44 unittest.main() -
trunk/Tools/Scripts/webkitpy/layout_tests/port/factory.py
r80192 r85040 33 33 import sys 34 34 35 from webkitpy.layout_tests.port import builders 36 35 37 36 38 def all_port_names(): … … 41 43 or "mock-mac", and it does not include any directories that are not .""" 42 44 # 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() 55 46 56 47
Note: See TracChangeset
for help on using the changeset viewer.