Changeset 181093 in webkit
- Timestamp:
- Mar 5, 2015, 12:11:04 PM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/config.json
r181050 r181093 62 62 ], 63 63 64 "builders": [ { "name": "Apple Yosemite (Leaks)", "type": "Test Leaks", "builddir": "yosemite-leaks",64 "builders": [ { "name": "Apple Yosemite (Leaks)", "type": "TestWebKit1Leaks", "builddir": "yosemite-leaks", 65 65 "platform": "mac-yosemite", "configuration": "debug", "architectures": ["x86_64"], 66 66 "additionalArguments": ["--no-retry-failures"], … … 76 76 "slavenames": ["bot101", "bot105"] 77 77 }, 78 { "name": "Apple Mavericks Debug WK1 (Tests)", "type": "Test ", "builddir": "mavericks-debug-tests-wk1",78 { "name": "Apple Mavericks Debug WK1 (Tests)", "type": "TestWebKit1", "builddir": "mavericks-debug-tests-wk1", 79 79 "platform": "mac-mavericks", "configuration": "debug", "architectures": ["x86_64"], 80 80 "additionalArguments": ["--no-retry-failures"], 81 81 "slavenames": ["bot124", "bot108"] 82 82 }, 83 { "name": "Apple Mavericks Debug WK2 (Tests)", "type": "Test WebKit2", "builddir": "mavericks-debug-tests-wk2",83 { "name": "Apple Mavericks Debug WK2 (Tests)", "type": "TestAllButJSC", "builddir": "mavericks-debug-tests-wk2", 84 84 "platform": "mac-mavericks", "configuration": "debug", "architectures": ["x86_64"], 85 85 "additionalArguments": ["--no-retry-failures"], … … 99 99 "slavenames": ["bot301", "bot306"] 100 100 }, 101 { "name": "Apple Mavericks Release WK1 (Tests)", "type": "Test ", "builddir": "mavericks-release-tests-wk1",101 { "name": "Apple Mavericks Release WK1 (Tests)", "type": "TestWebKit1", "builddir": "mavericks-release-tests-wk1", 102 102 "platform": "mac-mavericks", "configuration": "release", "architectures": ["x86_64"], 103 103 "additionalArguments": ["--no-retry-failures"], 104 104 "slavenames": ["bot199", "bot151"] 105 105 }, 106 { "name": "Apple Mavericks Release WK2 (Tests)", "type": "Test WebKit2", "builddir": "mavericks-release-tests-wk2",106 { "name": "Apple Mavericks Release WK2 (Tests)", "type": "TestAllButJSC", "builddir": "mavericks-release-tests-wk2", 107 107 "platform": "mac-mavericks", "configuration": "release", "architectures": ["x86_64"], 108 108 "additionalArguments": ["--no-retry-failures"], … … 110 110 }, 111 111 { 112 "name": "Apple Mavericks Release WK2 (Perf)", "type": "DownloadAndPerfTest WebKit2", "builddir": "mavericks-release-perf-tests",112 "name": "Apple Mavericks Release WK2 (Perf)", "type": "DownloadAndPerfTest", "builddir": "mavericks-release-perf-tests", 113 113 "platform": "mac-mavericks", "configuration": "release", "architectures": ["x86_64"], 114 114 "slavenames": ["bot135"] … … 123 123 "slavenames": ["bot155"] 124 124 }, 125 { "name": "Apple Yosemite Debug WK1 (Tests)", "type": "Test AllButJSC", "builddir": "yosemite-debug-tests-wk1",125 { "name": "Apple Yosemite Debug WK1 (Tests)", "type": "TestWebKit1AllButJSC", "builddir": "yosemite-debug-tests-wk1", 126 126 "platform": "mac-yosemite", "configuration": "debug", "architectures": ["x86_64"], 127 127 "additionalArguments": ["--no-retry-failures"], 128 128 "slavenames": ["bot182", "bot183"] 129 129 }, 130 { "name": "Apple Yosemite Debug WK2 (Tests)", "type": "Test WebKit2", "builddir": "yosemite-debug-tests-wk2",130 { "name": "Apple Yosemite Debug WK2 (Tests)", "type": "TestAllButJSC", "builddir": "yosemite-debug-tests-wk2", 131 131 "platform": "mac-yosemite", "configuration": "debug", "architectures": ["x86_64"], 132 132 "additionalArguments": ["--no-retry-failures"], … … 150 150 "slavenames": ["bot157"] 151 151 }, 152 { "name": "Apple Yosemite Release WK1 (Tests)", "type": "Test AllButJSC", "builddir": "yosemite-release-tests-wk1",152 { "name": "Apple Yosemite Release WK1 (Tests)", "type": "TestWebKit1AllButJSC", "builddir": "yosemite-release-tests-wk1", 153 153 "platform": "mac-yosemite", "configuration": "release", "architectures": ["x86_64"], 154 154 "additionalArguments": ["--no-retry-failures"], 155 155 "slavenames": ["bot190", "bot191"] 156 156 }, 157 { "name": "Apple Yosemite Release WK2 (Tests)", "type": "Test WebKit2", "builddir": "yosemite-release-tests-wk2",157 { "name": "Apple Yosemite Release WK2 (Tests)", "type": "TestAllButJSC", "builddir": "yosemite-release-tests-wk2", 158 158 "platform": "mac-yosemite", "configuration": "release", "architectures": ["x86_64"], 159 159 "additionalArguments": ["--no-retry-failures"], … … 161 161 }, 162 162 { 163 "name": "Apple Yosemite Release WK2 (Perf)", "type": "DownloadAndPerfTest WebKit2", "builddir": "yosemite-release-perf-tests",163 "name": "Apple Yosemite Release WK2 (Perf)", "type": "DownloadAndPerfTest", "builddir": "yosemite-release-perf-tests", 164 164 "platform": "mac-yosemite", "configuration": "release", "architectures": ["x86_64"], 165 165 "slavenames": ["bot194"] … … 172 172 }, 173 173 { 174 "name": "Apple Win 7 Release (Tests)", "type": "Test ", "builddir": "win-release-tests",174 "name": "Apple Win 7 Release (Tests)", "type": "TestWebKit1", "builddir": "win-release-tests", 175 175 "platform": "win", "configuration": "release", "architectures": ["i386"], 176 176 "slavenames": ["bot511", "bot501"] … … 183 183 }, 184 184 { 185 "name": "Apple Win 7 Debug (Tests)", "type": "Test ", "builddir": "win-debug-tests",185 "name": "Apple Win 7 Debug (Tests)", "type": "TestWebKit1", "builddir": "win-debug-tests", 186 186 "platform": "win", "configuration": "debug", "architectures": ["i386"], 187 187 "slavenames": ["bot507", "bot504"] … … 199 199 }, 200 200 { 201 "name": "GTK Linux 64-bit Release (Tests)", "type": "Test WebKit2AndJSC", "builddir": "gtk-linux-64-release-tests",201 "name": "GTK Linux 64-bit Release (Tests)", "type": "Test", "builddir": "gtk-linux-64-release-tests", 202 202 "platform": "gtk", "configuration": "release", "architectures": ["x86_64"], 203 203 "slavenames": ["gtk-linux-slave-6"] … … 210 210 }, 211 211 { 212 "name": "GTK Linux 64-bit Debug (Tests)", "type": "Test WebKit2AndJSC", "builddir": "gtk-linux-64-debug-tests",212 "name": "GTK Linux 64-bit Debug (Tests)", "type": "Test", "builddir": "gtk-linux-64-debug-tests", 213 213 "platform": "gtk", "configuration": "debug", "architectures": ["x86_64"], 214 214 "slavenames": ["gtk-linux-slave-7"] … … 220 220 }, 221 221 { 222 "name": "GTK Linux 64-bit Release (Perf)", "type": "DownloadAndPerfTest WebKit2", "builddir": "gtk-linux-64-release-perf-tests",222 "name": "GTK Linux 64-bit Release (Perf)", "type": "DownloadAndPerfTest", "builddir": "gtk-linux-64-release-perf-tests", 223 223 "platform": "gtk", "configuration": "release", "architectures": ["x86_64"], 224 224 "slavenames": ["gtk-linux-slave-8"] … … 247 247 }, 248 248 { 249 "name": "EFL Linux 64-bit Release WK2 (Perf)", "type": "BuildAndPerfTest WebKit2", "builddir": "efl-linux-64-release-wk2-perf",249 "name": "EFL Linux 64-bit Release WK2 (Perf)", "type": "BuildAndPerfTest", "builddir": "efl-linux-64-release-wk2-perf", 250 250 "platform": "efl", "configuration": "release", "architectures": ["x86_64"], 251 251 "SVNMirror": "svn://webkit.inf.u-szeged.hu/webkit/", -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg
r180999 r181093 629 629 return SUCCESS 630 630 631 class RunWebKitLeakTests(RunWebKitTests): 631 class RunWebKit1Tests(RunWebKitTests): 632 def start(self): 633 self.setCommand(self.command + ["--dump-render-tree"]) 634 635 return RunWebKitTests.start(self) 636 637 class RunWebKit1LeakTests(RunWebKit1Tests): 632 638 warnOnWarnings = True 633 639 def start(self): 634 640 self.setCommand(self.command + ["--leaks"]) 635 return RunWebKitTests.start(self) 636 637 638 class RunWebKit2Tests(RunWebKitTests): 639 def start(self): 640 self.setCommand(self.command + ["--webkit-test-runner"]) 641 642 return RunWebKitTests.start(self) 643 641 return RunWebKit1Tests.start(self) 644 642 645 643 class RunAndUploadPerfTests(shell.Test): … … 682 680 683 681 return [self.name] 684 685 686 class RunAndUploadPerfTestsWebKit2(RunAndUploadPerfTests):687 def start(self):688 self.setCommand(self.command + ["--webkit-test-runner"])689 return RunAndUploadPerfTests.start(self)690 682 691 683 … … 840 832 self.addStep(RunRemoteJavaScriptCoreTests()) 841 833 842 class Test LeaksFactory(Factory):834 class TestWebKit1LeaksFactory(Factory): 843 835 def __init__(self, platform, configuration, architectures, additionalArguments=None, SVNMirror=None): 844 836 Factory.__init__(self, platform, configuration, architectures, False, additionalArguments, SVNMirror) 845 837 self.addStep(DownloadBuiltProduct()) 846 838 self.addStep(ExtractBuiltProduct()) 847 self.addStep(RunWebKit LeakTests())839 self.addStep(RunWebKit1LeakTests()) 848 840 self.addStep(ArchiveTestResults()) 849 841 self.addStep(UploadTestResults()) … … 860 852 self.addStep(RunJavaScriptCoreTests()) 861 853 862 class TestWebKit2Factory(TestFactory): 863 LayoutTestClass = RunWebKit2Tests 854 class TestWebKit1Factory(TestFactory): 855 LayoutTestClass = RunWebKit1Tests 856 857 class TestWebKit1AllButJSCFactory(TestWebKit1Factory): 864 858 JSCTestClass = None 865 866 class TestWebKit2AndJSCFactory(TestFactory):867 LayoutTestClass = RunWebKit2Tests868 859 869 860 class BuildAndPerfTestFactory(Factory): … … 872 863 self.addStep(CompileWebKit()) 873 864 self.addStep(RunAndUploadPerfTests()) 874 875 class BuildAndPerfTestWebKit2Factory(Factory):876 def __init__(self, platform, configuration, architectures, additionalArguments=None, SVNMirror=None, **kwargs):877 Factory.__init__(self, platform, configuration, architectures, False, additionalArguments, SVNMirror, **kwargs)878 self.addStep(CompileWebKit())879 self.addStep(RunAndUploadPerfTestsWebKit2())880 865 881 866 class DownloadAndPerfTestFactory(Factory): … … 885 870 self.addStep(ExtractBuiltProduct()) 886 871 self.addStep(RunAndUploadPerfTests()) 887 888 class DownloadAndPerfTestWebKit2Factory(Factory):889 def __init__(self, platform, configuration, architectures, additionalArguments=None, SVNMirror=None, **kwargs):890 Factory.__init__(self, platform, configuration, architectures, False, additionalArguments, SVNMirror, **kwargs)891 self.addStep(DownloadBuiltProduct())892 self.addStep(ExtractBuiltProduct())893 self.addStep(RunAndUploadPerfTestsWebKit2())894 872 895 873 class PlatformSpecificScheduler(AnyBranchScheduler): -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py
r181070 r181093 372 372 'Apple Mavericks LLINT CLoop (BuildAndTest)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'compile-webkit', 'webkit-jsc-cloop-test'], 373 373 'Apple Mavericks Release (Build)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'compile-webkit', 'archive-built-product', 'upload', 'trigger'], 374 'Apple Mavericks Release (Perf)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'download-built-product', 'extract-built-product', 'perf-test'],374 'Apple Mavericks Release WK2 (Perf)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'download-built-product', 'extract-built-product', 'perf-test'], 375 375 'Apple Mavericks Release WK1 (Tests)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'download-built-product', 'extract-built-product', 'jscore-test', 'layout-test', 'run-api-tests', 'webkitpy-test', 'webkitperl-test', 'bindings-generation-tests', 'archive-test-results', 'upload', 'MasterShellCommand'], 376 376 'Apple Mavericks Release WK2 (Tests)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'download-built-product', 'extract-built-product', 'layout-test', 'run-api-tests', 'webkitpy-test', 'webkitperl-test', 'bindings-generation-tests', 'archive-test-results', 'upload', 'MasterShellCommand'], … … 390 390 'Apple Yosemite Release (32-bit Build)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'compile-webkit'], 391 391 'Apple Yosemite Release (Build)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'compile-webkit', 'archive-built-product', 'upload', 'trigger'], 392 'Apple Yosemite Release (Perf)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'download-built-product', 'extract-built-product', 'perf-test'],392 'Apple Yosemite Release WK2 (Perf)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'download-built-product', 'extract-built-product', 'perf-test'], 393 393 'Apple Yosemite Release JSC (Tests)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'download-built-product', 'extract-built-product', 'jscore-test'], 394 394 'Apple Yosemite Release WK1 (Tests)' : ['configure build', 'svn', 'kill old processes', 'delete WebKitBuild directory', 'delete stale build files', 'download-built-product', 'extract-built-product', 'layout-test', 'run-api-tests', 'webkitpy-test', 'webkitperl-test', 'bindings-generation-tests', 'archive-test-results', 'upload', 'MasterShellCommand'], -
trunk/Tools/ChangeLog
r181092 r181093 1 2015-03-05 Chris Dumez <cdumez@apple.com> 2 3 run-webkit-tests and run-perf-tests should use WebKitTestRunner by default 4 https://bugs.webkit.org/show_bug.cgi?id=142325 5 6 Reviewed by Csaba Osztrogonác. 7 8 run-webkit-tests and run-perf-tests now use WebKitTestRunner by default. 9 As a result, "--webkit-test-runner / -2" parameters are replaced by 10 "--dump-render-tree / -1" so developers can run DumpRenderTree rather 11 than WebKitTestRunner. 12 13 * BuildSlaveSupport/build.webkit.org-config/config.json: 14 * BuildSlaveSupport/build.webkit.org-config/master.cfg: 15 (RunWebKit1Tests): 16 (RunWebKit1Tests.start): 17 (RunWebKit1LeakTests): 18 (RunWebKit1LeakTests.start): 19 (RunAndUploadPerfTestsWebKit1): 20 (RunAndUploadPerfTestsWebKit1.start): 21 (TestFactory): 22 (TestWebKit1LeaksFactory): 23 (TestWebKit1LeaksFactory.__init__): 24 (TestWebKit1Factory): 25 (TestWebKit1AllButJSCFactory): 26 (TestAllButJSCFactory): 27 (BuildAndPerfTestWebKit1Factory): 28 (BuildAndPerfTestWebKit1Factory.__init__): 29 (BuildAndPerfTestFactory): 30 (BuildAndPerfTestFactory.__init__): 31 (DownloadAndPerfTestWebKit1Factory): 32 (DownloadAndPerfTestWebKit1Factory.__init__): 33 (DownloadAndPerfTestFactory): 34 (DownloadAndPerfTestFactory.__init__): 35 (RunWebKitLeakTests): Deleted. 36 (RunWebKitLeakTests.start): Deleted. 37 (RunWebKit2Tests): Deleted. 38 (RunWebKit2Tests.start): Deleted. 39 (RunAndUploadPerfTestsWebKit2): Deleted. 40 (RunAndUploadPerfTestsWebKit2.start): Deleted. 41 (TestLeaksFactory): Deleted. 42 (TestLeaksFactory.__init__): Deleted. 43 (TestWebKit2Factory): Deleted. 44 (TestWebKit2AndJSCFactory): Deleted. 45 (BuildAndPerfTestWebKit2Factory): Deleted. 46 (BuildAndPerfTestWebKit2Factory.__init__): Deleted. 47 (DownloadAndPerfTestWebKit2Factory): Deleted. 48 (DownloadAndPerfTestWebKit2Factory.__init__): Deleted. 49 * Scripts/webkitpy/layout_tests/run_webkit_tests.py: 50 (parse_args): 51 * Scripts/webkitpy/performance_tests/perftestsrunner.py: 52 (PerfTestsRunner._parse_args): 53 * Scripts/webkitpy/port/port_testcase.py: 54 (PortTestCase.test_build_driver): 55 1 56 2015-03-05 Brent Fulgham <bfulgham@apple.com> 2 57 -
trunk/Tools/Scripts/webkitpy/common/config/ports.py
r178641 r181093 133 133 port_flag_name = "mac" 134 134 135 def run_webkit_tests_command(self): 136 command = super(MacPort, self).run_webkit_tests_command() 137 command.append("--dump-render-tree") 138 return command 135 139 136 140 class MacWK2Port(DeprecatedPort): 137 141 port_flag_name = "mac-wk2" 138 139 def run_webkit_tests_command(self):140 command = super(MacWK2Port, self).run_webkit_tests_command()141 command.append("-2")142 return command143 142 144 143 … … 148 147 def run_bindings_tests_command(self): 149 148 return None 149 150 def run_webkit_tests_command(self): 151 command = super(WinPort, self).run_webkit_tests_command() 152 command.append("--dump-render-tree") 153 return command 150 154 151 155 … … 163 167 command = super(GtkWK2Port, self).run_webkit_tests_command() 164 168 command.append("--gtk") 165 command.append("-2")166 169 return command 167 170 -
trunk/Tools/Scripts/webkitpy/common/config/ports_unittest.py
r174136 r181093 35 35 def test_mac_port(self): 36 36 self.assertEqual(MacPort().flag(), "--port=mac") 37 self.assertEqual(MacPort().run_webkit_tests_command(), DeprecatedPort().script_shell_command("run-webkit-tests") )37 self.assertEqual(MacPort().run_webkit_tests_command(), DeprecatedPort().script_shell_command("run-webkit-tests") + ["--dump-render-tree"]) 38 38 self.assertEqual(MacPort().build_webkit_command(), DeprecatedPort().script_shell_command("build-webkit")) 39 39 self.assertEqual(MacPort().build_webkit_command(build_style="debug"), DeprecatedPort().script_shell_command("build-webkit") + ["--debug"]) … … 42 42 def test_gtk_wk2_port(self): 43 43 self.assertEqual(GtkWK2Port().flag(), "--port=gtk-wk2") 44 self.assertEqual(GtkWK2Port().run_webkit_tests_command(), DeprecatedPort().script_shell_command("run-webkit-tests") + ["--gtk" , "-2"])44 self.assertEqual(GtkWK2Port().run_webkit_tests_command(), DeprecatedPort().script_shell_command("run-webkit-tests") + ["--gtk"]) 45 45 self.assertEqual(GtkWK2Port().build_webkit_command(), DeprecatedPort().script_shell_command("build-webkit") + ["--gtk", "--update-gtk", DeprecatedPort().makeArgs()]) 46 46 self.assertEqual(GtkWK2Port().build_webkit_command(build_style="debug"), DeprecatedPort().script_shell_command("build-webkit") + ["--debug", "--gtk", "--update-gtk", DeprecatedPort().makeArgs()]) -
trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
r180238 r181093 123 123 optparse.make_option("--threaded", action="store_true", default=False, 124 124 help="Run a concurrent JavaScript thread with each test"), 125 optparse.make_option("-- webkit-test-runner", "-2", action="store_true",126 help="Use WebKitTestRunner rather than DumpRenderTree."),125 optparse.make_option("--dump-render-tree", "-1", action="store_false", default=True, dest="webkit_test_runner", 126 help="Use DumpRenderTree rather than WebKitTestRunner."), 127 127 # FIXME: We should merge this w/ --build-directory and only have one flag. 128 128 optparse.make_option("--root", action="store", -
trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py
r177471 r181093 538 538 host = MockHost() 539 539 host.filesystem.write_text_file('/Users/mock/Library/Logs/DiagnosticReports/DumpRenderTree_2011-06-13-150719_quadzen.crash', mock_crash_report) 540 _, regular_output, _ = logging_run(['failures/unexpected/crash-with-stderr.html' ], tests_included=True, host=host)540 _, regular_output, _ = logging_run(['failures/unexpected/crash-with-stderr.html', '--dump-render-tree'], tests_included=True, host=host) 541 541 expected_crash_log = mock_crash_report 542 542 self.assertEqual(host.filesystem.read_text_file('/tmp/layout-test-results/failures/unexpected/crash-with-stderr-crash-log.txt'), expected_crash_log) -
trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
r179553 r181093 116 116 optparse.make_option("--test-results-server", 117 117 help="Upload the generated JSON file to the specified server when --output-json-path is present."), 118 optparse.make_option("-- webkit-test-runner", "-2", action="store_true",119 help="Use WebKitTestRunner rather than DumpRenderTree."),118 optparse.make_option("--dump-render-tree", "-1", action="store_false", default=True, dest="webkit_test_runner", 119 help="Use DumpRenderTree rather than WebKitTestRunner."), 120 120 optparse.make_option("--force", dest="use_skipped_list", action="store_false", default=True, 121 121 help="Run all tests, including the ones in the Skipped list."), -
trunk/Tools/Scripts/webkitpy/port/port_testcase.py
r179405 r181093 495 495 self.assertTrue(output.assert_outputs(self, port._build_driver, expected_logs=expected_logs)) 496 496 497 # Make sure when passed --webkit-test-runner we build the right tool.497 # Make sure WebKitTestRunner is used. 498 498 port._options = MockOptions(webkit_test_runner=True, configuration="Release") 499 499 expected_logs = "MOCK run_command: ['Tools/Scripts/build-dumprendertree', '--release'], cwd=/mock-checkout, env={'LC_ALL': 'C', 'MOCK_ENVIRON_COPY': '1'}\nMOCK run_command: ['Tools/Scripts/build-webkittestrunner', '--release'], cwd=/mock-checkout, env={'LC_ALL': 'C', 'MOCK_ENVIRON_COPY': '1'}\n"
Note:
See TracChangeset
for help on using the changeset viewer.