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

Side by Side Diff: pkg/front_end/tool/_fasta/abcompile.dart

Issue 2740323002: Shell script to ease running fasta tools. (Closed)
Patch Set: Update testing.json. Created 3 years, 9 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 | « pkg/front_end/test/fasta/testing.json ('k') | pkg/front_end/tool/_fasta/analyzer_compile.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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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'; 5 import 'dart:async';
6 import 'dart:convert'; 6 import 'dart:convert';
7 import 'dart:math'; 7 import 'dart:math';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'standard_deviation.dart'; 10 import 'standard_deviation.dart';
(...skipping 15 matching lines...) Expand all
26 exit(1); 26 exit(1);
27 } 27 }
28 28
29 // The root of this Dart SDK repo "A" 29 // The root of this Dart SDK repo "A"
30 Uri aRoot = Platform.script.resolve('../../../..'); 30 Uri aRoot = Platform.script.resolve('../../../..');
31 31
32 // The root of the other Dart SDK repo "B" 32 // The root of the other Dart SDK repo "B"
33 Uri bRoot = new Uri.directory(bRootPath); 33 Uri bRoot = new Uri.directory(bRootPath);
34 34
35 // Sanity check 35 // Sanity check
36 String relPath = 'pkg/front_end/tool/fasta/compile.dart'; 36 String relPath = 'pkg/front_end/tool/_fasta/compile.dart';
37 Uri aCompile = aRoot.resolve(relPath); 37 Uri aCompile = aRoot.resolve(relPath);
38 if (!new File(aCompile.toFilePath()).existsSync()) { 38 if (!new File(aCompile.toFilePath()).existsSync()) {
39 print('Failed to find $aCompile'); 39 print('Failed to find $aCompile');
40 exit(1); 40 exit(1);
41 } 41 }
42 Uri bCompile = bRoot.resolve(relPath); 42 Uri bCompile = bRoot.resolve(relPath);
43 if (!new File(bCompile.toFilePath()).existsSync()) { 43 if (!new File(bCompile.toFilePath()).existsSync()) {
44 print('Failed to find $bCompile'); 44 print('Failed to find $bCompile');
45 exit(1); 45 exit(1);
46 } 46 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 }, onError: (e) { 190 }, onError: (e) {
191 print('Error: $e'); 191 print('Error: $e');
192 stdOutSubscription.cancel(); 192 stdOutSubscription.cancel();
193 }); 193 });
194 int code = await process.exitCode; 194 int code = await process.exitCode;
195 if (code != 0) { 195 if (code != 0) {
196 throw 'fail: $code'; 196 throw 'fail: $code';
197 } 197 }
198 print(''); 198 print('');
199 } 199 }
OLDNEW
« no previous file with comments | « pkg/front_end/test/fasta/testing.json ('k') | pkg/front_end/tool/_fasta/analyzer_compile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698