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

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

Issue 12223074: Create generated tests inside the build directory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « tools/test.dart ('k') | tools/testing/dart/browser_test.dart » ('j') | 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, and utils removed. 9 // directories samples, client, compiler, and utils removed.
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 .mappedBy((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 TestingServerRunner.setBuildDir(firstConf);
77 TestingServerRunner.setPackageRootDir(firstConf);
76 for (var conf in configurations) { 78 for (var conf in configurations) {
77 if (selectors.containsKey('co19')) { 79 if (selectors.containsKey('co19')) {
78 testSuites.add(new Co19TestSuite(conf)); 80 testSuites.add(new Co19TestSuite(conf));
79 } 81 }
80 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) { 82 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) {
81 // vm tests contain both cc tests (added here) and dart tests (added in 83 // vm tests contain both cc tests (added here) and dart tests (added in
82 // [TEST_SUITE_DIRECTORIES]). 84 // [TEST_SUITE_DIRECTORIES]).
83 testSuites.add(new VMTestSuite(conf)); 85 testSuites.add(new VMTestSuite(conf));
84 } 86 }
85 87
(...skipping 23 matching lines...) Expand all
109 maxProcesses, 111 maxProcesses,
110 maxBrowserProcesses, 112 maxBrowserProcesses,
111 progressIndicator, 113 progressIndicator,
112 startTime, 114 startTime,
113 printTiming, 115 printTiming,
114 testSuites, 116 testSuites,
115 () => TestingServerRunner.terminateHttpServers(), 117 () => TestingServerRunner.terminateHttpServers(),
116 verbose, 118 verbose,
117 listTests); 119 listTests);
118 } 120 }
OLDNEW
« no previous file with comments | « tools/test.dart ('k') | tools/testing/dart/browser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698