Chromium Code Reviews| 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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1098 'tab_capture_end2end_tests': { | 1098 'tab_capture_end2end_tests': { |
| 1099 'tester_configs': [ | 1099 'tester_configs': [ |
| 1100 { | 1100 { |
| 1101 'build_configs': ['Release', 'Release_x64'], | 1101 'build_configs': ['Release', 'Release_x64'], |
| 1102 } | 1102 } |
| 1103 ], | 1103 ], |
| 1104 'override_compile_targets': [ | 1104 'override_compile_targets': [ |
| 1105 'tab_capture_end2end_tests_run', | 1105 'tab_capture_end2end_tests_run', |
| 1106 ], | 1106 ], |
| 1107 }, | 1107 }, |
| 1108 'video_decode_accelerator_unittest': { | |
| 1109 'tester_configs': [ | |
| 1110 { | |
| 1111 'os_types': ['win'] | |
| 1112 }, | |
| 1113 ], | |
| 1114 }, | |
| 1108 } | 1115 } |
| 1109 | 1116 |
| 1110 # This requires a hack because the isolate's name is different than | 1117 # This requires a hack because the isolate's name is different than |
| 1111 # the executable's name. On the few non-swarmed testers, this causes | 1118 # the executable's name. On the few non-swarmed testers, this causes |
| 1112 # the executable to not be found. It would be better if the Chromium | 1119 # the executable to not be found. It would be better if the Chromium |
| 1113 # recipe supported running isolates locally. crbug.com/581953 | 1120 # recipe supported running isolates locally. crbug.com/581953 |
| 1114 | 1121 |
| 1115 NON_SWARMED_GTESTS = { | 1122 NON_SWARMED_GTESTS = { |
| 1116 'tab_capture_end2end_tests': { | 1123 'tab_capture_end2end_tests': { |
| 1117 'swarming': { | 1124 'swarming': { |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1641 generate_telemetry_tests(name, config, TELEMETRY_TESTS, is_fyi, False) + \ | 1648 generate_telemetry_tests(name, config, TELEMETRY_TESTS, is_fyi, False) + \ |
| 1642 generate_telemetry_tests(name, config, TELEMETRY_GPU_INTEGRATION_TESTS, | 1649 generate_telemetry_tests(name, config, TELEMETRY_GPU_INTEGRATION_TESTS, |
| 1643 is_fyi, True) | 1650 is_fyi, True) |
| 1644 tests[name] = { | 1651 tests[name] = { |
| 1645 'gtest_tests': sorted(gtests, key=lambda x: x['test']), | 1652 'gtest_tests': sorted(gtests, key=lambda x: x['test']), |
| 1646 'isolated_scripts': sorted(isolated_scripts, key=lambda x: x['name']) | 1653 'isolated_scripts': sorted(isolated_scripts, key=lambda x: x['name']) |
| 1647 } | 1654 } |
| 1648 tests['AAAAA1 AUTOGENERATED FILE DO NOT EDIT'] = {} | 1655 tests['AAAAA1 AUTOGENERATED FILE DO NOT EDIT'] = {} |
| 1649 tests['AAAAA2 See generate_buildbot_json.py to make changes'] = {} | 1656 tests['AAAAA2 See generate_buildbot_json.py to make changes'] = {} |
| 1650 filename = 'chromium.gpu.fyi.json' if is_fyi else 'chromium.gpu.json' | 1657 filename = 'chromium.gpu.fyi.json' if is_fyi else 'chromium.gpu.json' |
| 1651 with open(os.path.join(SRC_DIR, 'testing', 'buildbot', filename), 'w') as fp: | 1658 with open(os.path.join(SRC_DIR, 'testing', 'buildbot', filename), 'wb') as fp: |
|
Ken Russell (switch to Gerrit)
2016/12/19 00:41:56
Thanks for this fix. I think jmadill@ ran into thi
| |
| 1652 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) | 1659 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) |
| 1653 fp.write('\n') | 1660 fp.write('\n') |
| 1654 | 1661 |
| 1655 def main(): | 1662 def main(): |
| 1656 generate_all_tests(FYI_WATERFALL, True) | 1663 generate_all_tests(FYI_WATERFALL, True) |
| 1657 generate_all_tests(WATERFALL, False) | 1664 generate_all_tests(WATERFALL, False) |
| 1658 return 0 | 1665 return 0 |
| 1659 | 1666 |
| 1660 if __name__ == "__main__": | 1667 if __name__ == "__main__": |
| 1661 sys.exit(main()) | 1668 sys.exit(main()) |
| OLD | NEW |