Changeset 85119 in webkit


Ignore:
Timestamp:
Apr 27, 2011 4:17:43 PM (13 years ago)
Author:
weinig@apple.com
Message:

2011-04-26 Sam Weinig <sam@webkit.org>

Reviewed by David Levin.

Add a few more missing options to new-run-webkit-tests
https://bugs.webkit.org/show_bug.cgi?id=59567

Add support for:

--threaded
--gc-between-tests
--complex-text

  • Scripts/webkitpy/layout_tests/port/webkit.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85115 r85119  
     12011-04-26  Sam Weinig  <sam@webkit.org>
     2
     3        Reviewed by David Levin.
     4
     5        Add a few more missing options to new-run-webkit-tests
     6        https://bugs.webkit.org/show_bug.cgi?id=59567
     7
     8        Add support for:
     9            --threaded
     10            --gc-between-tests
     11            --complex-text
     12
     13        * Scripts/webkitpy/layout_tests/port/webkit.py:
     14        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     15        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
     16
    1172011-04-27  Mark Rowe  <mrowe@apple.com>
    218
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py

    r84207 r85119  
    22# Copyright (C) 2010 Google Inc. All rights reserved.
    33# Copyright (C) 2010 Gabor Rapcsanyi <rgabor@inf.u-szeged.hu>, University of Szeged
     4# Copyright (C) 2011 Apple Inc. All rights reserved.
    45#
    56# Redistribution and use in source and binary forms, with or without
     
    376377        if self._port.get_option('pixel_tests'):
    377378            cmd.append('--pixel-tests')
     379        if self._port.get_option('gc_between_tests'):
     380            cmd.append('--gc-between-tests')
     381        if self._port.get_option('complex_text'):
     382            cmd.append('--complex-text')
     383        if self._port.get_option('threaded'):
     384            cmd.append('--threaded')
     385
    378386        cmd.extend(self._port.get_option('additional_drt_flag', []))
    379387        cmd.append('-')
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r84594 r85119  
    22# Copyright (C) 2010 Google Inc. All rights reserved.
    33# Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged
     4# Copyright (C) 2011 Apple Inc. All rights reserved.
    45#
    56# Redistribution and use in source and binary forms, with or without
     
    253254            default=False,
    254255            help="Run graphics tests on real GPU hardware vs software"),
     256    ]
     257
     258    webkit_options = [
     259        optparse.make_option("--gc-between-tests", action="store_true", default=False,
     260            help="Force garbage collection between each test"),
     261        optparse.make_option("--complex-text", action="store_true", default=False,
     262            help="Use the complex text code path for all text (Mac OS X and Windows only)"),
     263        optparse.make_option("--threaded", action="store_true", default=False,
     264            help="Run a concurrent JavaScript thead with each test")
    255265    ]
    256266
     
    428438
    429439    option_list = (configuration_options + print_options +
    430                    chromium_options + results_options + test_options +
    431                    misc_options + results_json_options +
    432                    old_run_webkit_tests_compat)
     440                   chromium_options + webkit_options + results_options + test_options +
     441                   misc_options + results_json_options + old_run_webkit_tests_compat)
    433442    option_parser = optparse.OptionParser(option_list=option_list)
    434443
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py

    r84544 r85119  
    22# Copyright (C) 2010 Google Inc. All rights reserved.
    33# Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged
     4# Copyright (C) 2011 Apple Inc. All rights reserved.
    45#
    56# Redistribution and use in source and binary forms, with or without
     
    296297        self.assertTrue(passing_run(['--randomize-order']))
    297298
     299    def test_gc_between_tests(self):
     300        self.assertTrue(passing_run(['--gc-between-tests']))
     301
     302    def test_complex_text(self):
     303        self.assertTrue(passing_run(['--complex-text']))
     304
     305    def test_threaded(self):
     306        self.assertTrue(passing_run(['--threaded']))
     307
    298308    def test_run_chunk(self):
    299309        # Test that we actually select the right chunk
Note: See TracChangeset for help on using the changeset viewer.