Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: tools/dm_flags.py

Issue 1129443005: Add presubmit to run `{dm,nanobench}_flags.py test` when changed. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: python Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/dm_flags.json ('k') | tools/nanobench_flags.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 #!/usr/bin/env python 8 #!/usr/bin/env python
9 9
10 usage = ''' 10 usage = '''
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 args.extend(match) 167 args.extend(match)
168 168
169 return args 169 return args
170 cov_end = lineno() # Don't care about code coverage past here. 170 cov_end = lineno() # Don't care about code coverage past here.
171 171
172 172
173 def self_test(): 173 def self_test():
174 import coverage # This way the bots don't need coverage.py to be installed. 174 import coverage # This way the bots don't need coverage.py to be installed.
175 args = {} 175 args = {}
176 cases = [ 176 cases = [
177 'Pretend-iOS-Bot',
177 'Test-Android-GCC-Nexus9-GPU-TegraK1-Arm64-Debug', 178 'Test-Android-GCC-Nexus9-GPU-TegraK1-Arm64-Debug',
178 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', 179 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug',
180 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release',
179 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', 181 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release',
180 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', 182 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release',
181 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 183 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
182 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', 184 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN',
183 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', 185 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind',
184 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 186 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
185 ] 187 ]
186 188
187 cov = coverage.coverage() 189 cov = coverage.coverage()
188 cov.start() 190 cov.start()
(...skipping 17 matching lines...) Expand all
206 if len(sys.argv) == 2 and sys.argv[1] == 'test': 208 if len(sys.argv) == 2 and sys.argv[1] == 'test':
207 self_test() 209 self_test()
208 sys.exit(0) 210 sys.exit(0)
209 211
210 if len(sys.argv) != 3: 212 if len(sys.argv) != 3:
211 print usage 213 print usage
212 sys.exit(1) 214 sys.exit(1)
213 215
214 with open(sys.argv[1], 'w') as out: 216 with open(sys.argv[1], 'w') as out:
215 json.dump(get_args(sys.argv[2]), out) 217 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/dm_flags.json ('k') | tools/nanobench_flags.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698