OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 ''' Runs various chrome tests through heapcheck_test.py. | 7 ''' Runs various chrome tests through heapcheck_test.py. |
8 | 8 |
9 Most of this code is copied from ../valgrind/chrome_tests.py. | 9 Most of this code is copied from ../valgrind/chrome_tests.py. |
10 TODO(glider): put common functions to a standalone module. | 10 TODO(glider): put common functions to a standalone module. |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 def TestUIUnit(self): | 297 def TestUIUnit(self): |
298 return self.SimpleTest("chrome", "ui_unittests") | 298 return self.SimpleTest("chrome", "ui_unittests") |
299 | 299 |
300 def TestGfx(self): | 300 def TestGfx(self): |
301 return self.SimpleTest("chrome", "gfx_unittests") | 301 return self.SimpleTest("chrome", "gfx_unittests") |
302 | 302 |
303 def TestUI(self): | 303 def TestUI(self): |
304 return self.SimpleTest("chrome", "ui_tests", | 304 return self.SimpleTest("chrome", "ui_tests", |
305 cmd_args=[ | 305 cmd_args=[ |
306 "--ui-test-action-timeout=80000", | 306 "--ui-test-action-timeout=80000", |
307 "--ui-test-action-max-timeout=180000", | 307 "--ui-test-action-max-timeout=180000"]) |
308 "--ui-test-terminate-timeout=60000"]) | |
309 | 308 |
310 def TestLayoutChunk(self, chunk_num, chunk_size): | 309 def TestLayoutChunk(self, chunk_num, chunk_size): |
311 '''Runs tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size). | 310 '''Runs tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size). |
312 | 311 |
313 Wrap around to beginning of list at end. If chunk_size is zero, run all | 312 Wrap around to beginning of list at end. If chunk_size is zero, run all |
314 tests in the list once. If a text file is given as argument, it is used as | 313 tests in the list once. If a text file is given as argument, it is used as |
315 the list of tests. | 314 the list of tests. |
316 ''' | 315 ''' |
317 # Build the ginormous commandline in 'cmd'. | 316 # Build the ginormous commandline in 'cmd'. |
318 # It's going to be roughly | 317 # It's going to be roughly |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 return 0 | 452 return 0 |
454 | 453 |
455 | 454 |
456 if __name__ == "__main__": | 455 if __name__ == "__main__": |
457 if sys.platform == 'linux2': | 456 if sys.platform == 'linux2': |
458 ret = _main(sys.argv) | 457 ret = _main(sys.argv) |
459 else: | 458 else: |
460 logging.error("Heap checking works only on Linux at the moment.") | 459 logging.error("Heap checking works only on Linux at the moment.") |
461 ret = 1 | 460 ret = 1 |
462 sys.exit(ret) | 461 sys.exit(ret) |
OLD | NEW |