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

Side by Side Diff: pkg/kernel/test/batch_consistency.dart

Issue 2842643002: Move dartk to the tool folder (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library kernel.batch_consistency; 4 library kernel.batch_consistency;
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:io'; 7 import 'dart:io';
8 import '../bin/dartk.dart' as dartk; 8 import '../tool/dartk.dart' as dartk;
9 import '../bin/batch_util.dart'; 9 import '../bin/batch_util.dart';
10 import 'package:path/path.dart' as pathlib; 10 import 'package:path/path.dart' as pathlib;
11 import 'package:test/test.dart'; 11 import 'package:test/test.dart';
12 12
13 String usage = """ 13 String usage = """
14 Usage: batch_consistency [options] -- files... 14 Usage: batch_consistency [options] -- files...
15 15
16 Run dartk on the given files, both separately and in a batch, and check that 16 Run dartk on the given files, both separately and in a batch, and check that
17 the output is identical for the two modes. 17 the output is identical for the two modes.
18 """; 18 """;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 if (results[0] == CompilerOutcome.Fail) { 78 if (results[0] == CompilerOutcome.Fail) {
79 failed = true; 79 failed = true;
80 } 80 }
81 if (!failed && !await areFilesEqual(outputFiles[0], outputFiles[1])) { 81 if (!failed && !await areFilesEqual(outputFiles[0], outputFiles[1])) {
82 fail('Batch mode output differs for $file'); 82 fail('Batch mode output differs for $file');
83 } 83 }
84 }); 84 });
85 } 85 }
86 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698