Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tools/test-runtime.dart

Issue 10197008: - Add tests/lib to start testing libraries outside of core. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« tools/test.dart ('K') | « tools/test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, frog, and utils removed. 9 // directories samples, client, compiler, frog, and utils removed.
10 10
11 #library("test"); 11 #library("test");
12 12
13 #import("testing/dart/test_runner.dart"); 13 #import("testing/dart/test_runner.dart");
14 #import("testing/dart/test_options.dart"); 14 #import("testing/dart/test_options.dart");
15 15
16 #import("../tests/co19/test_config.dart"); 16 #import("../tests/co19/test_config.dart");
17 #import("../tests/corelib/test_config.dart"); 17 #import("../tests/corelib/test_config.dart");
18 #import("../tests/isolate/test_config.dart"); 18 #import("../tests/isolate/test_config.dart");
19 #import("../tests/language/test_config.dart"); 19 #import("../tests/language/test_config.dart");
20 #import("../tests/lib/test_config.dart");
20 #import("../tests/standalone/test_config.dart"); 21 #import("../tests/standalone/test_config.dart");
21 #import("../tests/utils/test_config.dart"); 22 #import("../tests/utils/test_config.dart");
22 #import("../runtime/tests/vm/test_config.dart"); 23 #import("../runtime/tests/vm/test_config.dart");
23 24
24 main() { 25 main() {
25 var startTime = new Date.now(); 26 var startTime = new Date.now();
26 var optionsParser = new TestOptionsParser(); 27 var optionsParser = new TestOptionsParser();
27 List<Map> configurations = optionsParser.parse(new Options().arguments); 28 List<Map> configurations = optionsParser.parse(new Options().arguments);
28 if (configurations == null) return; 29 if (configurations == null) return;
29 30
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 64 }
64 if (selectors.containsKey('corelib')) { 65 if (selectors.containsKey('corelib')) {
65 queue.addTestSuite(new CorelibTestSuite(conf)); 66 queue.addTestSuite(new CorelibTestSuite(conf));
66 } 67 }
67 if (selectors.containsKey('co19')) { 68 if (selectors.containsKey('co19')) {
68 queue.addTestSuite(new Co19TestSuite(conf)); 69 queue.addTestSuite(new Co19TestSuite(conf));
69 } 70 }
70 if (selectors.containsKey('language')) { 71 if (selectors.containsKey('language')) {
71 queue.addTestSuite(new LanguageTestSuite(conf)); 72 queue.addTestSuite(new LanguageTestSuite(conf));
72 } 73 }
74 if (selectors.containsKey('lib')) {
75 queue.addTestSuite(new LibTestSuite(conf));
76 }
73 if (selectors.containsKey('isolate')) { 77 if (selectors.containsKey('isolate')) {
74 queue.addTestSuite(new IsolateTestSuite(conf)); 78 queue.addTestSuite(new IsolateTestSuite(conf));
75 } 79 }
76 if (selectors.containsKey('utils')) { 80 if (selectors.containsKey('utils')) {
77 queue.addTestSuite(new UtilsTestSuite(conf)); 81 queue.addTestSuite(new UtilsTestSuite(conf));
78 } 82 }
79 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) { 83 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) {
80 queue.addTestSuite(new VMTestSuite(conf)); 84 queue.addTestSuite(new VMTestSuite(conf));
81 queue.addTestSuite(new VMDartTestSuite(conf)); 85 queue.addTestSuite(new VMDartTestSuite(conf));
82 } 86 }
83 87
84 return true; 88 return true;
85 } 89 }
86 90
87 // Start process queue. 91 // Start process queue.
88 var queue = new ProcessQueue(maxProcesses, 92 var queue = new ProcessQueue(maxProcesses,
89 progressIndicator, 93 progressIndicator,
90 startTime, 94 startTime,
91 printTiming, 95 printTiming,
92 enqueueConfiguration, 96 enqueueConfiguration,
93 verbose, 97 verbose,
94 listTests, 98 listTests,
95 keepGeneratedTests); 99 keepGeneratedTests);
96 } 100 }
OLDNEW
« tools/test.dart ('K') | « tools/test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698