OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """Generate and process code coverage. | 6 """Generate and process code coverage. |
7 | 7 |
8 TODO(jrg): rename this from coverage_posix.py to coverage_all.py! | 8 TODO(jrg): rename this from coverage_posix.py to coverage_all.py! |
9 | 9 |
10 Written for and tested on Mac, Linux, and Windows. To use this script | 10 Written for and tested on Mac, Linux, and Windows. To use this script |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 ('AutomatedUITest.TheOneAndOnlyTest', | 243 ('AutomatedUITest.TheOneAndOnlyTest', |
244 'AutomatedUITestBase.DragOut',), }, | 244 'AutomatedUITestBase.DragOut',), }, |
245 } | 245 } |
246 | 246 |
247 """Since random tests are failing/hanging on coverage bot, we are enabling | 247 """Since random tests are failing/hanging on coverage bot, we are enabling |
248 tests feature by feature. crbug.com/159748 | 248 tests feature by feature. crbug.com/159748 |
249 """ | 249 """ |
250 gTestInclusions = { | 250 gTestInclusions = { |
251 'linux2': { | 251 'linux2': { |
252 'browser_tests': | 252 'browser_tests': |
253 (# 'src/chrome/browser/downloads' related tests. | 253 (# 'src/chrome/browser/downloads' |
254 'SavePageBrowserTest.*', | 254 'SavePageBrowserTest.*', |
255 'SavePageAsMHTMLBrowserTest.*', | 255 'SavePageAsMHTMLBrowserTest.*', |
256 'DownloadQueryTest.*', | 256 'DownloadQueryTest.*', |
257 'DownloadDangerPromptTest.*', | 257 'DownloadDangerPromptTest.*', |
258 'DownloadTest.*', | 258 'DownloadTest.*', |
259 # 'src/chrome/browser/net' related tests. | 259 # 'src/chrome/browser/net' |
260 'CookiePolicyBrowserTest.*', | 260 'CookiePolicyBrowserTest.*', |
261 'FtpBrowserTest.*', | 261 'FtpBrowserTest.*', |
262 'LoadTimingObserverTest.*', | 262 'LoadTimingObserverTest.*', |
263 'PredictorBrowserTest.*', | 263 'PredictorBrowserTest.*', |
264 'ProxyBrowserTest.*', | 264 'ProxyBrowserTest.*', |
265 # 'src/chrome/browser/extensions' related tests. | 265 # 'src/chrome/browser/extensions' |
266 'Extension*.*', | 266 'Extension*.*', |
267 'WindowOpenPanelDisabledTest.*', | 267 'WindowOpenPanelDisabledTest.*', |
268 'WindowOpenPanelTest.*', | 268 'WindowOpenPanelTest.*', |
269 'WebstoreStandalone*.*', | 269 'WebstoreStandalone*.*', |
270 'CommandLineWebstoreInstall.*', | 270 'CommandLineWebstoreInstall.*', |
271 'WebViewTest.*', | 271 'WebViewTest.*', |
272 'RequirementsCheckerBrowserTest.*', | 272 'RequirementsCheckerBrowserTest.*', |
273 'ProcessManagementTest.*', | 273 'ProcessManagementTest.*', |
274 'PlatformAppBrowserTest.*', | 274 'PlatformAppBrowserTest.*', |
275 'PlatformAppDevToolsBrowserTest.*', | 275 'PlatformAppDevToolsBrowserTest.*', |
(...skipping 30 matching lines...) Expand all Loading... |
306 'LaunchWebAuthFlowFunctionTest.*', | 306 'LaunchWebAuthFlowFunctionTest.*', |
307 'FileSystemApiTest.*', | 307 'FileSystemApiTest.*', |
308 'ScriptBadgeApiTest.*', | 308 'ScriptBadgeApiTest.*', |
309 'PageAsBrowserActionApiTest.*', | 309 'PageAsBrowserActionApiTest.*', |
310 'PageActionApiTest.*', | 310 'PageActionApiTest.*', |
311 'BrowserActionApiTest.*', | 311 'BrowserActionApiTest.*', |
312 'DownloadExtensionTest.*', | 312 'DownloadExtensionTest.*', |
313 'DnsApiTest.*', | 313 'DnsApiTest.*', |
314 'DeclarativeApiTest.*', | 314 'DeclarativeApiTest.*', |
315 'BluetoothApiTest.*', | 315 'BluetoothApiTest.*', |
316 'AllUrlsApiTest.*',), | 316 'AllUrlsApiTest.*', |
| 317 # 'src/chrome/browser/nacl_host' |
| 318 'nacl_host.*', |
| 319 # 'src/chrome/browser/automation' |
| 320 'AutomationMiscBrowserTest.*', |
| 321 'AutomationTabHelperBrowserTest.*', |
| 322 # 'src/chrome/browser/autofill' |
| 323 'FormStructureBrowserTest.*', |
| 324 'AutofillPopupViewBrowserTest.*', |
| 325 'AutofillTest.*', |
| 326 # 'src/chrome/browser/autocomplete' |
| 327 'AutocompleteBrowserTest.*', |
| 328 # 'src/chrome/browser/captive_portal' |
| 329 'CaptivePortalBrowserTest.*', |
| 330 # 'src/chrome/browser/geolocation' |
| 331 'GeolocationAccessTokenStoreTest.*', |
| 332 'GeolocationBrowserTest.*', ), |
317 }, | 333 }, |
318 } | 334 } |
319 | 335 |
320 | 336 |
321 def TerminateSignalHandler(sig, stack): | 337 def TerminateSignalHandler(sig, stack): |
322 """When killed, try and kill our child processes.""" | 338 """When killed, try and kill our child processes.""" |
323 signal.signal(sig, signal.SIG_DFL) | 339 signal.signal(sig, signal.SIG_DFL) |
324 for pid in gChildPIDs: | 340 for pid in gChildPIDs: |
325 if 'kill' in os.__all__: # POSIX | 341 if 'kill' in os.__all__: # POSIX |
326 os.kill(pid, sig) | 342 os.kill(pid, sig) |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 if options.trim: | 1236 if options.trim: |
1221 coverage.TrimTests() | 1237 coverage.TrimTests() |
1222 coverage.RunTests() | 1238 coverage.RunTests() |
1223 if options.genhtml: | 1239 if options.genhtml: |
1224 coverage.GenerateHtml() | 1240 coverage.GenerateHtml() |
1225 return 0 | 1241 return 0 |
1226 | 1242 |
1227 | 1243 |
1228 if __name__ == '__main__': | 1244 if __name__ == '__main__': |
1229 sys.exit(main()) | 1245 sys.exit(main()) |
OLD | NEW |