Move unittests

Change-Id: I23972b65cd839b9e535e4c483312c0e66b43d374
Reviewed-on: https://dart-review.googlesource.com/34820
Reviewed-by: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
Johnni Winther 2018-01-17 10:29:16 +00:00
parent e7ac35dfc9
commit 99feac38cc
14 changed files with 32 additions and 38 deletions

View file

@ -15,45 +15,47 @@
"exclude": [
"^tests/compiler/dart2js/codegen_helper\\.dart",
"^tests/compiler/dart2js/codegen/type_inference8_test\\.dart",
"^tests/compiler/dart2js/constant_expression_evaluate_test\\.dart",
"^tests/compiler/dart2js/constant_expression_test\\.dart",
"^tests/compiler/dart2js/data/mirrors_helper\\.dart",
"^tests/compiler/dart2js/data/one_line_dart_program\\.dart",
"^tests/compiler/dart2js/deferred/inline_restrictions_test\\.dart",
"^tests/compiler/dart2js/deferred/load_graph_segmentation2_test\\.dart",
"^tests/compiler/dart2js/deferred/load_graph_segmentation_test\\.dart",
"^tests/compiler/dart2js/mirrors/deferred_mirrors_test\\.dart",
"^tests/compiler/dart2js/deferred/not_in_main_test\\.dart",
"^tests/compiler/dart2js/in_user_code_test\\.dart",
"^tests/compiler/dart2js/jsinterop/world_test\\.dart",
"^tests/compiler/dart2js/kernel/class_hierarchy_test\\.dart",
"^tests/compiler/dart2js/kernel/closed_world_test\\.dart",
"^tests/compiler/dart2js/kernel/visitor_test\\.dart",
"^tests/compiler/dart2js/memory_compiler\\.dart",
"^tests/compiler/dart2js/old_frontend/message_kind_helper\\.dart",
"^tests/compiler/dart2js/old_frontend/metadata_test\\.dart",
"^tests/compiler/dart2js/mirrors/mirrors_used_test\\.dart",
"^tests/compiler/dart2js/mixin_typevariable_test\\.dart",
"^tests/compiler/dart2js/needs_no_such_method_test\\.dart",
"^tests/compiler/dart2js/no_such_method_enabled_test\\.dart",
"^tests/compiler/dart2js/output_collector\\.dart",
"^tests/compiler/dart2js/old_frontend/patch_test\\.dart",
"^tests/compiler/dart2js/quarantined/http_launch_data/http_launch_main_package\\.dart",
"^tests/compiler/dart2js/quarantined/http_test\\.dart",
"^tests/compiler/dart2js/old_frontend/reexport_handled_test\\.dart",
"^tests/compiler/dart2js/old_frontend/resolution_test\\.dart",
"^tests/compiler/dart2js/serialization/analysis_test_helper\\.dart",
"^tests/compiler/dart2js/serialization/compilation_test_helper\\.dart",
"^tests/compiler/dart2js/serialization/duplicate_library_test\\.dart",
"^tests/compiler/dart2js/serialization/equivalence_test\\.dart",
"^tests/compiler/dart2js/serialization/model_test_helper\\.dart",
"^tests/compiler/dart2js/serialization/test_helper\\.dart",
"^tests/compiler/dart2js/inference/data/super_invoke\\.dart",
"^tests/compiler/dart2js/inference/simple_inferrer_closure_test\\.dart",
"^tests/compiler/dart2js/inference/simple_inferrer_const_closure2_test\\.dart",
"^tests/compiler/dart2js/inference/simple_inferrer_const_closure_test\\.dart",
"^tests/compiler/dart2js/inference/simple_inferrer_global_field_closure_test\\.dart",
"^tests/compiler/dart2js/inference/simple_inferrer_test\\.dart",
"^tests/compiler/dart2js/inference/type_mask2_test\\.dart",
"^tests/compiler/dart2js/jsinterop/world_test\\.dart",
"^tests/compiler/dart2js/kernel/class_hierarchy_test\\.dart",
"^tests/compiler/dart2js/kernel/closed_world_test\\.dart",
"^tests/compiler/dart2js/kernel/visitor_test\\.dart",
"^tests/compiler/dart2js/memory_compiler\\.dart",
"^tests/compiler/dart2js/mirrors/data/mirrors_helper\\.dart",
"^tests/compiler/dart2js/mirrors/deferred_mirrors_test\\.dart",
"^tests/compiler/dart2js/mirrors/mirrors_used_test\\.dart",
"^tests/compiler/dart2js/mixin_typevariable_test\\.dart",
"^tests/compiler/dart2js/needs_no_such_method_test\\.dart",
"^tests/compiler/dart2js/no_such_method_enabled_test\\.dart",
"^tests/compiler/dart2js/output_collector\\.dart",
"^tests/compiler/dart2js/old_frontend/patch_test\\.dart",
"^tests/compiler/dart2js/old_frontend/message_kind_helper\\.dart",
"^tests/compiler/dart2js/old_frontend/metadata_test\\.dart",
"^tests/compiler/dart2js/old_frontend/reexport_handled_test\\.dart",
"^tests/compiler/dart2js/old_frontend/resolution_test\\.dart",
"^tests/compiler/dart2js/quarantined/http_launch_data/http_launch_main_package\\.dart",
"^tests/compiler/dart2js/quarantined/http_test\\.dart",
"^tests/compiler/dart2js/serialization/analysis_test_helper\\.dart",
"^tests/compiler/dart2js/serialization/compilation_test_helper\\.dart",
"^tests/compiler/dart2js/serialization/duplicate_library_test\\.dart",
"^tests/compiler/dart2js/serialization/equivalence_test\\.dart",
"^tests/compiler/dart2js/serialization/model_test_helper\\.dart",
"^tests/compiler/dart2js/serialization/test_helper\\.dart",
"^tests/compiler/dart2js/sourcemaps/helpers/source_map_validator_helper\\.dart",
"^tests/compiler/dart2js/sourcemaps/diff_view\\.dart",
"^tests/compiler/dart2js/sourcemaps/html_parts\\.dart",
@ -69,8 +71,6 @@
"^tests/compiler/dart2js/subtype_test\\.dart",
"^tests/compiler/dart2js/subtypeset_test\\.dart",
"^tests/compiler/dart2js/token_naming_test\\.dart",
"^tests/compiler/dart2js/inference/type_inference8_test\\.dart",
"^tests/compiler/dart2js/inference/type_mask2_test\\.dart",
"^tests/compiler/dart2js/type_representation_test\\.dart",
"^tests/compiler/dart2js/type_substitution_test\\.dart",
"^tests/compiler/dart2js/type_variable_occurrence_test\\.dart",

View file

@ -39,7 +39,7 @@ Future setup() {
tmpDir = directory;
String newPath = path.join(directory.path, "dart2js_batch2_run.dart");
File source = new File.fromUri(
Platform.script.resolve("../data/dart2js_batch2_run.dart"));
Platform.script.resolve("data/dart2js_batch2_run.dart"));
source.copySync(newPath);
});
}

View file

@ -242,7 +242,7 @@ Future testExitCode(
List<String> args = new List<String>.from(options)
..add("--library-root=${Uri.base.resolve('sdk/')}")
..add("tests/compiler/dart2js/data/exit_code_helper.dart");
..add("tests/compiler/dart2js/end_to_end/data/exit_code_helper.dart");
Future result = entry.internalMain(args);
return result.catchError((e, s) {
// Capture crashes.

View file

@ -2,9 +2,6 @@
// 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.
/// TODO(johnniwinther): Port this test to use the equivalence framework.
/// Currently it only works with the mock compiler.
import 'package:async_helper/async_helper.dart';
import 'package:compiler/src/types/types.dart' show ContainerTypeMask, TypeMask;
import 'package:compiler/src/commandline_options.dart';

View file

@ -2,9 +2,6 @@
// 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.
/// TODO(johnniwinther): Port this test to use the equivalence framework.
/// Currently it only works with the mock compiler.
import 'package:async_helper/async_helper.dart';
import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/compiler.dart';

View file

@ -79,7 +79,7 @@ main() {
PRINT_GRAPH = true;
TRACE_FILTER_PATTERN_FOR_TEST = 'x';
await test([
'tests/compiler/dart2js/data/deferred_helper.dart',
'tests/compiler/dart2js/deferred/data/deferred_helper.dart',
'--out=custom.js',
'--deferred-map=def/deferred.json',
Flags.dumpInfo,
@ -111,7 +111,7 @@ main() {
await test(
[
'tests/compiler/dart2js/data/deferred_helper.dart',
'tests/compiler/dart2js/deferred/data/deferred_helper.dart',
Flags.useContentSecurityPolicy,
]..addAll(additionOptionals),
expectedOutput,
@ -120,7 +120,7 @@ main() {
if (!useKernel) {
// Option --resolve-only is only supported for the old frontend.
await test([
'tests/compiler/dart2js/data/deferred_helper.dart',
'tests/compiler/dart2js/deferred/data/deferred_helper.dart',
'--out=custom.data',
'--resolve-only',
], [