ba2e4aff24
- Fix fuzzy arrow errors.
- Default the Dart repo URI so it doesn't always need to be explicitly
set.
- Run dartfmt on everything.
- Move some members out of the garbage bin "TestUtils" class:
- Move the stuff around the Dart repo directory to a new Repository
class.
- Move absolute() into Path where it belongs.
- Move workingDirectory in Path since it is a Path.
- Delete the random number stuff since it was apparently unused.
Change-Id: I3dab3a4f1713b7a749e64b6776149d05a0ce1b69
Reviewed-on: https://dart-review.googlesource.com/14502
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
68 lines
1.8 KiB
Dart
68 lines
1.8 KiB
Dart
// 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.
|
|
|
|
/// Tool for running co19 tests. Used when updating co19.
|
|
///
|
|
/// Currently, this tool is merely a convenience around multiple
|
|
/// invocations of test.dart. Long term, we hope to evolve this into a
|
|
/// script that can automate most of the tasks necessary when updating
|
|
/// co19.
|
|
///
|
|
/// Usage:
|
|
/// [: dart tools/testing/dart/co19_test.dart :]
|
|
import 'configuration.dart';
|
|
import 'options.dart';
|
|
import 'test_configurations.dart';
|
|
|
|
const List<String> COMMON_ARGUMENTS = const <String>[
|
|
'--report',
|
|
'--progress=diff',
|
|
'co19'
|
|
];
|
|
|
|
const List<List<String>> COMMAND_LINES = const <List<String>>[
|
|
const <String>['-mrelease,debug', '-rvm', '-cnone'],
|
|
const <String>['-mrelease,debug', '-rvm', '-cnone', '--checked'],
|
|
const <String>['-mrelease', '-rnone', '-cdart2analyzer'],
|
|
const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk'],
|
|
const <String>[
|
|
'-mrelease',
|
|
'-rd8,jsshell',
|
|
'-cdart2js',
|
|
'--use-sdk',
|
|
'--minified'
|
|
],
|
|
const <String>[
|
|
'-mrelease',
|
|
'-rd8,jsshell',
|
|
'-cdart2js',
|
|
'--use-sdk',
|
|
'--checked'
|
|
],
|
|
const <String>[
|
|
'-mrelease',
|
|
'-rd8,jsshell',
|
|
'-cdart2js',
|
|
'--use-sdk',
|
|
'--checked',
|
|
'--fast-startup'
|
|
],
|
|
];
|
|
|
|
void main(List<String> args) {
|
|
var optionsParser = new OptionsParser();
|
|
var configurations = <Configuration>[];
|
|
for (var commandLine in COMMAND_LINES) {
|
|
var arguments = <String>[];
|
|
arguments.addAll(COMMON_ARGUMENTS);
|
|
arguments.addAll(args);
|
|
arguments.addAll(commandLine);
|
|
configurations.addAll(optionsParser.parse(arguments));
|
|
}
|
|
|
|
if (configurations != null || configurations.length > 0) {
|
|
testConfigurations(configurations);
|
|
}
|
|
}
|