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.
|
|
|
|
|
2017-10-19 06:38:35 +00:00
|
|
|
import 'dart:async';
|
2017-09-29 05:17:41 +00:00
|
|
|
import 'dart:io';
|
2017-10-17 10:48:40 +00:00
|
|
|
import 'package:front_end/src/compute_platform_binaries_location.dart'
|
|
|
|
show computePlatformBinariesLocation;
|
2017-09-29 05:17:41 +00:00
|
|
|
import 'incremental_perf.dart' as m;
|
|
|
|
|
|
|
|
main() async {
|
2017-10-17 10:48:40 +00:00
|
|
|
var sdkOutline = computePlatformBinariesLocation().resolve(
|
|
|
|
// TODO(sigmund): switch to `vm_outline.dill` (issue #29881).
|
|
|
|
"vm_platform.dill");
|
2017-10-04 19:25:10 +00:00
|
|
|
|
2017-10-19 06:38:35 +00:00
|
|
|
final ikgBenchmarks = Platform.script.resolve('../benchmarks/ikg/');
|
|
|
|
await runExample(sdkOutline, ikgBenchmarks.resolve('hello.dart'),
|
|
|
|
ikgBenchmarks.resolve('hello.edits.json'));
|
|
|
|
await runExample(sdkOutline, ikgBenchmarks.resolve('dart2js.dart'),
|
|
|
|
ikgBenchmarks.resolve('dart2js.edits.json'));
|
2017-10-04 19:25:10 +00:00
|
|
|
}
|
|
|
|
|
2017-10-19 06:38:35 +00:00
|
|
|
Future runExample(Uri sdkOutline, Uri entryUri, Uri jsonUri) async {
|
2017-10-04 19:25:10 +00:00
|
|
|
await m.main(['--sdk-summary', '$sdkOutline', '$entryUri', '$jsonUri']);
|
|
|
|
}
|