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

Unified Diff: pkg/testing/lib/dart_vm_suite.dart

Issue 2624373003: Move package:testing to SDK. (Closed)
Patch Set: Created 3 years, 11 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 | « pkg/testing/bin/testing.dart ('k') | pkg/testing/lib/src/analyze.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/testing/lib/dart_vm_suite.dart
diff --git a/pkg/testing/lib/dart_vm_suite.dart b/pkg/testing/lib/dart_vm_suite.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0edfdbcc14ed9466c8e247cee313201eb076cb15
--- /dev/null
+++ b/pkg/testing/lib/dart_vm_suite.dart
@@ -0,0 +1,29 @@
+// Copyright (c) 2016, 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.md file.
+
+library testing.dart_vm_suite;
+
+import 'testing.dart';
+
+Future<ChainContext> createContext(
+ Chain suite, Map<String, String> enviroment) async {
+ return new VmContext();
+}
+
+class VmContext extends ChainContext {
+ final List<Step> steps = const <Step>[const DartVmStep()];
+}
+
+class DartVmStep extends Step<TestDescription, int, VmContext> {
+ const DartVmStep();
+
+ String get name => "Dart VM";
+
+ Future<Result<int>> run(TestDescription input, VmContext context) async {
+ StdioProcess process = await StdioProcess.run("dart", [input.file.path]);
+ return process.toResult();
+ }
+}
+
+main(List<String> arguments) => runMe(arguments, createContext);
« no previous file with comments | « pkg/testing/bin/testing.dart ('k') | pkg/testing/lib/src/analyze.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698