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 import glob | 10 import glob |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
300 ["--list=%s" % url_list_file])) | 300 ["--list=%s" % url_list_file])) |
301 | 301 |
302 def TestSafeBrowsing(self): | 302 def TestSafeBrowsing(self): |
303 return self.SimpleTest("chrome", "safe_browsing_tests", | 303 return self.SimpleTest("chrome", "safe_browsing_tests", |
304 valgrind_test_args=self.UI_VALGRIND_ARGS, | 304 valgrind_test_args=self.UI_VALGRIND_ARGS, |
305 cmd_args=(["--test-terminate-timeout=900000"])) | 305 cmd_args=(["--test-terminate-timeout=900000"])) |
306 | 306 |
307 def TestSync(self): | 307 def TestSync(self): |
308 return self.SimpleTest("chrome", "sync_unit_tests") | 308 return self.SimpleTest("chrome", "sync_unit_tests") |
309 | 309 |
310 def TestSyncIntegration(self): | |
311 return self.SimpleTest("chrome", "sync_integration_tests") | |
Timur Iskhodzhanov
2011/02/17 10:37:02
What are sync_integration_tests?
Do they spawn Ch
Timur Iskhodzhanov
2011/02/17 10:39:13
Self-answer: yes, they do.
In this case, you shou
Nicolas Zea
2011/02/17 21:07:51
Done.
| |
312 | |
310 def TestLayoutChunk(self, chunk_num, chunk_size): | 313 def TestLayoutChunk(self, chunk_num, chunk_size): |
311 # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the | 314 # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the |
312 # list of tests. Wrap around to beginning of list at end. | 315 # list of tests. Wrap around to beginning of list at end. |
313 # If chunk_size is zero, run all tests in the list once. | 316 # If chunk_size is zero, run all tests in the list once. |
314 # If a text file is given as argument, it is used as the list of tests. | 317 # If a text file is given as argument, it is used as the list of tests. |
315 # | 318 # |
316 # Build the ginormous commandline in 'cmd'. | 319 # Build the ginormous commandline in 'cmd'. |
317 # It's going to be roughly | 320 # It's going to be roughly |
318 # python valgrind_test.py ... python run_webkit_tests.py ... | 321 # python valgrind_test.py ... python run_webkit_tests.py ... |
319 # but we'll use the --indirect flag to valgrind_test.py | 322 # but we'll use the --indirect flag to valgrind_test.py |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
421 "layout": TestLayout, "layout_tests": TestLayout, | 424 "layout": TestLayout, "layout_tests": TestLayout, |
422 "media": TestMedia, "media_unittests": TestMedia, | 425 "media": TestMedia, "media_unittests": TestMedia, |
423 "net": TestNet, "net_unittests": TestNet, | 426 "net": TestNet, "net_unittests": TestNet, |
424 "notifier": TestNotifier, "notifier_unittests": TestNotifier, | 427 "notifier": TestNotifier, "notifier_unittests": TestNotifier, |
425 "printing": TestPrinting, "printing_unittests": TestPrinting, | 428 "printing": TestPrinting, "printing_unittests": TestPrinting, |
426 "reliability": TestReliability, "reliability_tests": TestReliability, | 429 "reliability": TestReliability, "reliability_tests": TestReliability, |
427 "remoting": TestRemoting, "remoting_unittests": TestRemoting, | 430 "remoting": TestRemoting, "remoting_unittests": TestRemoting, |
428 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, | 431 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, |
429 "startup": TestStartup, "startup_tests": TestStartup, | 432 "startup": TestStartup, "startup_tests": TestStartup, |
430 "sync": TestSync, "sync_unit_tests": TestSync, | 433 "sync": TestSync, "sync_unit_tests": TestSync, |
434 "sync_integration_tests": TestSyncIntegration, | |
Timur Iskhodzhanov
2011/02/17 10:37:02
You may also add
"sync_integration": TestSyncInteg
Nicolas Zea
2011/02/17 21:07:51
Done.
| |
431 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, | 435 "test_shell": TestTestShell, "test_shell_tests": TestTestShell, |
432 "ui": TestUI, "ui_tests": TestUI, | 436 "ui": TestUI, "ui_tests": TestUI, |
433 "unit": TestUnit, "unit_tests": TestUnit, | 437 "unit": TestUnit, "unit_tests": TestUnit, |
434 "app": TestApp, "app_unittests": TestApp, | 438 "app": TestApp, "app_unittests": TestApp, |
435 "gfx": TestGfx, "gfx_unittests": TestGfx, | 439 "gfx": TestGfx, "gfx_unittests": TestGfx, |
436 } | 440 } |
437 | 441 |
438 def _main(_): | 442 def _main(_): |
439 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " | 443 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " |
440 "[-t <test> ...]") | 444 "[-t <test> ...]") |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
479 for t in options.test: | 483 for t in options.test: |
480 tests = ChromeTests(options, args, t) | 484 tests = ChromeTests(options, args, t) |
481 ret = tests.Run() | 485 ret = tests.Run() |
482 if ret: return ret | 486 if ret: return ret |
483 return 0 | 487 return 0 |
484 | 488 |
485 | 489 |
486 if __name__ == "__main__": | 490 if __name__ == "__main__": |
487 ret = _main(sys.argv) | 491 ret = _main(sys.argv) |
488 sys.exit(ret) | 492 sys.exit(ret) |
OLD | NEW |