OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2008 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 This file is a copy of ../purify/chrome_tests.py. Eventually, it would be nice | 10 This file is a copy of ../purify/chrome_tests.py. Eventually, it would be nice |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 def TestGURL(self): | 234 def TestGURL(self): |
235 return self.SimpleTest("chrome", "googleurl_unittests") | 235 return self.SimpleTest("chrome", "googleurl_unittests") |
236 | 236 |
237 def TestMedia(self): | 237 def TestMedia(self): |
238 return self.SimpleTest("chrome", "media_unittests") | 238 return self.SimpleTest("chrome", "media_unittests") |
239 | 239 |
240 def TestPrinting(self): | 240 def TestPrinting(self): |
241 return self.SimpleTest("chrome", "printing_unittests") | 241 return self.SimpleTest("chrome", "printing_unittests") |
242 | 242 |
243 def TestIpc(self): | 243 def TestIpc(self): |
244 return self.SimpleTest("chrome", "ipc_tests", | 244 return self.SimpleTest("ipc", "ipc_tests", |
245 valgrind_test_args=["--trace_children"]) | 245 valgrind_test_args=["--trace_children"]) |
246 | 246 |
247 def TestNet(self): | 247 def TestNet(self): |
248 return self.SimpleTest("net", "net_unittests") | 248 return self.SimpleTest("net", "net_unittests") |
249 | 249 |
250 def TestStartup(self): | 250 def TestStartup(self): |
251 # We don't need the performance results, we're just looking for pointer | 251 # We don't need the performance results, we're just looking for pointer |
252 # errors, so set number of iterations down to the minimum. | 252 # errors, so set number of iterations down to the minimum. |
253 os.putenv("STARTUP_TESTS_NUMCYCLES", "1") | 253 os.putenv("STARTUP_TESTS_NUMCYCLES", "1") |
254 logging.info("export STARTUP_TESTS_NUMCYCLES=1"); | 254 logging.info("export STARTUP_TESTS_NUMCYCLES=1"); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 for t in options.test: | 417 for t in options.test: |
418 tests = ChromeTests(options, args, t) | 418 tests = ChromeTests(options, args, t) |
419 ret = tests.Run() | 419 ret = tests.Run() |
420 if ret: return ret | 420 if ret: return ret |
421 return 0 | 421 return 0 |
422 | 422 |
423 | 423 |
424 if __name__ == "__main__": | 424 if __name__ == "__main__": |
425 ret = _main(sys.argv) | 425 ret = _main(sys.argv) |
426 sys.exit(ret) | 426 sys.exit(ret) |
OLD | NEW |