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

Side by Side Diff: tools/test.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 | « no previous file | tools/test-runtime.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 /** 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (configurations == null || configurations.length == 0) return; 71 if (configurations == null || configurations.length == 0) return;
72 72
73 // Extract global options from first configuration. 73 // Extract global options from first configuration.
74 var firstConf = configurations[0]; 74 var firstConf = configurations[0];
75 Map<String, RegExp> selectors = firstConf['selectors']; 75 Map<String, RegExp> selectors = firstConf['selectors'];
76 var maxProcesses = firstConf['tasks']; 76 var maxProcesses = firstConf['tasks'];
77 var progressIndicator = firstConf['progress']; 77 var progressIndicator = firstConf['progress'];
78 var verbose = firstConf['verbose']; 78 var verbose = firstConf['verbose'];
79 var printTiming = firstConf['time']; 79 var printTiming = firstConf['time'];
80 var listTests = firstConf['list']; 80 var listTests = firstConf['list'];
81 var keepGeneratedTests = firstConf['keep-generated-tests'];
82 81
83 // Print the configurations being run by this execution of 82 // Print the configurations being run by this execution of
84 // test.dart. However, don't do it if the silent progress indicator 83 // test.dart. However, don't do it if the silent progress indicator
85 // is used. This is only needed because of the junit tests. 84 // is used. This is only needed because of the junit tests.
86 if (progressIndicator != 'silent') { 85 if (progressIndicator != 'silent') {
87 StringBuffer sb = new StringBuffer('Test configuration'); 86 StringBuffer sb = new StringBuffer('Test configuration');
88 sb.add(configurations.length > 1 ? 's:' : ':'); 87 sb.add(configurations.length > 1 ? 's:' : ':');
89 for (Map conf in configurations) { 88 for (Map conf in configurations) {
90 sb.add(' ${conf["compiler"]}_${conf["runtime"]}_${conf["mode"]}_' + 89 sb.add(' ${conf["compiler"]}_${conf["runtime"]}_${conf["mode"]}_' +
91 '${conf["arch"]}'); 90 '${conf["arch"]}');
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return true; 124 return true;
126 } 125 }
127 126
128 // Start process queue. 127 // Start process queue.
129 var queue = new ProcessQueue(maxProcesses, 128 var queue = new ProcessQueue(maxProcesses,
130 progressIndicator, 129 progressIndicator,
131 startTime, 130 startTime,
132 printTiming, 131 printTiming,
133 enqueueConfiguration, 132 enqueueConfiguration,
134 verbose, 133 verbose,
135 listTests, 134 listTests);
136 keepGeneratedTests);
137 } 135 }
OLDNEW
« no previous file with comments | « no previous file | tools/test-runtime.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698