Skip to content

Commit 52294b4

Browse files
athomascommit-bot@chromium.org
authored andcommitted
[testing] Remove self-check runtime
This config hasn't been running at least since Dart 2.0. This basically reverts https://codereview.chromium.org/2549793002. test.py no longer supports these options: * --skip-compilation (skipped compilation commands) * --runtime=self-check (ran the self-check tests) Change-Id: I135c8d488a9319ee3482131cd22eb7cd3dfa3f25 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217003 Reviewed-by: Jens Johansen <[email protected]> Commit-Queue: Alexander Thomas <[email protected]>
1 parent 4031e6a commit 52294b4

13 files changed

+2
-387
lines changed

pkg/kernel/test/class_hierarchy_self_check.dart

Lines changed: 0 additions & 157 deletions
This file was deleted.

pkg/kernel/test/class_hierarchy_test_disabled.dart

Lines changed: 0 additions & 14 deletions
This file was deleted.

pkg/kernel/test/round_trip.dart

Lines changed: 0 additions & 55 deletions
This file was deleted.

pkg/kernel/test/round_trip_self_check.dart

Lines changed: 0 additions & 14 deletions
This file was deleted.

pkg/kernel/test/self_check_util.dart

Lines changed: 0 additions & 36 deletions
This file was deleted.

pkg/kernel/test/verify_self_check.dart

Lines changed: 0 additions & 14 deletions
This file was deleted.

pkg/smith/lib/configuration.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ class Compiler extends NamedEnum {
688688
return const [Runtime.none];
689689
case Compiler.appJitk:
690690
case Compiler.dartk:
691-
return const [Runtime.vm, Runtime.selfCheck];
691+
return const [Runtime.vm];
692692
case Compiler.dartkp:
693693
return const [Runtime.dartPrecompiled];
694694
case Compiler.specParser:
@@ -805,7 +805,6 @@ class Runtime extends NamedEnum {
805805
static const ie11 = Runtime._('ie11');
806806
static const edge = Runtime._('edge');
807807
static const chromeOnAndroid = Runtime._('chromeOnAndroid');
808-
static const selfCheck = Runtime._('self_check');
809808
static const none = Runtime._('none');
810809

811810
static final List<String> names = _all.keys.toList();
@@ -824,7 +823,6 @@ class Runtime extends NamedEnum {
824823
ie11,
825824
edge,
826825
chromeOnAndroid,
827-
selfCheck,
828826
none
829827
], key: (runtime) => (runtime as Runtime).name);
830828

@@ -881,9 +879,6 @@ class Runtime extends NamedEnum {
881879
case chromeOnAndroid:
882880
return Compiler.dart2js;
883881

884-
case selfCheck:
885-
return Compiler.dartk;
886-
887882
case none:
888883
// If we aren't running it, we probably just want to analyze it.
889884
return Compiler.dart2analyzer;

pkg/test_runner/lib/src/command.dart

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -499,39 +499,6 @@ class VMCommand extends ProcessCommand {
499499
VMCommandOutput(this, exitCode, timedOut, stdout, stderr, time, pid);
500500
}
501501

502-
class VMBatchCommand extends ProcessCommand implements VMCommand {
503-
final String dartFile;
504-
final bool checked;
505-
506-
VMBatchCommand(String executable, this.dartFile, List<String> arguments,
507-
Map<String, String> environmentOverrides,
508-
{this.checked = true, int index = 0})
509-
: super('vm-batch', executable, arguments, environmentOverrides, null,
510-
index);
511-
512-
VMBatchCommand indexedCopy(int index) =>
513-
VMBatchCommand(executable, dartFile, arguments, environmentOverrides,
514-
checked: checked, index: index);
515-
516-
@override
517-
List<String> get batchArguments =>
518-
checked ? ['--checked', dartFile] : [dartFile];
519-
520-
@override
521-
bool _equal(VMBatchCommand other) {
522-
return super._equal(other) &&
523-
dartFile == other.dartFile &&
524-
checked == other.checked;
525-
}
526-
527-
@override
528-
void _buildHashCode(HashCodeBuilder builder) {
529-
super._buildHashCode(builder);
530-
builder.addJson(dartFile);
531-
builder.addJson(checked);
532-
}
533-
}
534-
535502
// Run a VM test under RR, and copy the trace if it crashes. Using a helper
536503
// script like the precompiler does not work because the RR traces are large
537504
// and we must diligently erase them for non-crashes even if the test times

pkg/test_runner/lib/src/configuration.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class TestConfiguration {
4444
this.reportFailures,
4545
this.reportInJson,
4646
this.resetBrowser,
47-
this.skipCompilation,
4847
this.writeDebugLog,
4948
this.writeResults,
5049
this.writeLogs,
@@ -97,7 +96,6 @@ class TestConfiguration {
9796
final bool reportFailures;
9897
final bool reportInJson;
9998
final bool resetBrowser;
100-
final bool skipCompilation;
10199
final bool writeDebugLog;
102100
final bool writeResults;
103101
final bool writeLogs;

0 commit comments

Comments
 (0)