Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 ''' Runs various chrome tests through heapcheck_test.py. | 7 ''' Runs various chrome tests through heapcheck_test.py. |
| 8 | 8 |
| 9 Most of this code is copied from ../valgrind/chrome_tests.py. | 9 Most of this code is copied from ../valgrind/chrome_tests.py. |
| 10 TODO(glider): put common functions to a standalone module. | 10 TODO(glider): put common functions to a standalone module. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 "layout": self.TestLayout, "layout_tests": self.TestLayout, | 89 "layout": self.TestLayout, "layout_tests": self.TestLayout, |
| 90 "media": self.TestMedia, "media_unittests": self.TestMedia, | 90 "media": self.TestMedia, "media_unittests": self.TestMedia, |
| 91 "net": self.TestNet, "net_unittests": self.TestNet, | 91 "net": self.TestNet, "net_unittests": self.TestNet, |
| 92 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, | 92 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, |
| 93 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting, | 93 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting, |
| 94 "startup": self.TestStartup, "startup_tests": self.TestStartup, | 94 "startup": self.TestStartup, "startup_tests": self.TestStartup, |
| 95 "sync": self.TestSync, "sync_unit_tests": self.TestSync, | 95 "sync": self.TestSync, "sync_unit_tests": self.TestSync, |
| 96 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell, | 96 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell, |
| 97 "ui": self.TestUI, "ui_tests": self.TestUI, | 97 "ui": self.TestUI, "ui_tests": self.TestUI, |
| 98 "unit": self.TestUnit, "unit_tests": self.TestUnit, | 98 "unit": self.TestUnit, "unit_tests": self.TestUnit, |
| 99 "app": self.TestApp, "app_unittests": self.TestApp, | 99 "sql": self.TestSql, "sql_unittests": self.TestSql, |
|
Timur Iskhodzhanov
2011/06/30 04:21:13
AFAIU you have both sql_unittests and app_unittest
| |
| 100 "ui_unit": self.TestUIUnit, "ui_unittests": self.TestUIUnit, | 100 "ui_unit": self.TestUIUnit, "ui_unittests": self.TestUIUnit, |
| 101 "gfx": self.TestGfx, "gfx_unittests": self.TestGfx, | 101 "gfx": self.TestGfx, "gfx_unittests": self.TestGfx, |
| 102 } | 102 } |
| 103 | 103 |
| 104 if test not in self._test_list: | 104 if test not in self._test_list: |
| 105 raise TestNotFound("Unknown test: %s" % test) | 105 raise TestNotFound("Unknown test: %s" % test) |
| 106 | 106 |
| 107 self._options = options | 107 self._options = options |
| 108 self._args = args | 108 self._args = args |
| 109 self._test = test | 109 self._test = test |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 288 os.putenv("STARTUP_TESTS_NUMCYCLES", "1") | 288 os.putenv("STARTUP_TESTS_NUMCYCLES", "1") |
| 289 logging.info("export STARTUP_TESTS_NUMCYCLES=1"); | 289 logging.info("export STARTUP_TESTS_NUMCYCLES=1"); |
| 290 return self.SimpleTest("chrome", "startup_tests") | 290 return self.SimpleTest("chrome", "startup_tests") |
| 291 | 291 |
| 292 def TestTestShell(self): | 292 def TestTestShell(self): |
| 293 return self.SimpleTest("webkit", "test_shell_tests") | 293 return self.SimpleTest("webkit", "test_shell_tests") |
| 294 | 294 |
| 295 def TestUnit(self): | 295 def TestUnit(self): |
| 296 return self.SimpleTest("chrome", "unit_tests") | 296 return self.SimpleTest("chrome", "unit_tests") |
| 297 | 297 |
| 298 def TestApp(self): | 298 def TestSql(self): |
| 299 return self.SimpleTest("chrome", "app_unittests") | 299 return self.SimpleTest("chrome", "sql_unittests") |
| 300 | 300 |
| 301 def TestUIUnit(self): | 301 def TestUIUnit(self): |
| 302 return self.SimpleTest("chrome", "ui_unittests") | 302 return self.SimpleTest("chrome", "ui_unittests") |
| 303 | 303 |
| 304 def TestGfx(self): | 304 def TestGfx(self): |
| 305 return self.SimpleTest("chrome", "gfx_unittests") | 305 return self.SimpleTest("chrome", "gfx_unittests") |
| 306 | 306 |
| 307 def TestUI(self): | 307 def TestUI(self): |
| 308 return self.SimpleTest("chrome", "ui_tests", | 308 return self.SimpleTest("chrome", "ui_tests", |
| 309 cmd_args=[ | 309 cmd_args=[ |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 456 return 0 | 456 return 0 |
| 457 | 457 |
| 458 | 458 |
| 459 if __name__ == "__main__": | 459 if __name__ == "__main__": |
| 460 if sys.platform.startswith('linux'): | 460 if sys.platform.startswith('linux'): |
| 461 ret = _main(sys.argv) | 461 ret = _main(sys.argv) |
| 462 else: | 462 else: |
| 463 logging.error("Heap checking works only on Linux at the moment.") | 463 logging.error("Heap checking works only on Linux at the moment.") |
| 464 ret = 1 | 464 ret = 1 |
| 465 sys.exit(ret) | 465 sys.exit(ret) |
| OLD | NEW |