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

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

Issue 10398056: Remove system-provided temporary directory usage from test scripts. (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 | « tools/test.dart ('k') | tools/testing/dart/test_options.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, frog, and utils removed. 9 // directories samples, client, compiler, frog, and utils removed.
10 10
(...skipping 30 matching lines...) Expand all
41 if (configurations == null) return; 41 if (configurations == null) return;
42 42
43 // Extract global options from first configuration. 43 // Extract global options from first configuration.
44 var firstConf = configurations[0]; 44 var firstConf = configurations[0];
45 Map<String, RegExp> selectors = firstConf['selectors']; 45 Map<String, RegExp> selectors = firstConf['selectors'];
46 var maxProcesses = firstConf['tasks']; 46 var maxProcesses = firstConf['tasks'];
47 var progressIndicator = firstConf['progress']; 47 var progressIndicator = firstConf['progress'];
48 var verbose = firstConf['verbose']; 48 var verbose = firstConf['verbose'];
49 var printTiming = firstConf['time']; 49 var printTiming = firstConf['time'];
50 var listTests = firstConf['list']; 50 var listTests = firstConf['list'];
51 var keepGeneratedTests = firstConf['keep-generated-tests'];
52 51
53 // Print the configurations being run by this execution of 52 // Print the configurations being run by this execution of
54 // test.dart. However, don't do it if the silent progress indicator 53 // test.dart. However, don't do it if the silent progress indicator
55 // is used. This is only needed because of the junit tests. 54 // is used. This is only needed because of the junit tests.
56 if (progressIndicator != 'silent') { 55 if (progressIndicator != 'silent') {
57 StringBuffer sb = new StringBuffer('Test configuration'); 56 StringBuffer sb = new StringBuffer('Test configuration');
58 sb.add(configurations.length > 1 ? 's:' : ':'); 57 sb.add(configurations.length > 1 ? 's:' : ':');
59 for (Map conf in configurations) { 58 for (Map conf in configurations) {
60 sb.add(' ${conf["compiler"]}_${conf["runtime"]}_${conf["mode"]}_' + 59 sb.add(' ${conf["compiler"]}_${conf["runtime"]}_${conf["mode"]}_' +
61 '${conf["arch"]}'); 60 '${conf["arch"]}');
(...skipping 29 matching lines...) Expand all
91 return true; 90 return true;
92 } 91 }
93 92
94 // Start process queue. 93 // Start process queue.
95 var queue = new ProcessQueue(maxProcesses, 94 var queue = new ProcessQueue(maxProcesses,
96 progressIndicator, 95 progressIndicator,
97 startTime, 96 startTime,
98 printTiming, 97 printTiming,
99 enqueueConfiguration, 98 enqueueConfiguration,
100 verbose, 99 verbose,
101 listTests, 100 listTests);
102 keepGeneratedTests);
103 } 101 }
OLDNEW
« no previous file with comments | « tools/test.dart ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698