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

Side by Side Diff: tools/test.dart

Issue 10253022: test rename overhaul: step 13 - samples (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « samples/tests/samples/total/total_test_lib.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 /** 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 15 matching lines...) Expand all
26 #library("test"); 26 #library("test");
27 27
28 #import("testing/dart/test_runner.dart"); 28 #import("testing/dart/test_runner.dart");
29 #import("testing/dart/test_options.dart"); 29 #import("testing/dart/test_options.dart");
30 #import("testing/dart/test_suite.dart"); 30 #import("testing/dart/test_suite.dart");
31 31
32 #import("../client/tests/dartc/test_config.dart"); 32 #import("../client/tests/dartc/test_config.dart");
33 #import("../compiler/tests/dartc/test_config.dart"); 33 #import("../compiler/tests/dartc/test_config.dart");
34 #import("../frog/tests/await/test_config.dart"); 34 #import("../frog/tests/await/test_config.dart");
35 #import("../runtime/tests/vm/test_config.dart"); 35 #import("../runtime/tests/vm/test_config.dart");
36 #import("../samples/tests/samples/test_config.dart");
37 #import("../tests/co19/test_config.dart"); 36 #import("../tests/co19/test_config.dart");
38 #import("../tests/standalone/test_config.dart"); 37 #import("../tests/standalone/test_config.dart");
39 38
40 /** 39 /**
41 * The directories that contain test suites which follow the conventions 40 * The directories that contain test suites which follow the conventions
42 * required by [StandardTestSuite]'s forDirectory constructor. 41 * required by [StandardTestSuite]'s forDirectory constructor.
43 * New test suites should follow this convention because it makes it much 42 * New test suites should follow this convention because it makes it much
44 * simpler to add them to test.dart. Existing test suites should be 43 * simpler to add them to test.dart. Existing test suites should be
45 * moved to here, if possible. 44 * moved to here, if possible.
46 */ 45 */
47 final TEST_SUITE_DIRECTORIES = const [ 46 final TEST_SUITE_DIRECTORIES = const [
48 'frog/tests/frog', 47 'frog/tests/frog',
49 'frog/tests/frog_native', 48 'frog/tests/frog_native',
50 'frog/tests/leg', 49 'frog/tests/leg',
51 'frog/tests/leg_only', 50 'frog/tests/leg_only',
51 'samples/tests/samples',
Bob Nystrom 2012/04/30 16:18:52 Not for this patch, but I wonder if we should even
Siggi Cherem (dart-lang) 2012/04/30 16:33:02 yes - or samples/tests/
52 'tests/benchmark_smoke', 52 'tests/benchmark_smoke',
53 'tests/corelib', 53 'tests/corelib',
54 'tests/dom', 54 'tests/dom',
55 'tests/html', 55 'tests/html',
56 'tests/isolate', 56 'tests/isolate',
57 'tests/json', 57 'tests/json',
58 'tests/language', 58 'tests/language',
59 'tests/utils', 59 'tests/utils',
60 'utils/tests/css', 60 'utils/tests/css',
61 'utils/tests/peg', 61 'utils/tests/peg',
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 94
95 var configurationIterator = configurations.iterator(); 95 var configurationIterator = configurations.iterator();
96 bool enqueueConfiguration(ProcessQueue queue) { 96 bool enqueueConfiguration(ProcessQueue queue) {
97 if (!configurationIterator.hasNext()) { 97 if (!configurationIterator.hasNext()) {
98 return false; 98 return false;
99 } 99 }
100 100
101 var conf = configurationIterator.next(); 101 var conf = configurationIterator.next();
102 for (String key in selectors.getKeys()) { 102 for (String key in selectors.getKeys()) {
103 if (key == 'samples') { 103 if (key == 'standalone') {
104 queue.addTestSuite(new SamplesTestSuite(conf));
105 } else if (key == 'standalone') {
106 queue.addTestSuite(new StandaloneTestSuite(conf)); 104 queue.addTestSuite(new StandaloneTestSuite(conf));
107 } else if (key == 'co19') { 105 } else if (key == 'co19') {
108 queue.addTestSuite(new Co19TestSuite(conf)); 106 queue.addTestSuite(new Co19TestSuite(conf));
109 } else if (conf['runtime'] == 'vm' && key == 'vm') { 107 } else if (conf['runtime'] == 'vm' && key == 'vm') {
110 queue.addTestSuite(new VMTestSuite(conf)); 108 queue.addTestSuite(new VMTestSuite(conf));
111 queue.addTestSuite(new VMDartTestSuite(conf)); 109 queue.addTestSuite(new VMDartTestSuite(conf));
112 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 110 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
113 queue.addTestSuite(new ClientDartcTestSuite(conf)); 111 queue.addTestSuite(new ClientDartcTestSuite(conf));
114 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 112 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
115 queue.addTestSuite(new JUnitDartcTestSuite(conf)); 113 queue.addTestSuite(new JUnitDartcTestSuite(conf));
(...skipping 16 matching lines...) Expand all
132 // Start process queue. 130 // Start process queue.
133 var queue = new ProcessQueue(maxProcesses, 131 var queue = new ProcessQueue(maxProcesses,
134 progressIndicator, 132 progressIndicator,
135 startTime, 133 startTime,
136 printTiming, 134 printTiming,
137 enqueueConfiguration, 135 enqueueConfiguration,
138 verbose, 136 verbose,
139 listTests, 137 listTests,
140 keepGeneratedTests); 138 keepGeneratedTests);
141 } 139 }
OLDNEW
« no previous file with comments | « samples/tests/samples/total/total_test_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698