OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 def TestCourgette(self): | 216 def TestCourgette(self): |
217 return self.SimpleTest("courgette", "courgette_unittests") | 217 return self.SimpleTest("courgette", "courgette_unittests") |
218 | 218 |
219 def TestCrypto(self): | 219 def TestCrypto(self): |
220 return self.SimpleTest("crypto", "crypto_unittests") | 220 return self.SimpleTest("crypto", "crypto_unittests") |
221 | 221 |
222 def TestGfx(self): | 222 def TestGfx(self): |
223 return self.SimpleTest("chrome", "gfx_unittests") | 223 return self.SimpleTest("chrome", "gfx_unittests") |
224 | 224 |
| 225 def TestGPU(self): |
| 226 return self.SimpleTest("gpu", "gpu_unittests") |
| 227 |
225 def TestGURL(self): | 228 def TestGURL(self): |
226 return self.SimpleTest("chrome", "googleurl_unittests") | 229 return self.SimpleTest("chrome", "googleurl_unittests") |
227 | 230 |
228 def TestIpc(self): | 231 def TestIpc(self): |
229 return self.SimpleTest("ipc", "ipc_tests", | 232 return self.SimpleTest("ipc", "ipc_tests", |
230 valgrind_test_args=["--trace_children"]) | 233 valgrind_test_args=["--trace_children"]) |
231 | 234 |
232 def TestJingle(self): | 235 def TestJingle(self): |
233 return self.SimpleTest("chrome", "jingle_unittests") | 236 return self.SimpleTest("chrome", "jingle_unittests") |
234 | 237 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, | 436 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, |
434 "sync": TestSync, "sync_unit_tests": TestSync, | 437 "sync": TestSync, "sync_unit_tests": TestSync, |
435 "sync_integration_tests": TestSyncIntegration, | 438 "sync_integration_tests": TestSyncIntegration, |
436 "sync_integration": TestSyncIntegration, | 439 "sync_integration": TestSyncIntegration, |
437 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, | 440 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, |
438 "ui": TestUI, "ui_tests": TestUI, | 441 "ui": TestUI, "ui_tests": TestUI, |
439 "unit": TestUnit, "unit_tests": TestUnit, | 442 "unit": TestUnit, "unit_tests": TestUnit, |
440 "sql": TestSql, "sql_unittests": TestSql, | 443 "sql": TestSql, "sql_unittests": TestSql, |
441 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, | 444 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, |
442 "gfx": TestGfx, "gfx_unittests": TestGfx, | 445 "gfx": TestGfx, "gfx_unittests": TestGfx, |
| 446 "gpu": TestGPU, "gpu_unittests": TestGPU, |
443 "views": TestViews, "views_unittests": TestViews, | 447 "views": TestViews, "views_unittests": TestViews, |
444 } | 448 } |
445 | 449 |
446 def _main(_): | 450 def _main(_): |
447 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " | 451 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " |
448 "[-t <test> ...]") | 452 "[-t <test> ...]") |
449 parser.disable_interspersed_args() | 453 parser.disable_interspersed_args() |
450 parser.add_option("-b", "--build_dir", | 454 parser.add_option("-b", "--build_dir", |
451 help="the location of the compiler output") | 455 help="the location of the compiler output") |
452 parser.add_option("-t", "--test", action="append", default=[], | 456 parser.add_option("-t", "--test", action="append", default=[], |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 for t in options.test: | 491 for t in options.test: |
488 tests = ChromeTests(options, args, t) | 492 tests = ChromeTests(options, args, t) |
489 ret = tests.Run() | 493 ret = tests.Run() |
490 if ret: return ret | 494 if ret: return ret |
491 return 0 | 495 return 0 |
492 | 496 |
493 | 497 |
494 if __name__ == "__main__": | 498 if __name__ == "__main__": |
495 ret = _main(sys.argv) | 499 ret = _main(sys.argv) |
496 sys.exit(ret) | 500 sys.exit(ret) |
OLD | NEW |