| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:io'; | 5 import 'dart:io'; |
| 6 import 'dart:convert'; | 6 import 'dart:convert'; |
| 7 | 7 |
| 8 List<Map> LINUX_COMBINATIONS = [ | 8 List<Map> LINUX_COMBINATIONS = [ |
| 9 { | 9 { |
| 10 'runtimes' : ['none'], | 10 'runtimes' : ['none'], |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 modes.addAll(combo['modes']); | 153 modes.addAll(combo['modes']); |
| 154 } | 154 } |
| 155 } | 155 } |
| 156 | 156 |
| 157 ensureBuild(modes, arches); | 157 ensureBuild(modes, arches); |
| 158 | 158 |
| 159 List<String> keys; | 159 List<String> keys; |
| 160 for (var combination in combinations) { | 160 for (var combination in combinations) { |
| 161 for (var mode in combination['modes']) { | 161 for (var mode in combination['modes']) { |
| 162 if (!modes.contains(mode)) { | 162 if (!modes.contains(mode)) { |
| 163 break; | 163 continue; |
| 164 } | 164 } |
| 165 | 165 |
| 166 for (var arch in combination['archs']) { | 166 for (var arch in combination['archs']) { |
| 167 if (!arches.contains(arch)) { | 167 if (!arches.contains(arch)) { |
| 168 break; | 168 continue; |
| 169 } | 169 } |
| 170 | 170 |
| 171 for (var runtime in combination['runtimes']) { | 171 for (var runtime in combination['runtimes']) { |
| 172 var compiler = combination['compiler']; | 172 var compiler = combination['compiler']; |
| 173 | 173 |
| 174 var args = ['tools/test.py', '-m$mode', '-c$compiler', '-r$runtime', | 174 var args = ['tools/test.py', '-m$mode', '-c$compiler', '-r$runtime', |
| 175 '-a$arch', '--report-in-json', '--use-sdk']; | 175 '-a$arch', '--report-in-json', '--use-sdk']; |
| 176 var result = Process.runSync('python', args); | 176 var result = Process.runSync('python', args); |
| 177 if (result.exitCode != 0) { | 177 if (result.exitCode != 0) { |
| 178 print(result.stdout); | 178 print(result.stdout); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 var pct = 100*(value/total); | 211 var pct = 100*(value/total); |
| 212 values.add('${pct.toStringAsFixed(3)}%'); | 212 values.add('${pct.toStringAsFixed(3)}%'); |
| 213 } | 213 } |
| 214 | 214 |
| 215 print(values.join(',')); | 215 print(values.join(',')); |
| 216 } | 216 } |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 } | 220 } |
| OLD | NEW |