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

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

Issue 10905208: Add --step_name option to test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 var startTime = new Date.now(); 68 var startTime = new Date.now();
69 var optionsParser = new TestOptionsParser(); 69 var optionsParser = new TestOptionsParser();
70 List<Map> configurations = optionsParser.parse(new Options().arguments); 70 List<Map> configurations = optionsParser.parse(new Options().arguments);
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 stepName = firstConf['step_name'];
Bill Hesse 2012/09/11 10:26:53 How about BuildbotProgressIndicator.stepName = fir
78 var verbose = firstConf['verbose']; 79 var verbose = firstConf['verbose'];
79 var printTiming = firstConf['time']; 80 var printTiming = firstConf['time'];
80 var listTests = firstConf['list']; 81 var listTests = firstConf['list'];
81 82
83 if (progressIndicator == 'buildbot' && stepName !== null) {
ricow1 2012/09/11 08:14:38 I am not particularly happy about having buildbot
84 print('@@@BUILD_STEP $stepName@@@');
85 }
86
82 // Print the configurations being run by this execution of 87 // Print the configurations being run by this execution of
83 // test.dart. However, don't do it if the silent progress indicator 88 // test.dart. However, don't do it if the silent progress indicator
84 // is used. This is only needed because of the junit tests. 89 // is used. This is only needed because of the junit tests.
85 if (progressIndicator != 'silent') { 90 if (progressIndicator != 'silent') {
86 List output_words = configurations.length > 1 ? 91 List output_words = configurations.length > 1 ?
87 ['Test configurations:'] : ['Test configuration:']; 92 ['Test configurations:'] : ['Test configuration:'];
88 for (Map conf in configurations) { 93 for (Map conf in configurations) {
89 List settings = 94 List settings =
90 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); 95 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]);
91 if (conf['checked']) settings.add('checked'); 96 if (conf['checked']) settings.add('checked');
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return true; 130 return true;
126 } 131 }
127 132
128 // Start process queue. 133 // Start process queue.
129 var queue = new ProcessQueue(maxProcesses, 134 var queue = new ProcessQueue(maxProcesses,
130 progressIndicator, 135 progressIndicator,
131 startTime, 136 startTime,
132 printTiming, 137 printTiming,
133 enqueueConfiguration, 138 enqueueConfiguration,
134 verbose, 139 verbose,
135 listTests); 140 listTests,
141 stepName);
136 } 142 }
OLDNEW
« no previous file with comments | « no previous file | dart/tools/testing/dart/test_options.dart » ('j') | dart/utils/compiler/buildbot.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698