fa6bfb196b
`dart:test` compiles a wrapper file that it places _outside_ all packages defined in the `package_config.json`. Technically, the `package_config.json` is only used to resolve the imports that are _not_ the entry-points. So, it should be valid to pass an entry-point outside the `package_config.json`. However, we do need to specify what root-package to use for running hooks. So, add a CLI option for this. See discussion on https://github.com/dart-lang/test/pull/2660 Change-Id: I381a61490e69eb5757126b017f07779917837851 Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-win-release-arm64-try,pkg-mac-release-try,pkg-win-release-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/508122 Reviewed-by: Ben Konyi <bkonyi@google.com> Reviewed-by: Jake Macdonald <jakemac@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>