| OLD | NEW |
| 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.end_to_end; |
| 7 | 7 |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'package:cli_util/cli_util.dart' show getSdkDir; | 9 import 'package:cli_util/cli_util.dart' show getSdkDir; |
| 10 import 'package:dev_compiler/devc.dart' show Compiler; | 10 import 'package:dev_compiler/devc.dart' show Compiler; |
| 11 import 'package:dev_compiler/src/options.dart'; | 11 import 'package:dev_compiler/src/options.dart'; |
| 12 import 'package:path/path.dart' as path; | 12 import 'package:path/path.dart' as path; |
| 13 import 'package:unittest/compact_vm_config.dart'; | |
| 14 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 15 | 14 |
| 16 main(args) { | 15 import '../test_util.dart'; |
| 17 useCompactVMConfiguration(); | 16 |
| 17 void main(args) { |
| 18 configureTest(); |
| 19 |
| 18 var testDir = path.absolute(path.dirname(Platform.script.path)); | 20 var testDir = path.absolute(path.dirname(Platform.script.path)); |
| 19 | 21 |
| 20 test('checker can run on itself ', () { | 22 test('checker can run on itself ', () { |
| 21 var options = new CompilerOptions( | 23 var options = new CompilerOptions( |
| 22 entryPointFile: '$testDir/../all_tests.dart', | 24 entryPointFile: '$testDir/../all_tests.dart', |
| 23 dartSdkPath: getSdkDir(args).path); | 25 dartSdkPath: getSdkDir(args).path); |
| 24 new Compiler(options).run(); | 26 new Compiler(options).run(); |
| 25 }); | 27 }); |
| 26 } | 28 } |
| OLD | NEW |