OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 ''' Runs various chrome tests through valgrind_test.py.''' | 6 ''' Runs various chrome tests through valgrind_test.py.''' |
7 | 7 |
8 import glob | 8 import glob |
9 import logging | 9 import logging |
10 import optparse | 10 import optparse |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 cmd_args=[ | 310 cmd_args=[ |
311 "--ui-test-action-timeout=60000", | 311 "--ui-test-action-timeout=60000", |
312 "--ui-test-action-max-timeout=150000"]) | 312 "--ui-test-action-max-timeout=150000"]) |
313 | 313 |
314 def TestSql(self): | 314 def TestSql(self): |
315 return self.SimpleTest("chrome", "sql_unittests") | 315 return self.SimpleTest("chrome", "sql_unittests") |
316 | 316 |
317 def TestSync(self): | 317 def TestSync(self): |
318 return self.SimpleTest("chrome", "sync_unit_tests") | 318 return self.SimpleTest("chrome", "sync_unit_tests") |
319 | 319 |
| 320 def TestLinuxSandbox(self): |
| 321 return self.SimpleTest("sandbox", "sandbox_linux_unittests") |
| 322 |
320 def TestTestShell(self): | 323 def TestTestShell(self): |
321 return self.SimpleTest("webkit", "test_shell_tests") | 324 return self.SimpleTest("webkit", "test_shell_tests") |
322 | 325 |
323 def TestUnit(self): | 326 def TestUnit(self): |
324 # http://crbug.com/51716 | 327 # http://crbug.com/51716 |
325 # Disabling all unit tests | 328 # Disabling all unit tests |
326 # Problems reappeared after r119922 | 329 # Problems reappeared after r119922 |
327 if common.IsMac() and (self._options.valgrind_tool == "memcheck"): | 330 if common.IsMac() and (self._options.valgrind_tool == "memcheck"): |
328 logging.warning("unit_tests are disabled for memcheck on MacOS.") | 331 logging.warning("unit_tests are disabled for memcheck on MacOS.") |
329 return 0; | 332 return 0; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 "layout": TestLayout, "layout_tests": TestLayout, | 522 "layout": TestLayout, "layout_tests": TestLayout, |
520 "webkit": TestLayout, | 523 "webkit": TestLayout, |
521 "media": TestMedia, "media_unittests": TestMedia, | 524 "media": TestMedia, "media_unittests": TestMedia, |
522 "net": TestNet, "net_unittests": TestNet, | 525 "net": TestNet, "net_unittests": TestNet, |
523 "jingle": TestJingle, "jingle_unittests": TestJingle, | 526 "jingle": TestJingle, "jingle_unittests": TestJingle, |
524 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, | 527 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, |
525 "printing": TestPrinting, "printing_unittests": TestPrinting, | 528 "printing": TestPrinting, "printing_unittests": TestPrinting, |
526 "reliability": TestReliability, "reliability_tests": TestReliability, | 529 "reliability": TestReliability, "reliability_tests": TestReliability, |
527 "remoting": TestRemoting, "remoting_unittests": TestRemoting, | 530 "remoting": TestRemoting, "remoting_unittests": TestRemoting, |
528 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, | 531 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, |
| 532 "sandbox": TestLinuxSandbox, "sandbox_linux_unittests": TestLinuxSandbox, |
529 "sql": TestSql, "sql_unittests": TestSql, | 533 "sql": TestSql, "sql_unittests": TestSql, |
530 "sync": TestSync, "sync_unit_tests": TestSync, | 534 "sync": TestSync, "sync_unit_tests": TestSync, |
531 "sync_integration_tests": TestSyncIntegration, | 535 "sync_integration_tests": TestSyncIntegration, |
532 "sync_integration": TestSyncIntegration, | 536 "sync_integration": TestSyncIntegration, |
533 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, | 537 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, |
534 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, | 538 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, |
535 "unit": TestUnit, "unit_tests": TestUnit, | 539 "unit": TestUnit, "unit_tests": TestUnit, |
536 "views": TestViews, "views_unittests": TestViews, | 540 "views": TestViews, "views_unittests": TestViews, |
537 } | 541 } |
538 | 542 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 | 596 |
593 for t in options.test: | 597 for t in options.test: |
594 tests = ChromeTests(options, args, t) | 598 tests = ChromeTests(options, args, t) |
595 ret = tests.Run() | 599 ret = tests.Run() |
596 if ret: return ret | 600 if ret: return ret |
597 return 0 | 601 return 0 |
598 | 602 |
599 | 603 |
600 if __name__ == "__main__": | 604 if __name__ == "__main__": |
601 sys.exit(_main()) | 605 sys.exit(_main()) |
OLD | NEW |