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

Side by Side Diff: test/checker/self_host_test.dart

Issue 1235503010: fixes #219, able to compile multiple entry points (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Tests that run the checker end-to-end using the file system. 5 /// Tests that run the checker end-to-end using the file system.
6 library dev_compiler.test.end_to_end; 6 library dev_compiler.test.checker.self_host_test;
7 7
8 import 'package:cli_util/cli_util.dart' show getSdkDir; 8 import 'package:dev_compiler/devc.dart' show BatchCompiler;
9 import 'package:dev_compiler/devc.dart' show Compiler;
10 import 'package:dev_compiler/src/options.dart'; 9 import 'package:dev_compiler/src/options.dart';
11 import 'package:test/test.dart'; 10 import 'package:test/test.dart';
12 import '../test_util.dart' show testDirectory; 11 import '../testing.dart' show testDirectory, realSdkContext;
13 12
14 void main() { 13 void main() {
15 test('checker can run on itself ', () { 14 test('checker can run on itself ', () {
16 var options = new CompilerOptions( 15 new BatchCompiler(realSdkContext, new CompilerOptions())
17 sourceOptions: new SourceResolverOptions( 16 .compileFromUriString('$testDirectory/all_tests.dart');
18 entryPointFile: '$testDirectory/all_tests.dart', 17 }, skip: 'test is very slow');
19 dartSdkPath: getSdkDir().path));
20 new Compiler(options).run();
21 });
22 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698