OLD | NEW |
(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) { |
| 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 |
OLD | NEW |