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

Side by Side Diff: utils/testrunner/pipeline_task.dart

Issue 10897016: Testrunner for 3rd parties. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // A test execution pipeline is made up of a list of tasks. Each task is a
6 // subclass of [PipelineTask].
7 abstract class PipelineTask {
8
9 abstract void execute(Path testfile, List stdout, List stderr,
10 bool verboseLogging, Function exitHandler);
11
12 // This takes a string used in a template and does macro expansion for
13 // a specific test file.
14 String concretize(String template, Path testfile) {
Siggi Cherem (dart-lang) 2012/08/29 01:05:55 rename ideas: concretize => - instantiate - subs
gram 2012/08/29 20:12:26 Done.
15 return template.
16 replaceAll(Meta.fullFilePath, testfile.toNativePath()).
17 replaceAll(Meta.filenameNoExtension, testfile.filenameWithoutExtension).
18 replaceAll(Meta.filename, testfile.filename).
19 replaceAll(Meta.directory, testfile.directoryPath.toString());
20 }
21 }
22
23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698