@@ -172,38 +172,11 @@ const bindingTests = [
172
172
];
173
173
174
174
const registrantName = 'runtime_test_registrant.dart' ;
175
- const replicaName = 'runtime_test_registrant_dartonly_generated.dart' ;
176
-
177
- void warnIfRuntimeTestsAreOutdated () {
178
- final runtimeTests = join ('test' , 'generated_runtime_test.dart' );
179
- if (! File (runtimeTests).existsSync ()) {
180
- log.fatal ('Runtime test files not found. To run binding '
181
- 'runtime tests, please generate them by running '
182
- '`dart run tool/generate_runtime_tests.dart`' );
183
- }
184
- const regenInstr = 'Please run `dart run tool/generate_runtime_tests.dart` '
185
- 'and try again.' ;
186
- for (var testName in bindingTests) {
187
- final registrant = File (join ('test' , testName, registrantName));
188
- final replica = File (join ('test' , testName, replicaName));
189
- if (! replica.existsSync ()) {
190
- log.fatal (
191
- 'One or more generated runtime tests do not exist. $regenInstr ' ,
192
- );
193
- }
194
- if (replica.lastModifiedSync ().isBefore (registrant.lastModifiedSync ())) {
195
- log.fatal (
196
- 'One or more generated runtime tests are not up-to-date. $regenInstr ' ,
197
- );
198
- }
199
- }
200
- }
201
175
202
176
/// Verifies if locally built dependencies (currently `ApiSummarizer` )
203
177
/// are up-to-date.
204
178
Future <void > checkLocallyBuiltDependencies () async {
205
179
await failIfSummarizerNotBuilt ();
206
- warnIfRuntimeTestsAreOutdated ();
207
180
}
208
181
209
182
void generateAndCompare (
0 commit comments