mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 09:10:10 +00:00
1197e15a7e
This CL enables the avoid_void_async lint in the CFE, makes the needed changes and adds the missing `await` (because the lint `unawaited_futures` doesn't react to void async methods). Change-Id: Iffc1f173badd3c2d48356ee02e81a9aed492ce5d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213481 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
69 lines
1.8 KiB
Dart
69 lines
1.8 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 show main;
|
|
|
|
Future<void> main() async {
|
|
var sdkOutline = computePlatformBinariesLocation(forceBuildDir: true).resolve(
|
|
// TODO(sigmund): switch to `vm_outline.dill` (issue #29881).
|
|
"vm_platform_strong.dill");
|
|
|
|
final ikgBenchmarks = Platform.script.resolve('../benchmarks/ikg/');
|
|
final helloEntry = ikgBenchmarks.resolve('hello.dart');
|
|
final helloEdits = ikgBenchmarks.resolve('hello.edits.json');
|
|
await m.main([
|
|
'--no-loop',
|
|
'--sdk-summary',
|
|
'$sdkOutline',
|
|
'$helloEntry',
|
|
'$helloEdits'
|
|
]);
|
|
await m.main([
|
|
'--no-loop',
|
|
'--sdk-summary',
|
|
'$sdkOutline',
|
|
'$helloEntry',
|
|
'$helloEdits'
|
|
]);
|
|
await m.main([
|
|
'--no-loop',
|
|
'--sdk-summary',
|
|
'$sdkOutline',
|
|
'--implementation=minimal',
|
|
'$helloEntry',
|
|
'$helloEdits'
|
|
]);
|
|
|
|
final dart2jsEntry = ikgBenchmarks.resolve('dart2js.dart');
|
|
final dart2jsEdits = ikgBenchmarks.resolve('dart2js.edits.json');
|
|
await m.main([
|
|
'--no-loop',
|
|
'--sdk-summary',
|
|
'$sdkOutline',
|
|
'$dart2jsEntry',
|
|
'$dart2jsEdits'
|
|
]);
|
|
await m.main([
|
|
'--no-loop',
|
|
'--sdk-summary',
|
|
'$sdkOutline',
|
|
'--implementation=default',
|
|
'$dart2jsEntry',
|
|
'$dart2jsEdits'
|
|
]);
|
|
await m.main([
|
|
'--no-loop',
|
|
'--sdk-summary',
|
|
'$sdkOutline',
|
|
'--implementation=minimal',
|
|
'$dart2jsEntry',
|
|
'$dart2jsEdits'
|
|
]);
|
|
}
|