| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 else: | 209 else: |
| 210 os.putenv("LD_LIBRARY_PATH", self._options.build_dir) | 210 os.putenv("LD_LIBRARY_PATH", self._options.build_dir) |
| 211 return tool.Run(cmd, module) | 211 return tool.Run(cmd, module) |
| 212 | 212 |
| 213 def TestBase(self): | 213 def TestBase(self): |
| 214 return self.SimpleTest("base", "base_unittests") | 214 return self.SimpleTest("base", "base_unittests") |
| 215 | 215 |
| 216 def TestBrowser(self): | 216 def TestBrowser(self): |
| 217 return self.SimpleTest("chrome", "browser_tests") | 217 return self.SimpleTest("chrome", "browser_tests") |
| 218 | 218 |
| 219 def TestCrypto(self): |
| 220 return self.SimpleTest("crypto", "crypto_unittests") |
| 221 |
| 219 def TestGURL(self): | 222 def TestGURL(self): |
| 220 return self.SimpleTest("chrome", "googleurl_unittests") | 223 return self.SimpleTest("chrome", "googleurl_unittests") |
| 221 | 224 |
| 222 def TestCourgette(self): | 225 def TestCourgette(self): |
| 223 return self.SimpleTest("courgette", "courgette_unittests") | 226 return self.SimpleTest("courgette", "courgette_unittests") |
| 224 | 227 |
| 225 def TestMedia(self): | 228 def TestMedia(self): |
| 226 return self.SimpleTest("chrome", "media_unittests") | 229 return self.SimpleTest("chrome", "media_unittests") |
| 227 | 230 |
| 228 def TestJingle(self): | 231 def TestJingle(self): |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 # mark the ones that have errors in them. These won't be visible in the | 415 # mark the ones that have errors in them. These won't be visible in the |
| 413 # summary list for long, but will be useful for someone reviewing this bot. | 416 # summary list for long, but will be useful for someone reviewing this bot. |
| 414 return ret | 417 return ret |
| 415 | 418 |
| 416 # The known list of tests. | 419 # The known list of tests. |
| 417 # Recognise the original abbreviations as well as full executable names. | 420 # Recognise the original abbreviations as well as full executable names. |
| 418 _test_list = { | 421 _test_list = { |
| 419 "automated_ui" : TestAutomatedUI, | 422 "automated_ui" : TestAutomatedUI, |
| 420 "base": TestBase, "base_unittests": TestBase, | 423 "base": TestBase, "base_unittests": TestBase, |
| 421 "browser": TestBrowser, "browser_tests": TestBrowser, | 424 "browser": TestBrowser, "browser_tests": TestBrowser, |
| 425 "crypto": TestCrypto, "crypto_unittests": TestCrypto, |
| 422 "googleurl": TestGURL, "googleurl_unittests": TestGURL, | 426 "googleurl": TestGURL, "googleurl_unittests": TestGURL, |
| 423 "courgette": TestCourgette, "courgette_unittests": TestCourgette, | 427 "courgette": TestCourgette, "courgette_unittests": TestCourgette, |
| 424 "ipc": TestIpc, "ipc_tests": TestIpc, | 428 "ipc": TestIpc, "ipc_tests": TestIpc, |
| 425 "interactive_ui": TestInteractiveUI, | 429 "interactive_ui": TestInteractiveUI, |
| 426 "layout": TestLayout, "layout_tests": TestLayout, | 430 "layout": TestLayout, "layout_tests": TestLayout, |
| 427 "webkit": TestLayout, | 431 "webkit": TestLayout, |
| 428 "media": TestMedia, "media_unittests": TestMedia, | 432 "media": TestMedia, "media_unittests": TestMedia, |
| 429 "net": TestNet, "net_unittests": TestNet, | 433 "net": TestNet, "net_unittests": TestNet, |
| 430 "jingle": TestJingle, "jingle_unittests": TestJingle, | 434 "jingle": TestJingle, "jingle_unittests": TestJingle, |
| 431 "printing": TestPrinting, "printing_unittests": TestPrinting, | 435 "printing": TestPrinting, "printing_unittests": TestPrinting, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 for t in options.test: | 492 for t in options.test: |
| 489 tests = ChromeTests(options, args, t) | 493 tests = ChromeTests(options, args, t) |
| 490 ret = tests.Run() | 494 ret = tests.Run() |
| 491 if ret: return ret | 495 if ret: return ret |
| 492 return 0 | 496 return 0 |
| 493 | 497 |
| 494 | 498 |
| 495 if __name__ == "__main__": | 499 if __name__ == "__main__": |
| 496 ret = _main(sys.argv) | 500 ret = _main(sys.argv) |
| 497 sys.exit(ret) | 501 sys.exit(ret) |
| OLD | NEW |