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

Side by Side Diff: tests/dartino_tests/multiprogram_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/dartino_tests/messages.dart ('k') | tests/dartino_tests/self_tests.dart » ('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 Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async' show 5 import 'dart:async' show
6 Future; 6 Future;
7 7
8 import 'dart:io' show 8 import 'dart:io' show
9 Directory, 9 Directory,
10 Process, 10 Process,
11 ProcessResult; 11 ProcessResult;
12 12
13 import 'package:expect/expect.dart' show 13 import 'package:expect/expect.dart' show
14 Expect; 14 Expect;
15 15
16 import '../fletchc/run.dart' show 16 import '../dartino_compiler/run.dart' show
17 export; 17 export;
18 18
19 import 'utils.dart' show 19 import 'utils.dart' show
20 withTempDirectory; 20 withTempDirectory;
21 21
22 const String buildDirectory = 22 const String buildDirectory =
23 const String.fromEnvironment('test.dart.build-dir'); 23 const String.fromEnvironment('test.dart.build-dir');
24 24
25 final String multiprogramRunner = '$buildDirectory/multiprogram_cc_test'; 25 final String multiprogramRunner = '$buildDirectory/multiprogram_cc_test';
26 26
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 if (duplicate != null) { 113 if (duplicate != null) {
114 snapshotsExitcodeTuples = duplicateList( 114 snapshotsExitcodeTuples = duplicateList(
115 snapshotsExitcodeTuples, duplicate); 115 snapshotsExitcodeTuples, duplicate);
116 } 116 }
117 117
118 var arguments = [] 118 var arguments = []
119 ..add(mode) 119 ..add(mode)
120 ..addAll(snapshotsExitcodeTuples); 120 ..addAll(snapshotsExitcodeTuples);
121 121
122 // Run all the snapshots inside one fletch vm. 122 // Run all the snapshots inside one dartino vm.
123 print("Running $multiprogramRunner ${arguments.join(' ')}"); 123 print("Running $multiprogramRunner ${arguments.join(' ')}");
124 ProcessResult result = await Process.run(multiprogramRunner, arguments); 124 ProcessResult result = await Process.run(multiprogramRunner, arguments);
125 print("Done running $multiprogramRunner ${arguments.join(' ')}:"); 125 print("Done running $multiprogramRunner ${arguments.join(' ')}:");
126 print("<STDOUT>:\n${result.stdout}\n"); 126 print("<STDOUT>:\n${result.stdout}\n");
127 print("<STDERR>:\n${result.stderr}\n"); 127 print("<STDERR>:\n${result.stderr}\n");
128 print("<EXITCODE>:\n${result.exitCode}\n"); 128 print("<EXITCODE>:\n${result.exitCode}\n");
129 129
130 // Validate the result. 130 // Validate the result.
131 Expect.equals(0, result.exitCode); 131 Expect.equals(0, result.exitCode);
132 }); 132 });
133 } 133 }
134 134
135 String testFilename(String name, [String generated = '']) 135 String testFilename(String name, [String generated = ''])
136 => '${testDirectory(generated)}/${name}.dart'; 136 => '${testDirectory(generated)}/${name}.dart';
137 137
138 String testDirectory([String generated = '']) 138 String testDirectory([String generated = ''])
139 => 'tests/multiprogram_tests$generated'; 139 => 'tests/multiprogram_tests$generated';
140 140
141 main() async { 141 main() async {
142 var tests = await listTests(); 142 var tests = await listTests();
143 for (var name in tests.keys) { 143 for (var name in tests.keys) {
144 print('Running test "$name".'); 144 print('Running test "$name".');
145 await tests[name](); 145 await tests[name]();
146 } 146 }
147 } 147 }
OLDNEW
« no previous file with comments | « tests/dartino_tests/messages.dart ('k') | tests/dartino_tests/self_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698