OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library package_testing_support; | 5 library package_testing_support; |
6 | 6 |
7 import 'dart:convert' show | 7 import 'dart:convert' show JSON; |
8 JSON; | |
9 | 8 |
10 import 'test_configurations.dart' show | 9 import 'test_configurations.dart' show testConfigurations; |
11 testConfigurations; | |
12 | 10 |
13 import 'test_options.dart' show | 11 import 'test_options.dart' show TestOptionsParser; |
14 TestOptionsParser; | |
15 | 12 |
16 import 'test_suite.dart' show | 13 import 'test_suite.dart' show TestUtils; |
17 TestUtils; | |
18 | 14 |
19 main(List<String> arguments) { | 15 main(List<String> arguments) { |
20 TestUtils.setDartDirUri(Uri.base); | 16 TestUtils.setDartDirUri(Uri.base); |
21 List<Map> configurations = <Map>[]; | 17 List<Map> configurations = <Map>[]; |
22 for (String argument in arguments) { | 18 for (String argument in arguments) { |
23 configurations.addAll(new TestOptionsParser().parse(argument.split(" "))); | 19 configurations.addAll(new TestOptionsParser().parse(argument.split(" "))); |
24 } | 20 } |
25 testConfigurations(configurations); | 21 testConfigurations(configurations); |
26 } | 22 } |
OLD | NEW |