| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # chrome_tests.py | 6 # chrome_tests.py |
| 7 | 7 |
| 8 ''' Runs various chrome tests through valgrind_test.py.''' | 8 ''' Runs various chrome tests through valgrind_test.py.''' |
| 9 | 9 |
| 10 import glob | 10 import glob |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 229 def TestGURL(self): | 229 def TestGURL(self): |
| 230 return self.SimpleTest("chrome", "googleurl_unittests") | 230 return self.SimpleTest("chrome", "googleurl_unittests") |
| 231 | 231 |
| 232 def TestMedia(self): | 232 def TestMedia(self): |
| 233 return self.SimpleTest("chrome", "media_unittests") | 233 return self.SimpleTest("chrome", "media_unittests") |
| 234 | 234 |
| 235 def TestPrinting(self): | 235 def TestPrinting(self): |
| 236 return self.SimpleTest("chrome", "printing_unittests") | 236 return self.SimpleTest("chrome", "printing_unittests") |
| 237 | 237 |
| 238 def TestRemoting(self): |
| 239 return self.SimpleTest("chrome", "remoting_unittests") |
| 240 |
| 238 def TestIpc(self): | 241 def TestIpc(self): |
| 239 return self.SimpleTest("ipc", "ipc_tests", | 242 return self.SimpleTest("ipc", "ipc_tests", |
| 240 valgrind_test_args=["--trace_children"]) | 243 valgrind_test_args=["--trace_children"]) |
| 241 | 244 |
| 242 def TestNet(self): | 245 def TestNet(self): |
| 243 return self.SimpleTest("net", "net_unittests") | 246 return self.SimpleTest("net", "net_unittests") |
| 244 | 247 |
| 245 def TestStartup(self): | 248 def TestStartup(self): |
| 246 # We don't need the performance results, we're just looking for pointer | 249 # We don't need the performance results, we're just looking for pointer |
| 247 # errors, so set number of iterations down to the minimum. | 250 # errors, so set number of iterations down to the minimum. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 # Recognise the original abbreviations as well as full executable names. | 384 # Recognise the original abbreviations as well as full executable names. |
| 382 _test_list = { | 385 _test_list = { |
| 383 "base": TestBase, "base_unittests": TestBase, | 386 "base": TestBase, "base_unittests": TestBase, |
| 384 "browser": TestBrowser, "browser_tests": TestBrowser, | 387 "browser": TestBrowser, "browser_tests": TestBrowser, |
| 385 "googleurl": TestGURL, "googleurl_unittests": TestGURL, | 388 "googleurl": TestGURL, "googleurl_unittests": TestGURL, |
| 386 "ipc": TestIpc, "ipc_tests": TestIpc, | 389 "ipc": TestIpc, "ipc_tests": TestIpc, |
| 387 "layout": TestLayout, "layout_tests": TestLayout, | 390 "layout": TestLayout, "layout_tests": TestLayout, |
| 388 "media": TestMedia, "media_unittests": TestMedia, | 391 "media": TestMedia, "media_unittests": TestMedia, |
| 389 "net": TestNet, "net_unittests": TestNet, | 392 "net": TestNet, "net_unittests": TestNet, |
| 390 "printing": TestPrinting, "printing_unittests": TestPrinting, | 393 "printing": TestPrinting, "printing_unittests": TestPrinting, |
| 394 "remoting": TestRemoting, "remoting_unittests": TestRemoting, |
| 391 "startup": TestStartup, "startup_tests": TestStartup, | 395 "startup": TestStartup, "startup_tests": TestStartup, |
| 392 "sync": TestSync, "sync_unit_tests": TestSync, | 396 "sync": TestSync, "sync_unit_tests": TestSync, |
| 393 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, | 397 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, |
| 394 "ui": TestUI, "ui_tests": TestUI, | 398 "ui": TestUI, "ui_tests": TestUI, |
| 395 "unit": TestUnit, "unit_tests": TestUnit, | 399 "unit": TestUnit, "unit_tests": TestUnit, |
| 396 "app": TestApp, "app_unittests": TestApp, | 400 "app": TestApp, "app_unittests": TestApp, |
| 397 } | 401 } |
| 398 | 402 |
| 399 def _main(_): | 403 def _main(_): |
| 400 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " | 404 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 for t in options.test: | 444 for t in options.test: |
| 441 tests = ChromeTests(options, args, t) | 445 tests = ChromeTests(options, args, t) |
| 442 ret = tests.Run() | 446 ret = tests.Run() |
| 443 if ret: return ret | 447 if ret: return ret |
| 444 return 0 | 448 return 0 |
| 445 | 449 |
| 446 | 450 |
| 447 if __name__ == "__main__": | 451 if __name__ == "__main__": |
| 448 ret = _main(sys.argv) | 452 ret = _main(sys.argv) |
| 449 sys.exit(ret) | 453 sys.exit(ret) |
| OLD | NEW |