OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |