2017-09-29 05:17:41 +00:00
|
|
|
// 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';
|
2017-10-17 10:48:40 +00:00
|
|
|
import 'package:front_end/src/compute_platform_binaries_location.dart'
|
|
|
|
show computePlatformBinariesLocation;
|
2018-11-14 10:36:21 +00:00
|
|
|
import 'incremental_perf.dart' as m show main;
|
2017-09-29 05:17:41 +00:00
|
|
|
|
2021-09-23 11:58:18 +00:00
|
|
|
Future<void> main() async {
|
2018-10-12 12:42:57 +00:00
|
|
|
var sdkOutline = computePlatformBinariesLocation(forceBuildDir: true).resolve(
|
2017-10-17 10:48:40 +00:00
|
|
|
// TODO(sigmund): switch to `vm_outline.dill` (issue #29881).
|
2019-06-24 13:45:52 +00:00
|
|
|
"vm_platform_strong.dill");
|
2017-10-04 19:25:10 +00:00
|
|
|
|
2017-10-19 06:38:35 +00:00
|
|
|
final ikgBenchmarks = Platform.script.resolve('../benchmarks/ikg/');
|
2017-11-16 03:42:23 +00:00
|
|
|
final helloEntry = ikgBenchmarks.resolve('hello.dart');
|
|
|
|
final helloEdits = ikgBenchmarks.resolve('hello.edits.json');
|
|
|
|
await m.main([
|
2017-12-19 08:52:52 +00:00
|
|
|
'--no-loop',
|
|
|
|
'--sdk-summary',
|
|
|
|
'$sdkOutline',
|
|
|
|
'$helloEntry',
|
|
|
|
'$helloEdits'
|
|
|
|
]);
|
|
|
|
await m.main([
|
|
|
|
'--no-loop',
|
2017-11-16 03:42:23 +00:00
|
|
|
'--sdk-summary',
|
|
|
|
'$sdkOutline',
|
|
|
|
'$helloEntry',
|
|
|
|
'$helloEdits'
|
|
|
|
]);
|
|
|
|
await m.main([
|
2017-12-19 08:52:52 +00:00
|
|
|
'--no-loop',
|
2017-11-16 03:42:23 +00:00
|
|
|
'--sdk-summary',
|
|
|
|
'$sdkOutline',
|
|
|
|
'--implementation=minimal',
|
|
|
|
'$helloEntry',
|
|
|
|
'$helloEdits'
|
|
|
|
]);
|
2017-10-04 19:25:10 +00:00
|
|
|
|
2017-11-16 03:42:23 +00:00
|
|
|
final dart2jsEntry = ikgBenchmarks.resolve('dart2js.dart');
|
|
|
|
final dart2jsEdits = ikgBenchmarks.resolve('dart2js.edits.json');
|
|
|
|
await m.main([
|
2017-12-19 08:52:52 +00:00
|
|
|
'--no-loop',
|
|
|
|
'--sdk-summary',
|
|
|
|
'$sdkOutline',
|
|
|
|
'$dart2jsEntry',
|
|
|
|
'$dart2jsEdits'
|
|
|
|
]);
|
|
|
|
await m.main([
|
|
|
|
'--no-loop',
|
2017-11-16 03:42:23 +00:00
|
|
|
'--sdk-summary',
|
|
|
|
'$sdkOutline',
|
2017-11-20 18:03:56 +00:00
|
|
|
'--implementation=default',
|
2017-11-16 03:42:23 +00:00
|
|
|
'$dart2jsEntry',
|
|
|
|
'$dart2jsEdits'
|
|
|
|
]);
|
|
|
|
await m.main([
|
2017-12-19 08:52:52 +00:00
|
|
|
'--no-loop',
|
2017-11-16 03:42:23 +00:00
|
|
|
'--sdk-summary',
|
|
|
|
'$sdkOutline',
|
|
|
|
'--implementation=minimal',
|
|
|
|
'$dart2jsEntry',
|
|
|
|
'$dart2jsEdits'
|
|
|
|
]);
|
2017-10-04 19:25:10 +00:00
|
|
|
}
|