9e5b240923
deleted files that duplicate those in the Dart repository (LICENSE, pubspec.yaml, codereview.settings, .gitignore) Otherwise, just changed pkg.status and pubspec R=terry@google.com Review URL: https://codereview.chromium.org//23168002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26155 260f80e4-7a28-3924-810f-c04153c831b5
40 lines
1.4 KiB
Dart
40 lines
1.4 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.
|
|
|
|
/**
|
|
* This is a helper for run.sh. We try to run all of the Dart code in one
|
|
* instance of the Dart VM to reduce warm-up time.
|
|
*/
|
|
library run_impl;
|
|
|
|
import 'dart:io';
|
|
import 'package:unittest/unittest.dart';
|
|
import 'package:unittest/compact_vm_config.dart';
|
|
import 'testing.dart';
|
|
|
|
import 'compiler_test.dart' as compiler_test;
|
|
import 'declaration_test.dart' as declaration_test;
|
|
import 'var_test.dart' as var_test;
|
|
import 'nested_test.dart' as nested_test;
|
|
import 'error_test.dart' as error_test;
|
|
import 'selector_test.dart' as selector_test;
|
|
import 'visitor_test.dart' as visitor_test;
|
|
|
|
main() {
|
|
var args = new Options().arguments;
|
|
|
|
var pattern = new RegExp(args.length > 0 ? args[0] : '.');
|
|
|
|
useCompactVMConfiguration();
|
|
useMockMessages();
|
|
|
|
if (pattern.hasMatch('compiler_test.dart')) compiler_test.main();
|
|
if (pattern.hasMatch('declaration_test.dart')) declaration_test.main();
|
|
if (pattern.hasMatch('var_test.dart')) var_test.main();
|
|
if (pattern.hasMatch('nested_test.dart')) nested_test.main();
|
|
if (pattern.hasMatch('selector_test.dart')) selector_test.main();
|
|
if (pattern.hasMatch('visitor_test.dart')) visitor_test.main();
|
|
if (pattern.hasMatch('error_test.dart')) error_test.main();
|
|
}
|