7c5445074b
- Move DDC modular pipeline to helper library. - Add null safety flag to `SourceToSummaryDillStep`. - Add null safety and canary mode flags to `DDCStep`. - Add new suite that runs in canary mode without sound null safety. Change-Id: I3b5450c2f07913a8bdc9a210e16d26fe162ff1c0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279478 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
27 lines
933 B
Dart
27 lines
933 B
Dart
// Copyright (c) 2019, 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.
|
|
|
|
/// Test the modular compilation pipeline of ddc.
|
|
///
|
|
/// This is a shell that runs multiple tests, one per folder under `data/`.
|
|
import 'package:modular_test/src/io_pipeline.dart';
|
|
import 'package:modular_test/src/runner.dart';
|
|
|
|
import 'modular_helpers.dart';
|
|
|
|
void main(List<String> args) async {
|
|
final options = Options.parse(args);
|
|
final soundNullSafety = true;
|
|
await resolveScripts(options);
|
|
await runSuite(
|
|
sdkRoot.resolve('tests/modular/'),
|
|
'tests/modular',
|
|
options,
|
|
IOPipeline([
|
|
SourceToSummaryDillStep(soundNullSafety: soundNullSafety),
|
|
DDCStep(soundNullSafety: soundNullSafety, canaryFeatures: false),
|
|
RunD8(),
|
|
], cacheSharedModules: true));
|
|
}
|