12011-12-01 Ryosuke Niwa <rniwa@webkit.org>
2
3 Parse reftest.list and extract types of ref tests
4 https://bugs.webkit.org/show_bug.cgi?id=66837
5
6 Reviewed by NOBODY (OOPS!).
7
8 Add support for reftest.list to base port.
9
10 * Scripts/webkitpy/common/find_files.py:
11 (find):
12 * Scripts/webkitpy/layout_tests/controllers/single_test_runner.py:
13 (SingleTestRunner.__init__):
14 * Scripts/webkitpy/layout_tests/port/base.py:
15 (Port.__init__): Initialize self._reftest_list. It's a dictionary mapping from a test directory
16 to a dictionary of {test path: ("==" or "!=", reference file path)}
17 (Port._get_reftest_list): Added; calls test_file.parse_reftest_list to fill self._reftest_list.
18 (Port._reference_file_for): Added; obtains the reference file name given a test name.
19 (Port.is_reftest): Added; Calls _reference_file_for.
20 (Port.reftest_expected_filename): Calls _reference_file_for.
21 (Port.reftest_expected_mismatch_filename): Ditto.
22 (Port.find_test_files):
23 (is_reference_html_file): Treat any file that starts with ref- or notref- or ends with
24 -expected, -expected-mismach, -ref, or -notref as a reference file.
25 (_is_test_file):
26 (_parse_reftest_list): Added.
27 * Scripts/webkitpy/layout_tests/port/base_unittest.py:
28 (PortTest.test_is_test_file):
29 (PortTest.test_parse_reftest_list):
30 * Scripts/webkitpy/layout_tests/port/dryrun.py:
31 (DryrunDriver.run_test):
32 * Scripts/webkitpy/layout_tests/port/test.py:
33 (unit_test_filesystem.add_test_file):
34 (unit_test_filesystem.add_file):
35 (unit_test_filesystem):
36 * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
37 (get_tests_run.RecordingTestDriver.run_test):
38 (MainTest.test_unexpected_failures):
39 (MainTest.test_missing_and_unexpected_results):
40 (EndToEndTest.test_end_to_end):
41 * Scripts/webkitpy/to_be_moved/rebaseline_chromium_webkit_tests.py:
42 (Rebaseliner._compile_rebaselining_tests):
43