Files
sdk/pkg/compiler/test/rti/show.dart
T
Stephen Adams 60ec2b31e6 [dart2js] More sharding of rti_need and rti_emission tests
Both are now sharded 4-ways, which should reduce the individual shards
to about 2 minutes.

Change-Id: I5e8a718a0b5c58b0850015bee76f10df26aee84d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151141
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2020-06-15 16:32:25 +00:00

30 lines
915 B
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.
// @dart = 2.7
/// Helper program that shows the rti data on a dart program.
import 'package:args/args.dart';
import '../equivalence/id_equivalence_helper.dart';
import '../equivalence/show_helper.dart';
import 'rti_emission_test_helper.dart';
import 'rti_need_test_helper.dart';
main(List<String> args) async {
ArgParser argParser = createArgParser();
argParser.addFlag('need', defaultsTo: true);
argParser.addFlag('emission');
ArgResults results = argParser.parse(args);
DataComputer dataComputer;
if (results['emission']) {
dataComputer = const RtiEmissionDataComputer();
} else {
dataComputer = const RtiNeedDataComputer();
}
await show(results, dataComputer);
}