Changeset 90607 in webkit
- Timestamp:
- Jul 7, 2011 7:22:39 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r90606 r90607 1 2011-07-07 Dirk Pranke <dpranke@chromium.org> 2 3 test-webkitpy fails on chromium win 4 https://bugs.webkit.org/show_bug.cgi?id=64137 5 6 Reviewed by Eric Seidel. 7 8 test-webkitpy doesn't play nicely with the multiprocessing 9 module on win32. An earlier change actually reenabled the tests 10 on win32 by mistake. 11 12 This patch also fixes a few cases where path names will trip 13 things up on win32 (e.g., by testing unix paths on windows). 14 We do not lose any real coverage here with those fixes. 15 16 * Scripts/webkitpy/layout_tests/port/chromium_gpu.py: 17 * Scripts/webkitpy/layout_tests/port/chromium_gpu_unittest.py: 18 * Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py: 19 * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py: 20 1 21 2011-07-07 Leandro Pereira <leandro@profusion.mobi> 2 22 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py
r90527 r90607 605 605 606 606 def relative_test_filename(self, filename): 607 """Re lative unix-style path for a filename under the LayoutTests607 """Returns a test_name a realtive unix-style path for a filename under the LayoutTests 608 608 directory. Filenames outside the LayoutTests directory should raise 609 609 an error.""" 610 # FIXME: On Windows, does this return test_names with forward slashes,611 # or windows-style relative paths?610 # Ports that run on windows need to override this method to deal with 611 # filenames with backslashes in them. 612 612 assert filename.startswith(self.layout_tests_dir()), "%s did not start with %s" % (filename, self.layout_tests_dir()) 613 613 return filename[len(self.layout_tests_dir()) + 1:] -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu_unittest.py
-
Property
svn:executable
set to
*
r90545 r90607 25 25 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 26 27 import sys 27 28 import unittest 28 29 … … 31 32 32 33 from webkitpy.layout_tests.port import factory 34 from webkitpy.layout_tests.port import port_testcase 33 35 34 36 class ChromiumGpuTest(unittest.TestCase): 35 def test_get_chromium_gpu_linux(self): 36 self.assertOverridesWorked('chromium-gpu-linux') 37 def integration_test_chromium_gpu_linux(self): 38 if sys.platform not in ('linux2', 'linux3'): 39 return 40 self.assert_port_works('chromium-gpu-linux') 41 self.assert_port_works('chromium-gpu-linux', 'chromium-gpu', 'linux2') 42 self.assert_port_works('chromium-gpu-linux', 'chromium-gpu', 'linux3') 37 43 38 def test_get_chromium_gpu_mac(self): 39 self.assertOverridesWorked('chromium-gpu-mac') 44 def integration_test_chromium_gpu_mac(self): 45 if sys.platform != 'darwin': 46 return 47 self.assert_port_works('chromium-gpu-mac') 48 self.assert_port_works('chromium-gpu-mac', 'chromium-gpu', 'darwin') 40 49 41 def test_get_chromium_gpu_win(self): 42 self.assertOverridesWorked('chromium-gpu-win') 50 def integration_test_chromium_gpu_win(self): 51 if sys.platform not in ('cygwin', 'win32'): 52 return 53 self.assert_port_works('chromium-gpu-win') 54 self.assert_port_works('chromium-gpu-win', 'chromium-gpu', 'win32') 55 self.assert_port_works('chromium-gpu-win', 'chromium-gpu', 'cygwin') 43 56 44 def test_get_chromium_gpu__on_linux(self): 45 self.assertOverridesWorked('chromium-gpu-linux', 'chromium-gpu', 'linux2') 46 self.assertOverridesWorked('chromium-gpu-linux', 'chromium-gpu', 'linux3') 47 48 def test_get_chromium_gpu__on_mac(self): 49 self.assertOverridesWorked('chromium-gpu-mac', 'chromium-gpu', 'darwin') 50 51 def test_get_chromium_gpu__on_win(self): 52 self.assertOverridesWorked('chromium-gpu-win', 'chromium-gpu', 'win32') 53 self.assertOverridesWorked('chromium-gpu-win', 'chromium-gpu', 'cygwin') 54 55 def assertOverridesWorked(self, port_name, input_name=None, platform=None): 57 def assert_port_works(self, port_name, input_name=None, platform=None): 56 58 # test that we got the right port 57 59 mock_options = mocktool.MockOptions(accelerated_compositing=None, … … 83 85 # These two tests are picked mostly at random, but we make sure they 84 86 # exist separately from being filtered out by the port. 87 88 # Note that this is using a real filesystem. 85 89 files = port.tests(None) 86 90 … … 124 128 125 129 if __name__ == '__main__': 126 unittest.main()130 port_testcase.main() -
Property
svn:executable
set to
-
trunk/Tools/Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py
-
Property
svn:executable
set to
*
r90527 r90607 61 61 pass 62 62 63 def test_uses_apache(self): 64 pass 65 63 66 def integration_test_http_lock(self): 64 67 pass -
Property
svn:executable
set to
-
trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py
-
Property
svn:executable
set to
*
r90546 r90607 52 52 # FIXME: remove this when we fix test-webkitpy to work properly on cygwin 53 53 # (bug 63846). 54 SHOULD_TEST_PROCESSES = multiprocessing and sys.platform not in ('cygwin' )54 SHOULD_TEST_PROCESSES = multiprocessing and sys.platform not in ('cygwin', 'win32') 55 55 56 56 from webkitpy.common import array_stream -
Property
svn:executable
set to
Note: See TracChangeset
for help on using the changeset viewer.