70f2969b6c
Several tests need to access source files in the 'pkg' directory, and they use various mechanisms for finding it. This CL changes everything to use the same mechanism. Change-Id: I146a6d72ec05a20cf07451a83eada9fb8e71a966 Reviewed-on: https://dart-review.googlesource.com/5484 Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
22 lines
787 B
Dart
22 lines
787 B
Dart
// Copyright (c) 2015, 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.
|
|
|
|
library analyzer.tool.task_dependency_graph.check_test;
|
|
|
|
import 'package:front_end/src/codegen/tools.dart';
|
|
import 'package:front_end/src/testing/package_root.dart' as package_root;
|
|
import 'package:path/path.dart';
|
|
|
|
import 'generate.dart';
|
|
|
|
/**
|
|
* Check that the target file has been code generated. If it hasn't tell the
|
|
* user to run generate.dart.
|
|
*/
|
|
main() async {
|
|
String pkgPath = normalize(join(package_root.packageRoot, 'analyzer'));
|
|
await GeneratedContent.checkAll(pkgPath,
|
|
'tool/task_dependency_graph/generate.dart', <GeneratedContent>[target]);
|
|
}
|