| 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 """ | 6 """ |
| 7 Runs all the available unit tests, layout tests, page-cycler tests, etc. | 7 Runs all the available unit tests, layout tests, page-cycler tests, etc. |
| 8 for a build of Chrome, imitating a buildbot. | 8 for a build of Chrome, imitating a buildbot. |
| 9 | 9 |
| 10 Usage examples: | 10 Usage examples: |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 'page-cycler-intl2': ['page_cycler_tests.exe', | 58 'page-cycler-intl2': ['page_cycler_tests.exe', |
| 59 '--gtest_filter=PageCycler*.Intl2File'], | 59 '--gtest_filter=PageCycler*.Intl2File'], |
| 60 'page-cycler-bloat-http': ['page_cycler_tests.exe', | 60 'page-cycler-bloat-http': ['page_cycler_tests.exe', |
| 61 '--gtest_filter=PageCycler*.BloatHttp'], | 61 '--gtest_filter=PageCycler*.BloatHttp'], |
| 62 'startup': ['startup_tests.exe', | 62 'startup': ['startup_tests.exe', |
| 63 '--gtest_filter=Startup*.*'], | 63 '--gtest_filter=Startup*.*'], |
| 64 'dest-startup': ['startup_tests.exe', | 64 'dest-startup': ['startup_tests.exe', |
| 65 '--gtest_filter=DestinationsStartupTest.*'], | 65 '--gtest_filter=DestinationsStartupTest.*'], |
| 66 'selenium': ['selenium_tests.exe'], | 66 'selenium': ['selenium_tests.exe'], |
| 67 'plugin': ['plugin_tests.exe'], | 67 'plugin': ['plugin_tests.exe'], |
| 68 'installer': ['installer_unittests.exe'], | 68 'installer': ['installer_util_unittests.exe'], |
| 69 'webkit': ['%(python)s', | 69 'webkit': ['%(python)s', |
| 70 '%(slave_scripts)s/layout_test_wrapper.py', | 70 '%(slave_scripts)s/layout_test_wrapper.py', |
| 71 '--build-type', '%(build_type)s', | 71 '--build-type', '%(build_type)s', |
| 72 '--target', '%(target)s', | 72 '--target', '%(target)s', |
| 73 '%(page_heap)s'], | 73 '%(page_heap)s'], |
| 74 } | 74 } |
| 75 | 75 |
| 76 # Certain tests are not run for each build type. | 76 # Certain tests are not run for each build type. |
| 77 SKIPPED = {'Release': ['plugin'], | 77 SKIPPED = {'Release': ['plugin'], |
| 78 'Debug': ['selenium', 'webkit']} | 78 'Debug': ['selenium', 'webkit']} |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 kill_list = set([os.path.basename(x) for x in kill_list]) | 234 kill_list = set([os.path.basename(x) for x in kill_list]) |
| 235 sys.exit(google.process_utils.KillAll(kill_list)) | 235 sys.exit(google.process_utils.KillAll(kill_list)) |
| 236 | 236 |
| 237 try: | 237 try: |
| 238 result = main(options, args) | 238 result = main(options, args) |
| 239 finally: | 239 finally: |
| 240 # Kill the httpd. | 240 # Kill the httpd. |
| 241 if _httpd: | 241 if _httpd: |
| 242 _httpd.StopServer(force=True) | 242 _httpd.StopServer(force=True) |
| 243 sys.exit(result) | 243 sys.exit(result) |
| 244 | |
| OLD | NEW |