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

Unified Diff: tools/test.dart

Issue 2848103002: Move test.dart into testing/dart. (Closed)
Patch Set: Remove pointless LeftOverTempDirPrinter class. Created 3 years, 8 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 | « no previous file | tools/test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test.dart
diff --git a/tools/test.dart b/tools/test.dart
deleted file mode 100755
index aa04d4440ce9a64a3095d42d3954660006d8b382..0000000000000000000000000000000000000000
--- a/tools/test.dart
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env dart
-// Copyright (c) 2013, 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 passes 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;
-
-import "dart:async";
-import "dart:io";
-import "testing/dart/test_configurations.dart";
-import "testing/dart/test_options.dart";
-import "testing/dart/test_progress.dart";
-import "testing/dart/test_suite.dart";
-import "testing/dart/utils.dart";
-
-Future _deleteTemporaryDartDirectories() {
- var completer = new Completer();
- var environment = Platform.environment;
- if (environment['DART_TESTING_DELETE_TEMPORARY_DIRECTORIES'] == '1') {
- LeftOverTempDirPrinter.getLeftOverTemporaryDirectories().listen(
- (FileSystemEntity tempEntity) {
- Directory tempDirectory = tempEntity as Directory;
- 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 [sdk]/tools.
- TestUtils.setDartDirUri(Platform.script.resolve('..'));
- _deleteTemporaryDartDirectories().then((_) {
- var optionsParser = new TestOptionsParser();
- var configurations = optionsParser.parse(arguments);
- if (configurations != null && configurations.length > 0) {
- // All the testing is carried out asynchronously in tasks created by this
- // call.
- // TODO(26372): Ensure that all tasks complete before the returned future.
- testConfigurations(configurations);
- }
- });
-}
« no previous file with comments | « no previous file | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698