| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 | 7 |
| 8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
| 9 | 9 |
| 10 Future<Null> main() async { | 10 Future<Null> main() async { |
| 11 String buildDir = const String.fromEnvironment('test.dart.build-dir'); | 11 String buildDir = const String.fromEnvironment('test.dart.build-dir'); |
| 12 bool asanBuild = const bool.fromEnvironment('test.dart.build-asan'); | 12 bool asanBuild = const bool.fromEnvironment('test.dart.build-asan'); |
| 13 | 13 |
| 14 ProcessResult result; | 14 ProcessResult result; |
| 15 | 15 |
| 16 // Get the current version. | 16 // Get the current version. |
| 17 result = await Process.run( | 17 result = await Process.run( |
| 18 'python', ['$buildDir/../../tools/current_version.py'], runInShell: true); | 18 'python', ['$buildDir/../../tools/current_version.py'], runInShell: true); |
| 19 Expect.equals(0, result.exitCode); | 19 Expect.equals(0, result.exitCode); |
| 20 String version = result.stdout; | 20 String version = result.stdout; |
| 21 | 21 |
| 22 // Check the version of the fletch CLI. | 22 // Check the version of the dartino CLI. |
| 23 result = await Process.run('$buildDir/fletch', ['--version']); | 23 result = await Process.run('$buildDir/dartino', ['--version']); |
| 24 Expect.equals(0, result.exitCode); | 24 Expect.equals(0, result.exitCode); |
| 25 Expect.equals(version, result.stdout); | 25 Expect.equals(version, result.stdout); |
| 26 | 26 |
| 27 // Check the version of the fletch-vm | 27 // Check the version of the dartino-vm |
| 28 result = await Process.run('$buildDir/fletch-vm', ['--version']); | 28 result = await Process.run('$buildDir/dartino-vm', ['--version']); |
| 29 Expect.equals(0, result.exitCode); | 29 Expect.equals(0, result.exitCode); |
| 30 Expect.equals(version, result.stdout); | 30 Expect.equals(version, result.stdout); |
| 31 } | 31 } |
| OLD | NEW |