| 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 # http://crbug.com/540543: Linux Intel driver is GL 3.0 and | 923 # http://crbug.com/540543: Linux Intel driver is GL 3.0 and |
| 924 # doesn't support features needed for ES3 | 924 # doesn't support features needed for ES3 |
| 925 'Linux Release (New Intel)', | 925 'Linux Release (New Intel)', |
| 926 'Linux Debug (New Intel)', | 926 'Linux Debug (New Intel)', |
| 927 ], | 927 ], |
| 928 }, | 928 }, |
| 929 ], | 929 ], |
| 930 'target_name': 'webgl_conformance', | 930 'target_name': 'webgl_conformance', |
| 931 'args': [ | 931 'args': [ |
| 932 '--webgl-conformance-version=2.0.0', | 932 '--webgl-conformance-version=2.0.0', |
| 933 '--webgl2-only=true', | |
| 934 # The current working directory when run via isolate is | 933 # The current working directory when run via isolate is |
| 935 # out/Debug or out/Release. Reference this file relatively to | 934 # out/Debug or out/Release. Reference this file relatively to |
| 936 # it. | 935 # it. |
| 937 '--read-abbreviated-json-results-from=' + \ | 936 '--read-abbreviated-json-results-from=' + \ |
| 938 '../../content/test/data/gpu/webgl2_conformance_tests_output.json', | 937 '../../content/test/data/gpu/webgl2_conformance_tests_output.json', |
| 939 ], | 938 ], |
| 940 'swarming': { | 939 'swarming': { |
| 941 # These tests currently take about an hour to run. Split them | 940 # These tests currently take about an hour and fifteen minutes |
| 942 # into roughly 5-minute shards. | 941 # to run. Split them into roughly 5-minute shards. |
| 943 'shards': 12, | 942 'shards': 15, |
| 944 }, | 943 }, |
| 945 }, | 944 }, |
| 946 'webgl2_conformance_angle_tests': { | 945 'webgl2_conformance_angle_tests': { |
| 947 'tester_configs': [ | 946 'tester_configs': [ |
| 948 { | 947 { |
| 949 # The WebGL 2.0 conformance tests take over an hour to run on | 948 # The WebGL 2.0 conformance tests take over an hour to run on |
| 950 # the Debug bots, which is too long. | 949 # the Debug bots, which is too long. |
| 951 'build_configs': ['Release'], | 950 'build_configs': ['Release'], |
| 952 'fyi_only': True, | 951 'fyi_only': True, |
| 953 'run_on_optional': False, | 952 'run_on_optional': False, |
| 954 # Only run on the NVIDIA Release and New Intel Release Linux bots | 953 # Only run on the NVIDIA Release and New Intel Release Linux bots |
| 955 'swarming_dimension_sets': [ | 954 'swarming_dimension_sets': [ |
| 956 { | 955 { |
| 957 'gpu': '10de:104a', | 956 'gpu': '10de:104a', |
| 958 'os': 'Linux' | 957 'os': 'Linux' |
| 959 }, | 958 }, |
| 960 { | 959 { |
| 961 'gpu': '8086:0412', | 960 'gpu': '8086:0412', |
| 962 'os': 'Linux' | 961 'os': 'Linux' |
| 963 }, | 962 }, |
| 964 ], | 963 ], |
| 965 }, | 964 }, |
| 966 ], | 965 ], |
| 967 'target_name': 'webgl_conformance', | 966 'target_name': 'webgl_conformance', |
| 968 'extra_browser_args': [ | 967 'extra_browser_args': [ |
| 969 '--use-gl=angle', | 968 '--use-gl=angle', |
| 970 ], | 969 ], |
| 971 'args': [ | 970 'args': [ |
| 972 '--webgl-conformance-version=2.0.0', | 971 '--webgl-conformance-version=2.0.0', |
| 973 '--webgl2-only=true', | |
| 974 # The current working directory when run via isolate is | 972 # The current working directory when run via isolate is |
| 975 # out/Debug or out/Release. Reference this file relatively to | 973 # out/Debug or out/Release. Reference this file relatively to |
| 976 # it. | 974 # it. |
| 977 '--read-abbreviated-json-results-from=' + \ | 975 '--read-abbreviated-json-results-from=' + \ |
| 978 '../../content/test/data/gpu/webgl2_conformance_tests_output.json', | 976 '../../content/test/data/gpu/webgl2_conformance_tests_output.json', |
| 979 ], | 977 ], |
| 980 'swarming': { | 978 'swarming': { |
| 981 # These tests currently take about an hour to run. Split them | 979 # These tests currently take about an hour and fifteen minutes |
| 982 # into roughly 5-minute shards. | 980 # to run. Split them into roughly 5-minute shards. |
| 983 'shards': 12, | 981 'shards': 15, |
| 984 }, | 982 }, |
| 985 }, | 983 }, |
| 986 } | 984 } |
| 987 | 985 |
| 988 def substitute_args(tester_config, args): | 986 def substitute_args(tester_config, args): |
| 989 """Substitutes the ${os_type} variable in |args| from the | 987 """Substitutes the ${os_type} variable in |args| from the |
| 990 tester_config's "os_type" property. | 988 tester_config's "os_type" property. |
| 991 """ | 989 """ |
| 992 substitutions = { | 990 substitutions = { |
| 993 'os_type': tester_config['os_type'] | 991 'os_type': tester_config['os_type'] |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) | 1205 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) |
| 1208 fp.write('\n') | 1206 fp.write('\n') |
| 1209 | 1207 |
| 1210 def main(): | 1208 def main(): |
| 1211 generate_all_tests(FYI_WATERFALL, True) | 1209 generate_all_tests(FYI_WATERFALL, True) |
| 1212 generate_all_tests(WATERFALL, False) | 1210 generate_all_tests(WATERFALL, False) |
| 1213 return 0 | 1211 return 0 |
| 1214 | 1212 |
| 1215 if __name__ == "__main__": | 1213 if __name__ == "__main__": |
| 1216 sys.exit(main()) | 1214 sys.exit(main()) |
| OLD | NEW |