diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2022-07-14 12:59:48 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-08-17 16:25:36 -0400 |
| commit | 6843f56f6b8e71e75c287de31686913eea5e4a44 (patch) | |
| tree | a92e933d88d48dd2bfd4a1fc2bb652296f053332 /test cases | |
| parent | 2801ead6d3a144f3cf7ae03f61bb463c7aeac0a9 (diff) | |
| download | meson-6843f56f6b8e71e75c287de31686913eea5e4a44.tar.gz | |
modules: use module level information about new and deprecation
Instead of using FeatureNew/FeatureDeprecated in the module.
The goal here is to be able to handle information about modules in a
single place, instead of having to handle it separately. Each module
simply defines some metadata, and then the interpreter handles the rest.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/common/253 module warnings/meson.build | 4 | ||||
| -rw-r--r-- | test cases/common/253 module warnings/test.json | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test cases/common/253 module warnings/meson.build b/test cases/common/253 module warnings/meson.build new file mode 100644 index 000000000..543a700dc --- /dev/null +++ b/test cases/common/253 module warnings/meson.build @@ -0,0 +1,4 @@ +project('module warnings', meson_version : '>= 0.56') + +import('python3') # deprecated module +import('java') # new module diff --git a/test cases/common/253 module warnings/test.json b/test cases/common/253 module warnings/test.json new file mode 100644 index 000000000..8833da2dc --- /dev/null +++ b/test cases/common/253 module warnings/test.json @@ -0,0 +1,10 @@ +{ + "stdout": [ + { + "line": "test cases/common/253 module warnings/meson.build:3: WARNING: Project targets '>= 0.56' but uses feature deprecated since '0.48.0': module python3." + }, + { + "line": "test cases/common/253 module warnings/meson.build:4: WARNING: Project targets '>= 0.56' but uses feature introduced in '0.60.0': module java." + } + ] +} |
