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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 def TestCrypto(self): | 242 def TestCrypto(self): |
243 return self.SimpleTest("crypto", "crypto_unittests") | 243 return self.SimpleTest("crypto", "crypto_unittests") |
244 | 244 |
245 def TestFFmpeg(self): | 245 def TestFFmpeg(self): |
246 return self.SimpleTest("chrome", "ffmpeg_unittests") | 246 return self.SimpleTest("chrome", "ffmpeg_unittests") |
247 | 247 |
248 def TestFFmpegRegressions(self): | 248 def TestFFmpegRegressions(self): |
249 return self.SimpleTest("chrome", "ffmpeg_regression_tests") | 249 return self.SimpleTest("chrome", "ffmpeg_regression_tests") |
250 | 250 |
251 def TestGfx(self): | 251 def TestGfx(self): |
252 return self.SimpleTest("chrome", "gfx_unittests") | 252 # Run ui_unittests, a successor of gfx_unittests, since gfx_unittests is |
| 253 # deprecated. |
| 254 # TODO(hbono): This is a band-aid fix. We need to change the master script |
| 255 # so our bots run ui_unittests. |
| 256 return self.SimpleTest("chrome", "ui_unittests") |
253 | 257 |
254 def TestGPU(self): | 258 def TestGPU(self): |
255 return self.SimpleTest("gpu", "gpu_unittests") | 259 return self.SimpleTest("gpu", "gpu_unittests") |
256 | 260 |
257 def TestGURL(self): | 261 def TestGURL(self): |
258 return self.SimpleTest("chrome", "googleurl_unittests") | 262 return self.SimpleTest("chrome", "googleurl_unittests") |
259 | 263 |
260 def TestIpc(self): | 264 def TestIpc(self): |
261 return self.SimpleTest("ipc", "ipc_tests", | 265 return self.SimpleTest("ipc", "ipc_tests", |
262 valgrind_test_args=["--trace_children"]) | 266 valgrind_test_args=["--trace_children"]) |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 | 558 |
555 for t in options.test: | 559 for t in options.test: |
556 tests = ChromeTests(options, args, t) | 560 tests = ChromeTests(options, args, t) |
557 ret = tests.Run() | 561 ret = tests.Run() |
558 if ret: return ret | 562 if ret: return ret |
559 return 0 | 563 return 0 |
560 | 564 |
561 | 565 |
562 if __name__ == "__main__": | 566 if __name__ == "__main__": |
563 sys.exit(_main()) | 567 sys.exit(_main()) |
OLD | NEW |