OLD | NEW |
1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 /** | 6 /** |
7 * This file is the entrypoint of the dart test suite. This suite is used | 7 * This file is the entrypoint of the dart test suite. This suite is used |
8 * to test: | 8 * to test: |
9 * | 9 * |
10 * 1. the dart vm | 10 * 1. the dart vm |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 }, onDone: completer.complete); | 50 }, onDone: completer.complete); |
51 } else { | 51 } else { |
52 completer.complete(); | 52 completer.complete(); |
53 } | 53 } |
54 return completer.future; | 54 return completer.future; |
55 } | 55 } |
56 | 56 |
57 void main(List<String> arguments) { | 57 void main(List<String> arguments) { |
58 // This script is in [dart]/tools. | 58 // This script is in [dart]/tools. |
59 TestUtils.setDartDirUri(Platform.script.resolve('..')); | 59 TestUtils.setDartDirUri(Platform.script.resolve('..')); |
60 _deleteTemporaryDartDirectories().then((_) { | 60 _deleteTemporaryDartDirectories().then((_) async { |
61 var optionsParser = new TestOptionsParser(); | 61 var optionsParser = new TestOptionsParser(); |
62 var configurations = optionsParser.parse(arguments); | 62 var configurations = optionsParser.parse(arguments); |
63 if (configurations != null && configurations.length > 0) { | 63 if (configurations != null && configurations.length > 0) { |
64 testConfigurations(configurations); | 64 await testConfigurations(configurations); |
65 } | 65 } |
66 }); | 66 }); |
67 } | 67 } |
OLD | NEW |