| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 if (os.getenv("LD_LIBRARY_PATH")): | 206 if (os.getenv("LD_LIBRARY_PATH")): |
| 207 os.putenv("LD_LIBRARY_PATH", "%s:%s" % (os.getenv("LD_LIBRARY_PATH"), | 207 os.putenv("LD_LIBRARY_PATH", "%s:%s" % (os.getenv("LD_LIBRARY_PATH"), |
| 208 self._options.build_dir)) | 208 self._options.build_dir)) |
| 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 TestContent(self): |
| 217 return self.SimpleTest("content", "content_unittests") |
| 218 |
| 216 def TestCourgette(self): | 219 def TestCourgette(self): |
| 217 return self.SimpleTest("courgette", "courgette_unittests") | 220 return self.SimpleTest("courgette", "courgette_unittests") |
| 218 | 221 |
| 219 def TestCrypto(self): | 222 def TestCrypto(self): |
| 220 return self.SimpleTest("crypto", "crypto_unittests") | 223 return self.SimpleTest("crypto", "crypto_unittests") |
| 221 | 224 |
| 222 def TestGfx(self): | 225 def TestGfx(self): |
| 223 return self.SimpleTest("chrome", "gfx_unittests") | 226 return self.SimpleTest("chrome", "gfx_unittests") |
| 224 | 227 |
| 225 def TestGPU(self): | 228 def TestGPU(self): |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 return ret | 418 return ret |
| 416 | 419 |
| 417 # The known list of tests. | 420 # The known list of tests. |
| 418 # Recognise the original abbreviations as well as full executable names. | 421 # Recognise the original abbreviations as well as full executable names. |
| 419 _test_list = { | 422 _test_list = { |
| 420 "automated_ui" : TestAutomatedUI, | 423 "automated_ui" : TestAutomatedUI, |
| 421 "base": TestBase, "base_unittests": TestBase, | 424 "base": TestBase, "base_unittests": TestBase, |
| 422 "browser": TestBrowser, "browser_tests": TestBrowser, | 425 "browser": TestBrowser, "browser_tests": TestBrowser, |
| 423 "crypto": TestCrypto, "crypto_unittests": TestCrypto, | 426 "crypto": TestCrypto, "crypto_unittests": TestCrypto, |
| 424 "googleurl": TestGURL, "googleurl_unittests": TestGURL, | 427 "googleurl": TestGURL, "googleurl_unittests": TestGURL, |
| 428 "content": TestContent, "content_unittests": TestContent, |
| 425 "courgette": TestCourgette, "courgette_unittests": TestCourgette, | 429 "courgette": TestCourgette, "courgette_unittests": TestCourgette, |
| 426 "ipc": TestIpc, "ipc_tests": TestIpc, | 430 "ipc": TestIpc, "ipc_tests": TestIpc, |
| 427 "interactive_ui": TestInteractiveUI, | 431 "interactive_ui": TestInteractiveUI, |
| 428 "layout": TestLayout, "layout_tests": TestLayout, | 432 "layout": TestLayout, "layout_tests": TestLayout, |
| 429 "webkit": TestLayout, | 433 "webkit": TestLayout, |
| 430 "media": TestMedia, "media_unittests": TestMedia, | 434 "media": TestMedia, "media_unittests": TestMedia, |
| 431 "net": TestNet, "net_unittests": TestNet, | 435 "net": TestNet, "net_unittests": TestNet, |
| 432 "jingle": TestJingle, "jingle_unittests": TestJingle, | 436 "jingle": TestJingle, "jingle_unittests": TestJingle, |
| 433 "printing": TestPrinting, "printing_unittests": TestPrinting, | 437 "printing": TestPrinting, "printing_unittests": TestPrinting, |
| 434 "reliability": TestReliability, "reliability_tests": TestReliability, | 438 "reliability": TestReliability, "reliability_tests": TestReliability, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 for t in options.test: | 495 for t in options.test: |
| 492 tests = ChromeTests(options, args, t) | 496 tests = ChromeTests(options, args, t) |
| 493 ret = tests.Run() | 497 ret = tests.Run() |
| 494 if ret: return ret | 498 if ret: return ret |
| 495 return 0 | 499 return 0 |
| 496 | 500 |
| 497 | 501 |
| 498 if __name__ == "__main__": | 502 if __name__ == "__main__": |
| 499 ret = _main(sys.argv) | 503 ret = _main(sys.argv) |
| 500 sys.exit(ret) | 504 sys.exit(ret) |
| OLD | NEW |