Changeset 90607 in webkit


Ignore:
Timestamp:
Jul 7, 2011 7:22:39 PM (13 years ago)
Author:
dpranke@chromium.org
Message:

test-webkitpy fails on chromium win
https://bugs.webkit.org/show_bug.cgi?id=64137

Reviewed by Eric Seidel.

test-webkitpy doesn't play nicely with the multiprocessing
module on win32. An earlier change actually reenabled the tests
on win32 by mistake.

This patch also fixes a few cases where path names will trip
things up on win32 (e.g., by testing unix paths on windows).
We do not lose any real coverage here with those fixes.

  • Scripts/webkitpy/layout_tests/port/chromium_gpu.py:
  • Scripts/webkitpy/layout_tests/port/chromium_gpu_unittest.py:
  • Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r90606 r90607  
     12011-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
    1212011-07-07  Leandro Pereira  <leandro@profusion.mobi>
    222
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py

    r90527 r90607  
    605605
    606606    def relative_test_filename(self, filename):
    607         """Relative unix-style path for a filename under the LayoutTests
     607        """Returns a test_name a realtive unix-style path for a filename under the LayoutTests
    608608        directory. Filenames outside the LayoutTests directory should raise
    609609        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.
    612612        assert filename.startswith(self.layout_tests_dir()), "%s did not start with %s" % (filename, self.layout_tests_dir())
    613613        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  
    2525# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2626
     27import sys
    2728import unittest
    2829
     
    3132
    3233from webkitpy.layout_tests.port import factory
     34from webkitpy.layout_tests.port import port_testcase
    3335
    3436class 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')
    3743
    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')
    4049
    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')
    4356
    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):
    5658        # test that we got the right port
    5759        mock_options = mocktool.MockOptions(accelerated_compositing=None,
     
    8385        # These two tests are picked mostly at random, but we make sure they
    8486        # exist separately from being filtered out by the port.
     87
     88        # Note that this is using a real filesystem.
    8589        files = port.tests(None)
    8690
     
    124128
    125129if __name__ == '__main__':
    126     unittest.main()
     130    port_testcase.main()
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py

    • Property svn:executable set to *
    r90527 r90607  
    6161        pass
    6262
     63    def test_uses_apache(self):
     64        pass
     65
    6366    def integration_test_http_lock(self):
    6467        pass
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py

    • Property svn:executable set to *
    r90546 r90607  
    5252# FIXME: remove this when we fix test-webkitpy to work properly on cygwin
    5353# (bug 63846).
    54 SHOULD_TEST_PROCESSES = multiprocessing and sys.platform not in ('cygwin')
     54SHOULD_TEST_PROCESSES = multiprocessing and sys.platform not in ('cygwin', 'win32')
    5555
    5656from webkitpy.common import array_stream
Note: See TracChangeset for help on using the changeset viewer.