Chromium Code Reviews| 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 multiprocessing | 10 import multiprocessing |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 466 logging.warning("unit_tests are disabled for memcheck on MacOS.") | 466 logging.warning("unit_tests are disabled for memcheck on MacOS.") |
| 467 return 0; | 467 return 0; |
| 468 return self.SimpleTest("chrome", "unit_tests") | 468 return self.SimpleTest("chrome", "unit_tests") |
| 469 | 469 |
| 470 def TestUIBaseUnit(self): | 470 def TestUIBaseUnit(self): |
| 471 return self.SimpleTest("chrome", "ui_base_unittests") | 471 return self.SimpleTest("chrome", "ui_base_unittests") |
| 472 | 472 |
| 473 def TestUIUnit(self): | 473 def TestUIUnit(self): |
| 474 return self.SimpleTest("chrome", "ui_unittests") | 474 return self.SimpleTest("chrome", "ui_unittests") |
| 475 | 475 |
| 476 def TestUIChromeOS(self): | |
|
Lei Zhang
2014/11/18 18:38:11
nit: alphabetical order please
pkotwicz
2014/11/18 18:45:24
Done.
| |
| 477 return self.SimpleTest("chrome", "ui_chromeos_unittests") | |
| 478 | |
| 476 def TestURL(self): | 479 def TestURL(self): |
| 477 return self.SimpleTest("chrome", "url_unittests") | 480 return self.SimpleTest("chrome", "url_unittests") |
| 478 | 481 |
| 479 def TestViews(self): | 482 def TestViews(self): |
| 480 return self.SimpleTest("views", "views_unittests") | 483 return self.SimpleTest("views", "views_unittests") |
| 481 | 484 |
| 482 | 485 |
| 483 # Valgrind timeouts are in seconds. | 486 # Valgrind timeouts are in seconds. |
| 484 UI_VALGRIND_ARGS = ["--timeout=14400", "--trace_children", "--indirect"] | 487 UI_VALGRIND_ARGS = ["--timeout=14400", "--trace_children", "--indirect"] |
| 485 # UI test timeouts are in milliseconds. | 488 # UI test timeouts are in milliseconds. |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 708 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, | 711 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, |
| 709 "printing": TestPrinting, "printing_unittests": TestPrinting, | 712 "printing": TestPrinting, "printing_unittests": TestPrinting, |
| 710 "remoting": TestRemoting, "remoting_unittests": TestRemoting, | 713 "remoting": TestRemoting, "remoting_unittests": TestRemoting, |
| 711 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, | 714 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, |
| 712 "sandbox": TestLinuxSandbox, "sandbox_linux_unittests": TestLinuxSandbox, | 715 "sandbox": TestLinuxSandbox, "sandbox_linux_unittests": TestLinuxSandbox, |
| 713 "sql": TestSql, "sql_unittests": TestSql, | 716 "sql": TestSql, "sql_unittests": TestSql, |
| 714 "sync": TestSync, "sync_unit_tests": TestSync, | 717 "sync": TestSync, "sync_unit_tests": TestSync, |
| 715 "sync_integration_tests": TestSyncIntegration, | 718 "sync_integration_tests": TestSyncIntegration, |
| 716 "sync_integration": TestSyncIntegration, | 719 "sync_integration": TestSyncIntegration, |
| 717 "ui_base_unit": TestUIBaseUnit, "ui_base_unittests": TestUIBaseUnit, | 720 "ui_base_unit": TestUIBaseUnit, "ui_base_unittests": TestUIBaseUnit, |
| 721 "ui_chromeos": TestUIChromeOS, "ui_chromeos_unittests": TestUIChromeOS, | |
| 718 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, | 722 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, |
| 719 "unit": TestUnit, "unit_tests": TestUnit, | 723 "unit": TestUnit, "unit_tests": TestUnit, |
| 720 "url": TestURL, "url_unittests": TestURL, | 724 "url": TestURL, "url_unittests": TestURL, |
| 721 "views": TestViews, "views_unittests": TestViews, | 725 "views": TestViews, "views_unittests": TestViews, |
| 722 "webkit": TestLayout, | 726 "webkit": TestLayout, |
| 723 } | 727 } |
| 724 | 728 |
| 725 | 729 |
| 726 def _main(): | 730 def _main(): |
| 727 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " | 731 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 796 | 800 |
| 797 for t in options.test: | 801 for t in options.test: |
| 798 tests = ChromeTests(options, args, t) | 802 tests = ChromeTests(options, args, t) |
| 799 ret = tests.Run() | 803 ret = tests.Run() |
| 800 if ret: return ret | 804 if ret: return ret |
| 801 return 0 | 805 return 0 |
| 802 | 806 |
| 803 | 807 |
| 804 if __name__ == "__main__": | 808 if __name__ == "__main__": |
| 805 sys.exit(_main()) | 809 sys.exit(_main()) |
| OLD | NEW |