c1b56a9ea0
- Run dartfmt --fix. This converts JavaDoc comments to "///", removes "new" and extraneous "const", and a couple of other things. - Fix SCREAMING_CAPS constants to lowerCamelCase. - Use collection literals where possible. - Use UI-as-code in a couple of places where it seemed obvious. - Use "var" for more local variables. - Use "const" instead of "final" when possible. - Make members private when possible. Deleted a few that then became obviously unused. - ".length > 0" -> ".isNotEmpty". There are no meaningful changes. Change-Id: Ic6c5a74b2af9b3ebcbe881dbed69f65488bdef09 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105880 Commit-Queue: Bob Nystrom <rnystrom@google.com> Reviewed-by: William Hesse <whesse@google.com>
39 lines
1.6 KiB
Dart
39 lines
1.6 KiB
Dart
// Copyright (c) 2017, 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.
|
|
|
|
/// This file is the entrypoint of the Dart repository's custom test system.
|
|
/// It is used to test:
|
|
///
|
|
/// 1. The Dart VM
|
|
/// 2. The dart2js compiler
|
|
/// 3. The static analyzer
|
|
/// 4. The Dart core library
|
|
/// 5. Other standard dart libraries (DOM bindings, UI libraries,
|
|
/// IO libraries etc.)
|
|
/// 6. The Dart specification parser.
|
|
///
|
|
/// This script is normally invoked by test.py. (test.py finds the Dart VM and
|
|
/// passes along all command line arguments to this script.)
|
|
///
|
|
/// The command line args of this script are documented in "test_options.dart".
|
|
/// They are printed when this script is run with "--help".
|
|
///
|
|
/// The default test directory layout is documented in "test_suite.dart", above
|
|
/// `factory StandardTestSuite.forDirectory`.
|
|
import "package:test_runner/src/options.dart";
|
|
import "package:test_runner/src/test_configurations.dart";
|
|
|
|
/// Runs all of the tests specified by the given command line [arguments].
|
|
void main(List<String> arguments) {
|
|
// Parse the command line arguments to a configuration.
|
|
var parser = OptionsParser();
|
|
var configurations = parser.parse(arguments);
|
|
if (configurations == null || configurations.isEmpty) return;
|
|
|
|
// Run all of the configured tests.
|
|
// TODO(26372): Ensure that all tasks complete and return a future from this
|
|
// function.
|
|
testConfigurations(configurations);
|
|
}
|