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 optparse | 10 import optparse |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 self.SetupLdPath(True) | 218 self.SetupLdPath(True) |
219 return tool.Run(cmd, module) | 219 return tool.Run(cmd, module) |
220 | 220 |
221 def RunCmdLine(self): | 221 def RunCmdLine(self): |
222 tool = valgrind_test.CreateTool(self._options.valgrind_tool) | 222 tool = valgrind_test.CreateTool(self._options.valgrind_tool) |
223 cmd = self._DefaultCommand(tool, None, self._args) | 223 cmd = self._DefaultCommand(tool, None, self._args) |
224 self.SetupLdPath(False) | 224 self.SetupLdPath(False) |
225 return tool.Run(cmd, None) | 225 return tool.Run(cmd, None) |
226 | 226 |
227 def TestAsh(self): | 227 def TestAsh(self): |
228 return self.SimpleTest("ash", "aura_shell_unittests") | 228 return self.SimpleTest("ash", "ash_unittests") |
229 | 229 |
230 def TestAura(self): | 230 def TestAura(self): |
231 return self.SimpleTest("aura", "aura_unittests") | 231 return self.SimpleTest("aura", "aura_unittests") |
232 | 232 |
233 def TestBase(self): | 233 def TestBase(self): |
234 return self.SimpleTest("base", "base_unittests") | 234 return self.SimpleTest("base", "base_unittests") |
235 | 235 |
236 def TestContent(self): | 236 def TestContent(self): |
237 return self.SimpleTest("content", "content_unittests") | 237 return self.SimpleTest("content", "content_unittests") |
238 | 238 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 strerror)) | 467 strerror)) |
468 # Since we're running small chunks of the layout tests, it's important to | 468 # Since we're running small chunks of the layout tests, it's important to |
469 # mark the ones that have errors in them. These won't be visible in the | 469 # mark the ones that have errors in them. These won't be visible in the |
470 # summary list for long, but will be useful for someone reviewing this bot. | 470 # summary list for long, but will be useful for someone reviewing this bot. |
471 return ret | 471 return ret |
472 | 472 |
473 # The known list of tests. | 473 # The known list of tests. |
474 # Recognise the original abbreviations as well as full executable names. | 474 # Recognise the original abbreviations as well as full executable names. |
475 _test_list = { | 475 _test_list = { |
476 "cmdline" : RunCmdLine, | 476 "cmdline" : RunCmdLine, |
477 "ash": TestAsh, "aura_shell_unittests": TestAsh, | 477 "ash": TestAsh, "ash_unittests": TestAsh, |
478 "aura": TestAura, "aura_unittests": TestAura, | 478 "aura": TestAura, "aura_unittests": TestAura, |
479 "automated_ui" : TestAutomatedUI, | 479 "automated_ui" : TestAutomatedUI, |
480 "base": TestBase, "base_unittests": TestBase, | 480 "base": TestBase, "base_unittests": TestBase, |
481 "browser": TestBrowser, "browser_tests": TestBrowser, | 481 "browser": TestBrowser, "browser_tests": TestBrowser, |
482 "crypto": TestCrypto, "crypto_unittests": TestCrypto, | 482 "crypto": TestCrypto, "crypto_unittests": TestCrypto, |
483 "ffmpeg": TestFFmpeg, "ffmpeg_unittests": TestFFmpeg, | 483 "ffmpeg": TestFFmpeg, "ffmpeg_unittests": TestFFmpeg, |
484 "ffmpeg_regression_tests": TestFFmpegRegressions, | 484 "ffmpeg_regression_tests": TestFFmpegRegressions, |
485 "googleurl": TestGURL, "googleurl_unittests": TestGURL, | 485 "googleurl": TestGURL, "googleurl_unittests": TestGURL, |
486 "content": TestContent, "content_unittests": TestContent, | 486 "content": TestContent, "content_unittests": TestContent, |
487 "courgette": TestCourgette, "courgette_unittests": TestCourgette, | 487 "courgette": TestCourgette, "courgette_unittests": TestCourgette, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 558 |
559 for t in options.test: | 559 for t in options.test: |
560 tests = ChromeTests(options, args, t) | 560 tests = ChromeTests(options, args, t) |
561 ret = tests.Run() | 561 ret = tests.Run() |
562 if ret: return ret | 562 if ret: return ret |
563 return 0 | 563 return 0 |
564 | 564 |
565 | 565 |
566 if __name__ == "__main__": | 566 if __name__ == "__main__": |
567 sys.exit(_main()) | 567 sys.exit(_main()) |
OLD | NEW |