Index: utils/testrunner/options.dart |
=================================================================== |
--- utils/testrunner/options.dart (revision 11963) |
+++ utils/testrunner/options.dart (working copy) |
@@ -23,6 +23,9 @@ |
parser.addFlag('checked', defaultsTo: false, |
help: 'Run tests in checked mode.'); |
+ parser.addFlag('layout', defaultsTo: false, |
+ help: 'Run layout tests.'); |
+ |
parser.addOption('timeout', abbr: 't', |
help: 'Timeout in seconds', defaultsTo: '60'); |
@@ -35,7 +38,8 @@ |
'file name or one of stdout, stderr, or none.'); |
parser.addOption('list-format', |
- defaultsTo: '${Macros.testfile}${Macros.testGroup}${Macros.testDescription}', |
+ defaultsTo: |
+ '${Macros.testfile}${Macros.testGroup}${Macros.testDescription}', |
help: 'Format for test list result output.'); |
parser.addOption('pass-format', |
@@ -133,6 +137,10 @@ |
'messages for a single test.', |
defaultsTo: false); |
+ parser.addFlag('generate-renders', |
+ help: 'Generate .render files for layout tests.', |
+ defaultsTo: false); |
+ |
parser.addOption('unittest', help: '#import path for unit test library.'); |
return parser; |
@@ -238,6 +246,10 @@ |
print('--include and --exclude are mutually exclusive.'); |
return false; |
} |
+ if (config['layout'] && config['runtime'] == 'vm') { |
+ print('Layout tests must use --runtime values of "drt-dart" or "drt-js"'); |
+ return false; |
+ } |
return true; |
} |