From cb6b5351086caf01b5a34bed1c949365e0399f8c Mon Sep 17 00:00:00 2001 From: Robert Nystrom Date: Thu, 6 Feb 2020 19:27:12 +0000 Subject: [PATCH] Create a package_config.json file for the SDK tests. This (assuming it works right) tells Dart implementations to treat all of the libraries in the legacy test directories as opting out of NNBD. Change-Id: I36e5cd966921f759306f5b4bb50f18ae6049d4db Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134409 Reviewed-by: Konstantin Shcheglov Reviewed-by: Lasse R.H. Nielsen Reviewed-by: Paul Berry Commit-Queue: Bob Nystrom Auto-Submit: Bob Nystrom --- tests/.dart_tool/package_config.json | 167 +++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 tests/.dart_tool/package_config.json diff --git a/tests/.dart_tool/package_config.json b/tests/.dart_tool/package_config.json new file mode 100644 index 00000000000..6820d2c909f --- /dev/null +++ b/tests/.dart_tool/package_config.json @@ -0,0 +1,167 @@ +{ + "version": 2, + "comment": [ + "This file tells each Dart implementation to treat the test subdirectories", + "as 'packages' so that we can set the default language version for each", + "directory. That in turn lets us treat the legacy tests as opted out of", + "NNBD without having to put a version comment in every single file." + ], + "packages": [ + { + "name": "co19_2", + "rootUri": "../co19_2/", + "languageVersion": "2.6" + }, + { + "name": "corelib_2", + "rootUri": "../corelib_2/", + "languageVersion": "2.6" + }, + { + "name": "ffi_2", + "rootUri": "../ffi_2/", + "languageVersion": "2.6" + }, + { + "name": "language_2", + "rootUri": "../language_2/", + "languageVersion": "2.6" + }, + { + "name": "lib_2", + "rootUri": "../lib_2/", + "languageVersion": "2.6" + }, + { + "name": "standalone_2", + "rootUri": "../standalone_2/", + "languageVersion": "2.6" + }, + + { + "name": "_fe_analyzer_shared", + "rootUri": "../../pkg/_fe_analyzer_shared/lib", + "language": "2.6" + }, + { + "name": "args", + "rootUri": "../../third_party/pkg/args/lib", + "language": "2.6" + }, + { + "name": "async_helper", + "rootUri": "../../pkg/async_helper/lib", + "language": "2.6" + }, + { + "name": "collection", + "rootUri": "../../third_party/pkg/collection/lib", + "language": "2.6" + }, + { + "name": "compiler", + "rootUri": "../../pkg/compiler/lib", + "language": "2.6" + }, + { + "name": "convert", + "rootUri": "../../third_party/pkg/convert/lib", + "language": "2.6" + }, + { + "name": "crypto", + "rootUri": "../../third_party/pkg/crypto/lib", + "language": "2.6" + }, + { + "name": "dart2js_info", + "rootUri": "../../third_party/pkg/dart2js_info/lib", + "language": "2.6" + }, + { + "name": "dart2js_tools", + "rootUri": "../../pkg/dart2js_tools/lib", + "language": "2.6" + }, + { + "name": "dart_internal", + "rootUri": "../../pkg/dart_internal/lib", + "language": "2.6" + }, + { + "name": "expect", + "rootUri": "../../pkg/expect/lib", + "language": "2.6" + }, + { + "name": "ffi", + "rootUri": "../../third_party/pkg/ffi/lib", + "language": "2.6" + }, + { + "name": "front_end", + "rootUri": "../../pkg/front_end/lib", + "language": "2.6" + }, + { + "name": "http", + "rootUri": "../../third_party/pkg/http/lib", + "language": "2.6" + }, + { + "name": "js", + "rootUri": "../../pkg/js/lib", + "language": "2.6" + }, + { + "name": "js_ast", + "rootUri": "../../pkg/js_ast/lib", + "language": "2.6" + }, + { + "name": "kernel", + "rootUri": "../../pkg/kernel/lib", + "language": "2.6" + }, + { + "name": "meta", + "rootUri": "../../pkg/meta/lib", + "language": "2.6" + }, + { + "name": "native_stack_traces", + "rootUri": "../../pkg/native_stack_traces/lib", + "language": "2.6" + }, + { + "name": "path", + "rootUri": "../../third_party/pkg/path/lib", + "language": "2.6" + }, + { + "name": "source_maps", + "rootUri": "../../third_party/pkg/source_maps/lib", + "language": "2.6" + }, + { + "name": "sourcemap_testing", + "rootUri": "../../pkg/sourcemap_testing/lib", + "language": "2.6" + }, + { + "name": "test", + "rootUri": "../../third_party/pkg/test/lib", + "language": "2.6" + }, + { + "name": "testing", + "rootUri": "../../pkg/testing/lib", + "language": "2.6" + }, + { + "name": "unittest", + "rootUri": "../../pkg/unittest/lib", + "language": "2.6" + } + ] +}