| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #library("test_suite"); | 5 #library("test_suite"); |
| 6 | 6 |
| 7 #import("status_file_parser.dart"); | 7 #import("status_file_parser.dart"); |
| 8 #import("test_runner.dart"); | 8 #import("test_runner.dart"); |
| 9 | 9 |
| 10 interface TestSuite { | 10 interface TestSuite { |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 "dartOptions": dartOptions, | 276 "dartOptions": dartOptions, |
| 277 "isNegative" : isNegative }; | 277 "isNegative" : isNegative }; |
| 278 } | 278 } |
| 279 } | 279 } |
| 280 | 280 |
| 281 | 281 |
| 282 class TestUtils { | 282 class TestUtils { |
| 283 static String executableName(Map configuration) { | 283 static String executableName(Map configuration) { |
| 284 switch (configuration['component']) { | 284 switch (configuration['component']) { |
| 285 case 'vm': | 285 case 'vm': |
| 286 return 'dart_bin'; | 286 return 'dart'; |
| 287 case 'dartc': | 287 case 'dartc': |
| 288 return 'compiler/bin/dartc_test'; | 288 return 'compiler/bin/dartc_test'; |
| 289 case 'frog': | 289 case 'frog': |
| 290 case 'leg': | 290 case 'leg': |
| 291 return 'frog/bin/frog'; | 291 return 'frog/bin/frog'; |
| 292 case 'frogsh': | 292 case 'frogsh': |
| 293 return 'frog/bin/frogsh'; | 293 return 'frog/bin/frogsh'; |
| 294 default: | 294 default: |
| 295 throw "Unknown executable for: ${configuration['component']}"; | 295 throw "Unknown executable for: ${configuration['component']}"; |
| 296 } | 296 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 args.add("--enable_leg"); | 328 args.add("--enable_leg"); |
| 329 } | 329 } |
| 330 if (configuration["component"] == "dartc") { | 330 if (configuration["component"] == "dartc") { |
| 331 if (configuration["mode"] == "release") { | 331 if (configuration["mode"] == "release") { |
| 332 args.add("--optimize"); | 332 args.add("--optimize"); |
| 333 } | 333 } |
| 334 } | 334 } |
| 335 return args; | 335 return args; |
| 336 } | 336 } |
| 337 } | 337 } |
| OLD | NEW |