diff options
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 | 3 | ||||
-rw-r--r-- | test cases/keyval/1 basic/meson.build | 2 | ||||
-rw-r--r-- | test cases/keyval/1 basic/test.json | 2 | ||||
-rw-r--r-- | test cases/warning/7 module without unstable/meson.build | 3 | ||||
-rw-r--r-- | test cases/warning/7 module without unstable/test.json | 7 |
6 files changed, 19 insertions, 2 deletions
diff --git a/test cases/common/253 module warnings/meson.build b/test cases/common/253 module warnings/meson.build index 543a700..8397930 100644 --- a/test cases/common/253 module warnings/meson.build +++ b/test cases/common/253 module warnings/meson.build @@ -2,3 +2,7 @@ project('module warnings', meson_version : '>= 0.56') import('python3') # deprecated module import('java') # new module +import('unstable-keyval') # module that has been stabilized, import with unstable- + +ice = import('icestorm', required : false) +assert(not ice.found(), 'unstable-icestorm module should not be importable as `simd`') diff --git a/test cases/common/253 module warnings/test.json b/test cases/common/253 module warnings/test.json index 8833da2..ec861cc 100644 --- a/test cases/common/253 module warnings/test.json +++ b/test cases/common/253 module warnings/test.json @@ -5,6 +5,9 @@ }, { "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." + }, + { + "line": "test cases/common/253 module warnings/meson.build:5: WARNING: Project targets '>= 0.56' but uses feature deprecated since '0.56.0': module keyval has been stabilized. drop \"unstable-\" prefix from the module name" } ] } diff --git a/test cases/keyval/1 basic/meson.build b/test cases/keyval/1 basic/meson.build index 4207b8e..a6e023e 100644 --- a/test cases/keyval/1 basic/meson.build +++ b/test cases/keyval/1 basic/meson.build @@ -1,4 +1,4 @@ -project('keyval basic test') +project('keyval basic test', meson_version : '>= 0.55') k = import('keyval') conf = k.load('.config') diff --git a/test cases/keyval/1 basic/test.json b/test cases/keyval/1 basic/test.json index dbdc5af..1f8fd9b 100644 --- a/test cases/keyval/1 basic/test.json +++ b/test cases/keyval/1 basic/test.json @@ -1,7 +1,7 @@ { "stdout": [ { - "line": "WARNING: Module unstable-keyval is now stable, please use the keyval module instead." + "line": "test cases/keyval/1 basic/meson.build:3: WARNING: Project targets '>= 0.55' but uses feature introduced in '0.56.0': module keyval as stable module. Consider either adding \"unstable-\" to the module name, or updating the meson required version to \">= 0.56.0\"" } ] } diff --git a/test cases/warning/7 module without unstable/meson.build b/test cases/warning/7 module without unstable/meson.build new file mode 100644 index 0000000..409a236 --- /dev/null +++ b/test cases/warning/7 module without unstable/meson.build @@ -0,0 +1,3 @@ +project('module import without unstable', meson_version : '>= 0.55') + +import('keyval') diff --git a/test cases/warning/7 module without unstable/test.json b/test cases/warning/7 module without unstable/test.json new file mode 100644 index 0000000..62b8aa1 --- /dev/null +++ b/test cases/warning/7 module without unstable/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/warning/7 module without unstable/meson.build:3: WARNING: Project targets '>= 0.55' but uses feature introduced in '0.56.0': module keyval as stable module. Consider either adding \"unstable-\" to the module name, or updating the meson required version to \">= 0.56.0\"" + } + ] +} |