diff --git a/crates/moonbuild/src/bench.rs b/crates/moonbuild/src/bench.rs index 2b9af9153..af61a269d 100644 --- a/crates/moonbuild/src/bench.rs +++ b/crates/moonbuild/src/bench.rs @@ -105,6 +105,7 @@ pub fn f() -> Unit {{ }, wbtest_import: None, test_import: None, + test_import_all: None, link: None, warn_list: None, alert_list: None, @@ -190,6 +191,7 @@ pub fn write(config: &Config, base_dir: &Path) { }, wbtest_import: None, test_import: None, + test_import_all: None, link: None, warn_list: None, alert_list: None, diff --git a/crates/moonbuild/src/new.rs b/crates/moonbuild/src/new.rs index 1aa09ab3d..1e6d14fa6 100644 --- a/crates/moonbuild/src/new.rs +++ b/crates/moonbuild/src/new.rs @@ -67,6 +67,7 @@ pub fn moon_new_exec( ])), wbtest_import: None, test_import: None, + test_import_all: None, link: None, warn_list: None, alert_list: None, @@ -213,6 +214,7 @@ fn common( import: None, wbtest_import: None, test_import: None, + test_import_all: None, link: None, warn_list: None, alert_list: None, diff --git a/crates/moonbuild/template/pkg.schema.json b/crates/moonbuild/template/pkg.schema.json index e78734e9d..20b293abe 100644 --- a/crates/moonbuild/template/pkg.schema.json +++ b/crates/moonbuild/template/pkg.schema.json @@ -76,6 +76,13 @@ } ] }, + "test-import-all": { + "description": "Whether to import all definitions from the package being tested", + "type": [ + "boolean", + "null" + ] + }, "warn-list": { "description": "Warn list setting of the package", "type": [ diff --git a/crates/moonutil/src/package.rs b/crates/moonutil/src/package.rs index a684f69d0..49d99ae14 100644 --- a/crates/moonutil/src/package.rs +++ b/crates/moonutil/src/package.rs @@ -192,6 +192,12 @@ pub struct MoonPkgJSON { #[schemars(rename = "test-import")] pub test_import: Option, + /// Whether to import all definitions from the package being tested + #[serde(skip_serializing_if = "Option::is_none")] + #[serde(alias = "test-import-all")] + #[schemars(rename = "test-import-all")] + pub test_import_all: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub link: Option, diff --git a/docs/manual-zh/src/source/pkg_json_schema.html b/docs/manual-zh/src/source/pkg_json_schema.html index 1e79bc344..f2a4b73e4 100644 --- a/docs/manual-zh/src/source/pkg_json_schema.html +++ b/docs/manual-zh/src/source/pkg_json_schema.html @@ -114,6 +114,13 @@ } ] }, + "test-import-all": { + "description": "Whether to import all definitions from the package being tested", + "type": [ + "boolean", + "null" + ] + }, "warn-list": { "description": "Warn list setting of the package", "type": [ diff --git a/docs/manual/src/source/pkg_json_schema.html b/docs/manual/src/source/pkg_json_schema.html index 1e79bc344..f2a4b73e4 100644 --- a/docs/manual/src/source/pkg_json_schema.html +++ b/docs/manual/src/source/pkg_json_schema.html @@ -114,6 +114,13 @@ } ] }, + "test-import-all": { + "description": "Whether to import all definitions from the package being tested", + "type": [ + "boolean", + "null" + ] + }, "warn-list": { "description": "Warn list setting of the package", "type": [