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

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

Issue 9314032: Fix VM test suite after path changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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 #library("test_suite"); 5 #library("test_suite");
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("status_file_parser.dart"); 8 #import("status_file_parser.dart");
9 #import("test_runner.dart"); 9 #import("test_runner.dart");
10 #import("multitest.dart"); 10 #import("multitest.dart");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 replyTo.send(""); 47 replyTo.send("");
48 }; 48 };
49 port.close(); 49 port.close();
50 }); 50 });
51 } 51 }
52 } 52 }
53 53
54 54
55 class CCTestSuite implements TestSuite { 55 class CCTestSuite implements TestSuite {
56 Map configuration; 56 Map configuration;
57 String suiteName; 57 final String suiteName;
58 String runnerPath; 58 String runnerPath;
59 final String dartDir;
59 List<String> statusFilePaths; 60 List<String> statusFilePaths;
60 Function doTest; 61 Function doTest;
61 Function doDone; 62 Function doDone;
62 ReceivePort receiveTestName; 63 ReceivePort receiveTestName;
63 TestExpectations testExpectations; 64 TestExpectations testExpectations;
64 65
65 CCTestSuite(Map this.configuration, 66 CCTestSuite(Map this.configuration,
66 String this.suiteName, 67 String this.suiteName,
67 String runnerName, 68 String runnerName,
68 List<String> this.statusFilePaths) { 69 List<String> this.statusFilePaths)
70 : dartDir = TestUtils.dartDir() {
69 runnerPath = TestUtils.buildDir(configuration) + '/' + runnerName; 71 runnerPath = TestUtils.buildDir(configuration) + '/' + runnerName;
72
70 } 73 }
71 74
72 bool complexStatusMatching() => false; 75 bool complexStatusMatching() => false;
73 76
74 void testNameHandler(String testName, ignore) { 77 void testNameHandler(String testName, ignore) {
75 if (testName == "") { 78 if (testName == "") {
76 receiveTestName.close(); 79 receiveTestName.close();
77 doDone(true); 80 doDone(true);
78 } else { 81 } else {
79 // Only run the tests that match the pattern. Use the name 82 // Only run the tests that match the pattern. Use the name
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 port.send(runnerPath, receiveTestName.toSendPort()); 121 port.send(runnerPath, receiveTestName.toSendPort());
119 receiveTestName.receive(testNameHandler); 122 receiveTestName.receive(testNameHandler);
120 }); 123 });
121 } 124 }
122 } 125 }
123 126
124 testExpectations = 127 testExpectations =
125 new TestExpectations(complexMatching: complexStatusMatching()); 128 new TestExpectations(complexMatching: complexStatusMatching());
126 for (var statusFilePath in statusFilePaths) { 129 for (var statusFilePath in statusFilePaths) {
127 ReadTestExpectationsInto(testExpectations, 130 ReadTestExpectationsInto(testExpectations,
128 statusFilePath, 131 '$dartDir/$statusFilePath',
129 configuration, 132 configuration,
130 statusFileRead); 133 statusFileRead);
131 } 134 }
132 } 135 }
133 136
134 void completeHandler(TestCase testCase) { 137 void completeHandler(TestCase testCase) {
135 } 138 }
136 } 139 }
137 140
138 141
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 * $noCrash tests are expected to be flaky but not crash 1060 * $noCrash tests are expected to be flaky but not crash
1058 * $pass tests are expected to pass 1061 * $pass tests are expected to pass
1059 * $failOk tests are expected to fail that we won't fix 1062 * $failOk tests are expected to fail that we won't fix
1060 * $fail tests are expected to fail that we should fix 1063 * $fail tests are expected to fail that we should fix
1061 * $crash tests are expected to crash that we should fix 1064 * $crash tests are expected to crash that we should fix
1062 * $timeout tests are allowed to timeout 1065 * $timeout tests are allowed to timeout
1063 """; 1066 """;
1064 print(report); 1067 print(report);
1065 } 1068 }
1066 } 1069 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698