OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 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 """Script to generate chromium.gpu.json and chromium.gpu.fyi.json in | 6 """Script to generate chromium.gpu.json and chromium.gpu.fyi.json in |
7 the src/testing/buildbot directory. Maintaining these files by hand is | 7 the src/testing/buildbot directory. Maintaining these files by hand is |
8 too unwieldy. | 8 too unwieldy. |
9 """ | 9 """ |
10 | 10 |
(...skipping 2287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2298 result['precommit_args'] = test_config['precommit_args'] | 2298 result['precommit_args'] = test_config['precommit_args'] |
2299 return result | 2299 return result |
2300 | 2300 |
2301 def generate_telemetry_test(tester_name, tester_config, | 2301 def generate_telemetry_test(tester_name, tester_config, |
2302 test, test_config): | 2302 test, test_config): |
2303 extra_browser_args = ['--enable-logging=stderr', '--js-flags=--expose-gc'] | 2303 extra_browser_args = ['--enable-logging=stderr', '--js-flags=--expose-gc'] |
2304 benchmark_name = test_config.get('target_name') or test | 2304 benchmark_name = test_config.get('target_name') or test |
2305 prefix_args = [ | 2305 prefix_args = [ |
2306 benchmark_name, | 2306 benchmark_name, |
2307 '--show-stdout', | 2307 '--show-stdout', |
2308 '--browser=%s' % tester_config['build_config'].lower() | 2308 '--browser=%s' % tester_config['build_config'].lower(), |
| 2309 # --passthrough displays more of the logging in Telemetry when run |
| 2310 # --via typ, in particular some of the warnings about tests being |
| 2311 # --expected to fail, but passing. |
| 2312 '--passthrough', |
2309 ] | 2313 ] |
2310 return generate_isolated_test(tester_name, tester_config, test, | 2314 return generate_isolated_test(tester_name, tester_config, test, |
2311 test_config, extra_browser_args, | 2315 test_config, extra_browser_args, |
2312 'telemetry_gpu_integration_test', | 2316 'telemetry_gpu_integration_test', |
2313 ['telemetry_gpu_integration_test'], | 2317 ['telemetry_gpu_integration_test'], |
2314 prefix_args) | 2318 prefix_args) |
2315 | 2319 |
2316 def generate_telemetry_tests(tester_name, tester_config, | 2320 def generate_telemetry_tests(tester_name, tester_config, |
2317 test_dictionary): | 2321 test_dictionary): |
2318 isolated_scripts = [] | 2322 isolated_scripts = [] |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2374 install_parent_links(WATERFALL) | 2378 install_parent_links(WATERFALL) |
2375 install_parent_links(V8_FYI_WATERFALL) | 2379 install_parent_links(V8_FYI_WATERFALL) |
2376 | 2380 |
2377 generate_all_tests(FYI_WATERFALL, 'chromium.gpu.fyi.json') | 2381 generate_all_tests(FYI_WATERFALL, 'chromium.gpu.fyi.json') |
2378 generate_all_tests(WATERFALL, 'chromium.gpu.json') | 2382 generate_all_tests(WATERFALL, 'chromium.gpu.json') |
2379 generate_all_tests(V8_FYI_WATERFALL, 'client.v8.fyi.json') | 2383 generate_all_tests(V8_FYI_WATERFALL, 'client.v8.fyi.json') |
2380 return 0 | 2384 return 0 |
2381 | 2385 |
2382 if __name__ == "__main__": | 2386 if __name__ == "__main__": |
2383 sys.exit(main()) | 2387 sys.exit(main()) |
OLD | NEW |