| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |