Files
sdk/pkg/compiler/test/serialization/on_disk_split_test.dart
Mayank Patke 0c55c7e573 Remove unsound web configurations from test matrix.
This CL also removes references to unsound .dill files from the test
matrix and other build scripts and disables some of the option handling
that would lead to requiring unsound .dill files.

Change-Id: I89f701f8f5e1168bf974b5b44bfbafd5a39954fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/412401
Reviewed-by: Nate Biggs <natebiggs@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2025-02-26 15:57:55 -08:00

51 lines
1.7 KiB
Dart

// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:io';
import 'package:expect/async_helper.dart';
import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/dart2js.dart';
import 'package:compiler/src/util/memory_compiler.dart';
main(List<String> args) {
asyncTest(() async {
Directory dir = await Directory.systemTemp.createTemp('on_disk');
Uri dillUri = dir.uri.resolve('out.dill');
Uri closedWorldUri = dir.uri.resolve('world.data');
Uri globalInferenceUri = dir.uri.resolve('global.data');
Uri outUri = dir.uri.resolve('out.js');
var commonArgs = [
Flags.verbose,
'--libraries-spec=$sdkLibrariesSpecificationUri',
'${Flags.closedWorldUri}=$closedWorldUri',
'${Flags.globalInferenceUri}=$globalInferenceUri',
];
await internalMain(
[
'pkg/compiler/test/codesize/swarm/swarm.dart',
'${Flags.stage}=cfe',
'--out=${dillUri}',
] +
commonArgs,
);
await internalMain(
[
'pkg/compiler/test/codesize/swarm/swarm.dart',
'${Flags.inputDill}=$dillUri',
'${Flags.stage}=closed-world',
] +
commonArgs,
);
await internalMain(
['$dillUri', '${Flags.stage}=global-inference', '--out=${outUri}'] +
commonArgs,
);
await internalMain(
['$dillUri', '${Flags.stage}=codegen-emit-js', '--out=${outUri}'] +
commonArgs,
);
await dir.delete(recursive: true);
});
}