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

Unified Diff: pkg/compiler/tool/generate_kernel_test.dart

Issue 2880443005: Remove one more use of DillTarget.read that broke compiler/tool/generate_kernel. (Closed)
Patch Set: Created 3 years, 7 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 | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/tool/generate_kernel_test.dart
diff --git a/pkg/compiler/tool/generate_kernel_test.dart b/pkg/compiler/tool/generate_kernel_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b7bf815987ba52c7c7739714e5b01f14fca1b88b
--- /dev/null
+++ b/pkg/compiler/tool/generate_kernel_test.dart
@@ -0,0 +1,23 @@
+// Copyright (c) 2017, 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.
+
+library compiler.tool.generate_kernel_test;
+
+import 'dart:io';
+import 'generate_kernel.dart' as m;
+import 'package:front_end/src/fasta/testing/patched_sdk_location.dart';
+
+main() async {
+ Directory dir;
+ try {
+ dir = Directory.systemTemp.createTempSync('generate_kernel_test');
+ var file = dir.absolute.uri.resolve('hi.dart');
+ new File.fromUri(file).writeAsStringSync("main() => print('hello world');");
+ var vmSdk = await computePatchedSdk();
+ var platformUri = vmSdk.resolve('../patched_dart2js_sdk/platform.dill');
+ await m.main(['--platform=${platformUri.toFilePath()}', file.toFilePath()]);
+ } finally {
+ dir.deleteSync(recursive: true);
+ }
+}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698