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

Side by Side Diff: tests/version_tests/version_tests.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « tests/unsorted/unsorted.status ('k') | third_party/bin/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « tests/unsorted/unsorted.status ('k') | third_party/bin/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698