| Index: tools/testing/dart/test_configurations.dart
|
| diff --git a/tools/test.dart b/tools/testing/dart/test_configurations.dart
|
| old mode 100755
|
| new mode 100644
|
| similarity index 82%
|
| copy from tools/test.dart
|
| copy to tools/testing/dart/test_configurations.dart
|
| index 21e1150d0a7b1f85b5890d29521bd9d251bd4557..63d7f1d2842813087c347fc97a16cf1ab5ffe951
|
| --- a/tools/test.dart
|
| +++ b/tools/testing/dart/test_configurations.dart
|
| @@ -1,46 +1,22 @@
|
| -#!/usr/bin/env dart
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// 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.
|
|
|
| -/**
|
| - * This file is the entrypoint of the dart test suite. This suite 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.)
|
| - *
|
| - * This script is normally invoked by test.py. (test.py finds the dart vm
|
| - * and passses along all command line arguments to this script.)
|
| - *
|
| - * The command line args of this script are documented in
|
| - * "tools/testing/dart/test_options.dart"; they are printed
|
| - * when this script is run with "--help".
|
| - *
|
| - * The default test directory layout is documented in
|
| - * "tools/testing/dart/test_suite.dart", above
|
| - * "factory StandardTestSuite.forDirectory".
|
| - */
|
| -
|
| -library test;
|
| +library test_configurations;
|
|
|
| import "dart:async";
|
| -import "dart:io";
|
| +import 'dart:io';
|
| import "dart:math" as math;
|
| -import "testing/dart/browser_controller.dart";
|
| -import "testing/dart/http_server.dart";
|
| -import "testing/dart/test_options.dart";
|
| -import "testing/dart/test_progress.dart";
|
| -import "testing/dart/test_runner.dart";
|
| -import "testing/dart/test_suite.dart";
|
| -import "testing/dart/utils.dart";
|
|
|
| -import "testing/dart/vm_test_config.dart";
|
| -import "testing/dart/co19_test_config.dart";
|
| +import "browser_controller.dart";
|
| +import "co19_test_config.dart";
|
| +import "http_server.dart";
|
| +import "path.dart";
|
| +import "test_progress.dart";
|
| +import "test_runner.dart";
|
| +import "test_suite.dart";
|
| +import "utils.dart";
|
| +import "vm_test_config.dart";
|
|
|
| /**
|
| * The directories that contain test suites which follow the conventions
|
| @@ -309,34 +285,3 @@ void testConfigurations(List<Map> configurations) {
|
| Future.wait(serverFutures).then((_) => startProcessQueue());
|
| }
|
| }
|
| -
|
| -Future deleteTemporaryDartDirectories() {
|
| - var completer = new Completer();
|
| - var environment = Platform.environment;
|
| - if (environment['DART_TESTING_DELETE_TEMPORARY_DIRECTORIES'] == '1') {
|
| - LeftOverTempDirPrinter.getLeftOverTemporaryDirectories().listen(
|
| - (Directory tempDirectory) {
|
| - try {
|
| - tempDirectory.deleteSync(recursive: true);
|
| - } catch (error) {
|
| - DebugLogger.error(error);
|
| - }
|
| - }, onDone: completer.complete);
|
| - } else {
|
| - completer.complete();
|
| - }
|
| - return completer.future;
|
| -}
|
| -
|
| -void main(List<String> arguments) {
|
| - // This script is in [dart]/tools.
|
| - TestUtils.setDartDirUri(Platform.script.resolve('..'));
|
| - deleteTemporaryDartDirectories().then((_) {
|
| - var optionsParser = new TestOptionsParser();
|
| - var configurations = optionsParser.parse(arguments);
|
| - if (configurations != null && configurations.length > 0) {
|
| - testConfigurations(configurations);
|
| - }
|
| - });
|
| -}
|
| -
|
|
|