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

Unified Diff: utils/testrunner/macros.dart

Issue 10897016: Testrunner for 3rd parties. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/testrunner/html_wrap_task.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/testrunner/macros.dart
===================================================================
--- utils/testrunner/macros.dart (revision 0)
+++ utils/testrunner/macros.dart (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+/** Macro tokens that are expanded in pipeline jobs and test messages. */
+class Macros {
+ // Parts of the test file path.
+ static const String fullFilePath = '<FULLFILEPATH>';
+ static const String filename = '<FILENAME>';
+ static const String filenameNoExtension = '<FILENAMENOEXT>';
+ static const String directory = '<DIRECTORY>';
+
+ // A verson of the directory that is flattened to be like a filename,
+ // by replacing path separators with underscores and removing special
+ // characters.
+ static const String flattenedDirectory = '<FLATDIR>';
+
+ // Test result message components. These can be used to specify a
+ // format for the test result or listing messages. Note that if an
+ // actual value is empty, the replacement string will be empty, but if
+ // the value is non-empty, the replacement string will be the value
+ // followed by space. Thus:
+ //
+ // '<MESSAGE><STACK>'
+ //
+ // would be expanded to an empty string if neither of these are set, but
+ // if both are set, they will be separated by a space (and there will be
+ // a trailing space). If only <STACK> is set, then this will expand to
+ // the stack trace with no leading space but with a trailing space.
+ static const String testTime = '<TIME>';
+ static const String testfile = '<FILENAME>';
+ static const String testGroup = '<GROUPNAME>';
+ static const String testDescription = '<TESTNAME>';
+ static const String testMessage = '<MESSAGE>';
+ static const String testStacktrace = '<STACK>';
+}
« no previous file with comments | « utils/testrunner/html_wrap_task.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698