// 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 createContext( Chain suite, Map environment) async { return new VmContext(); } class VmContext extends ChainContext { final List steps = const [const DartVmStep()]; } class DartVmStep extends Step { const DartVmStep(); String get name => "Dart VM"; Future> run( FileBasedTestDescription input, VmContext context) async { StdioProcess process = await StdioProcess.run("dart", [input.file.path]); return process.toResult(); } } main(List arguments) => runMe(arguments, createContext);