| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 241 def TestUI(self): | 241 def TestUI(self): |
| 242 return self.SimpleTest("chrome", "ui_tests", | 242 return self.SimpleTest("chrome", "ui_tests", |
| 243 valgrind_test_args=[ | 243 valgrind_test_args=[ |
| 244 "--timeout=120000", | 244 "--timeout=120000", |
| 245 "--trace_children", | 245 "--trace_children", |
| 246 "--indirect"], | 246 "--indirect"], |
| 247 cmd_args=[ | 247 cmd_args=[ |
| 248 "--ui-test-timeout=120000", | 248 "--ui-test-timeout=120000", |
| 249 "--ui-test-action-timeout=80000", | 249 "--ui-test-action-timeout=80000", |
| 250 "--ui-test-action-max-timeout=180000"]) | 250 "--ui-test-action-max-timeout=180000", |
| 251 "--ui-test-terminate-timeout=60000"]) |
| 251 | 252 |
| 252 def TestLayoutChunk(self, chunk_num, chunk_size): | 253 def TestLayoutChunk(self, chunk_num, chunk_size): |
| 253 # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the | 254 # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the |
| 254 # list of tests. Wrap around to beginning of list at end. | 255 # list of tests. Wrap around to beginning of list at end. |
| 255 # If chunk_size is zero, run all tests in the list once. | 256 # If chunk_size is zero, run all tests in the list once. |
| 256 # If a text file is given as argument, it is used as the list of tests. | 257 # If a text file is given as argument, it is used as the list of tests. |
| 257 # | 258 # |
| 258 # Build the ginormous commandline in 'cmd'. | 259 # Build the ginormous commandline in 'cmd'. |
| 259 # It's going to be roughly | 260 # It's going to be roughly |
| 260 # python valgrind_test.py ... python run_webkit_tests.py ... | 261 # python valgrind_test.py ... python run_webkit_tests.py ... |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 for t in options.test: | 398 for t in options.test: |
| 398 tests = ChromeTests(options, args, t) | 399 tests = ChromeTests(options, args, t) |
| 399 ret = tests.Run() | 400 ret = tests.Run() |
| 400 if ret: return ret | 401 if ret: return ret |
| 401 return 0 | 402 return 0 |
| 402 | 403 |
| 403 | 404 |
| 404 if __name__ == "__main__": | 405 if __name__ == "__main__": |
| 405 ret = _main(sys.argv) | 406 ret = _main(sys.argv) |
| 406 sys.exit(ret) | 407 sys.exit(ret) |
| OLD | NEW |