OLD | NEW |
1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2012, 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 // TODO(ager): Get rid of this version of test.dart when we don't have | 6 // TODO(ager): Get rid of this version of test.dart when we don't have |
7 // to worry about the special runtime checkout anymore. | 7 // to worry about the special runtime checkout anymore. |
8 // This file is identical to test.dart with test suites in the | 8 // This file is identical to test.dart with test suites in the |
9 // directories samples, client, compiler, and utils removed. | 9 // directories samples, client, compiler, and utils removed. |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 } | 58 } |
59 } | 59 } |
60 // Print the configurations being run by this execution of | 60 // Print the configurations being run by this execution of |
61 // test.dart. However, don't do it if the silent progress indicator | 61 // test.dart. However, don't do it if the silent progress indicator |
62 // is used. This is only needed because of the junit tests. | 62 // is used. This is only needed because of the junit tests. |
63 if (progressIndicator != 'silent') { | 63 if (progressIndicator != 'silent') { |
64 List output_words = configurations.length > 1 ? | 64 List output_words = configurations.length > 1 ? |
65 ['Test configurations:'] : ['Test configuration:']; | 65 ['Test configurations:'] : ['Test configuration:']; |
66 for (Map conf in configurations) { | 66 for (Map conf in configurations) { |
67 List settings = ['compiler', 'runtime', 'mode', 'arch'] | 67 List settings = ['compiler', 'runtime', 'mode', 'arch'] |
68 .mappedBy((name) => conf[name]).toList(); | 68 .map((name) => conf[name]).toList(); |
69 if (conf['checked']) settings.add('checked'); | 69 if (conf['checked']) settings.add('checked'); |
70 output_words.add(Strings.join(settings, '_')); | 70 output_words.add(Strings.join(settings, '_')); |
71 } | 71 } |
72 print(Strings.join(output_words, ' ')); | 72 print(Strings.join(output_words, ' ')); |
73 } | 73 } |
74 | 74 |
75 var testSuites = new List<TestSuite>(); | 75 var testSuites = new List<TestSuite>(); |
76 for (var conf in configurations) { | 76 for (var conf in configurations) { |
77 if (selectors.containsKey('co19')) { | 77 if (selectors.containsKey('co19')) { |
78 testSuites.add(new Co19TestSuite(conf)); | 78 testSuites.add(new Co19TestSuite(conf)); |
(...skipping 30 matching lines...) Expand all Loading... |
109 maxProcesses, | 109 maxProcesses, |
110 maxBrowserProcesses, | 110 maxBrowserProcesses, |
111 progressIndicator, | 111 progressIndicator, |
112 startTime, | 112 startTime, |
113 printTiming, | 113 printTiming, |
114 testSuites, | 114 testSuites, |
115 () => TestingServerRunner.terminateHttpServers(), | 115 () => TestingServerRunner.terminateHttpServers(), |
116 verbose, | 116 verbose, |
117 listTests); | 117 listTests); |
118 } | 118 } |
OLD | NEW |