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

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 9479034: Update test.dart for detection output of machine formatted errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update test.dart for detection output of machine formatted errors Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 } 705 }
706 706
707 void completeHandler(TestCase testCase) { 707 void completeHandler(TestCase testCase) {
708 } 708 }
709 709
710 List<List<String>> argumentListsFromFile(String filename, 710 List<List<String>> argumentListsFromFile(String filename,
711 Map optionsFromFile, 711 Map optionsFromFile,
712 bool enableFatalTypeErrors) { 712 bool enableFatalTypeErrors) {
713 List args = TestUtils.standardOptions(configuration); 713 List args = TestUtils.standardOptions(configuration);
714 args.addAll(additionalOptions(filename)); 714 args.addAll(additionalOptions(filename));
715 if (enableFatalTypeErrors && configuration['component'] == 'dartc') { 715 if (configuration['component'] == 'dartc') {
716 args.add('--fatal-type-errors'); 716 args.add('--error_format');
717 args.add('machine');
718 if (enableFatalTypeErrors) {
719 args.add('--fatal-type-errors');
720 }
717 } 721 }
718 722
719 bool isMultitest = optionsFromFile["isMultitest"]; 723 bool isMultitest = optionsFromFile["isMultitest"];
720 List<String> dartOptions = optionsFromFile["dartOptions"]; 724 List<String> dartOptions = optionsFromFile["dartOptions"];
721 List<List<String>> vmOptionsList = optionsFromFile["vmOptions"]; 725 List<List<String>> vmOptionsList = optionsFromFile["vmOptions"];
722 Expect.isTrue(!isMultitest || dartOptions == null); 726 Expect.isTrue(!isMultitest || dartOptions == null);
723 if (dartOptions == null) { 727 if (dartOptions == null) {
724 args.add(filename); 728 args.add(filename);
725 } else { 729 } else {
726 var filename = dartOptions[0]; 730 var filename = dartOptions[0];
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 * $noCrash tests are expected to be flaky but not crash 1143 * $noCrash tests are expected to be flaky but not crash
1140 * $pass tests are expected to pass 1144 * $pass tests are expected to pass
1141 * $failOk tests are expected to fail that we won't fix 1145 * $failOk tests are expected to fail that we won't fix
1142 * $fail tests are expected to fail that we should fix 1146 * $fail tests are expected to fail that we should fix
1143 * $crash tests are expected to crash that we should fix 1147 * $crash tests are expected to crash that we should fix
1144 * $timeout tests are allowed to timeout 1148 * $timeout tests are allowed to timeout
1145 """; 1149 """;
1146 print(report); 1150 print(report);
1147 } 1151 }
1148 } 1152 }
OLDNEW
« tools/testing/dart/test_runner.dart ('K') | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698