Changeset 55268 in webkit


Ignore:
Timestamp:
Feb 25, 2010 5:32:15 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

2010-02-25 Dirk Pranke <dpranke@chromium.org>

Reviewed by Eric Seidel.

Add a 'passing' port implementation to new-run-webkit-tests that
acts as a wrapper around an existing implementation but stubs out
the actual test invocations (instead, the expected results are echoed
back to the harness). This is useful for coverage and perf testing
of the harness (especially perf testing as it essentially provides
a lower bound on how fast the harness can run).

Also added a --nostart-helper flag to new-run-webkit-tests so that
you can skip starting the layout_test_helper and actually run the
harness even if you don't have a build of that port.

Also fix a bug in the 'test' port implementation to actually
create the results directory under /tmp instead of /.

https://bugs.webkit.org/show_bug.cgi?id=35370

  • Scripts/webkitpy/layout_tests/port/factory.py: Modified.
  • Scripts/webkitpy/layout_tests/port/passing.py: Added.
  • Scripts/webkitpy/layout_tests/port/test.py: Added.
  • Scripts/webkitpy/layout_tests/run_webkit_tests.py: Modified.
Location:
trunk/WebKitTools
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r55267 r55268  
     12010-02-25  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Add a 'passing' port implementation to new-run-webkit-tests that
     6        acts as a wrapper around an existing implementation but stubs out
     7        the actual test invocations (instead, the expected results are echoed
     8        back to the harness). This is useful for coverage and perf testing
     9        of the harness (especially perf testing as it essentially provides
     10        a lower bound on how fast the harness can run).
     11
     12        Also added a --nostart-helper flag to new-run-webkit-tests so that
     13        you can skip starting the layout_test_helper and actually run the
     14        harness even if you don't have a build of that port.
     15
     16        Also fix a bug in the 'test' port implementation to actually
     17        create the results directory under /tmp instead of /.
     18
     19        https://bugs.webkit.org/show_bug.cgi?id=35370
     20
     21        * Scripts/webkitpy/layout_tests/port/factory.py: Modified.
     22        * Scripts/webkitpy/layout_tests/port/passing.py: Added.
     23        * Scripts/webkitpy/layout_tests/port/test.py: Added.
     24        * Scripts/webkitpy/layout_tests/run_webkit_tests.py: Modified.
     25
    1262010-02-25  Eric Seidel  <eric@webkit.org>
    227
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/factory.py

    r55210 r55268  
    5050        import test
    5151        return test.TestPort(port_name, options)
     52    elif port_to_use.startswith('passing'):
     53        import passing
     54        return passing.PassingPort(port_name, options)
    5255    elif port_to_use.startswith('mac'):
    5356        import mac
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/test.py

    r55208 r55268  
    7777
    7878    def results_directory(self):
    79         return '/tmp' + self._options.results_directory
     79        return '/tmp/' + self._options.results_directory
    8080
    8181    def setup_test_run(self):
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r55264 r55268  
    14691469                                   options.target == 'Debug')
    14701470
    1471     port_obj.start_helper()
     1471    if not options.nostart_helper:
     1472        port_obj.start_helper()
    14721473
    14731474    # Check that the system dependencies (themes, fonts, ...) are correct.
     
    14911492    has_new_failures = test_runner.run(result_summary)
    14921493
    1493     port_obj.stop_helper()
     1494    if not options.nostart_helper:
     1495        port_obj.stop_helper()
    14941496
    14951497    logging.debug("Exit status: %d" % has_new_failures)
     
    16201622                             action="store_true", default=False,
    16211623                             help="run all tests in parallel")
     1624    option_parser.add_option("", "--nostart-helper",
     1625                             action="store_true", default=False,
     1626                             help="don't run layout_test_helper")
    16221627    return option_parser.parse_args(args)
    16231628
Note: See TracChangeset for help on using the changeset viewer.