dart-sdk/pkg/front_end/tool/incremental_perf_test.dart
Sigmund Cherem 3b73de2060 Rename 'driver' to 'default' in incremental_perf.dart
This just makes the name more appropriate since now that the default incremental
generator is not using kernel-driver altogether.

Change-Id: Ic7357dbb4eaad482f20249dd13ba3a49a39322d3
Reviewed-on: https://dart-review.googlesource.com/22160
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2017-11-20 18:03:56 +00:00

57 lines
1.7 KiB
Dart

// Copyright (c) 2017, 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 to ensure that incremental_perf.dart is running without errors.
import 'dart:io';
import 'package:front_end/src/compute_platform_binaries_location.dart'
show computePlatformBinariesLocation;
import 'incremental_perf.dart' as m;
main() async {
var sdkOutline = computePlatformBinariesLocation().resolve(
// TODO(sigmund): switch to `vm_outline.dill` (issue #29881).
"vm_platform.dill");
final ikgBenchmarks = Platform.script.resolve('../benchmarks/ikg/');
final helloEntry = ikgBenchmarks.resolve('hello.dart');
final helloEdits = ikgBenchmarks.resolve('hello.edits.json');
await m.main(['--sdk-summary', '$sdkOutline', '$helloEntry', '$helloEdits']);
await m.main([
'--sdk-summary',
'$sdkOutline',
'--mode=legacy',
'$helloEntry',
'$helloEdits'
]);
await m.main([
'--sdk-summary',
'$sdkOutline',
'--implementation=minimal',
'$helloEntry',
'$helloEdits'
]);
final dart2jsEntry = ikgBenchmarks.resolve('dart2js.dart');
final dart2jsEdits = ikgBenchmarks.resolve('dart2js.edits.json');
await m
.main(['--sdk-summary', '$sdkOutline', '$dart2jsEntry', '$dart2jsEdits']);
await m.main([
'--sdk-summary',
'$sdkOutline',
'--mode=legacy',
'--implementation=default',
'$dart2jsEntry',
'$dart2jsEdits'
]);
await m.main([
'--sdk-summary',
'$sdkOutline',
'--mode=legacy',
'--implementation=minimal',
'$dart2jsEntry',
'$dart2jsEdits'
]);
}