diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-07-04 17:50:41 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-07-28 01:33:47 -0400 |
commit | 82e92e90ec3c255db7f4ee90f9919229f45b27e2 (patch) | |
tree | 1b9d22fc3350c435f9180c3e6a4c748ee14bdeec | |
parent | 1fb6c939473ca7cdab281d6b199a60d1f8f1802d (diff) | |
download | meson-82e92e90ec3c255db7f4ee90f9919229f45b27e2.zip meson-82e92e90ec3c255db7f4ee90f9919229f45b27e2.tar.gz meson-82e92e90ec3c255db7f4ee90f9919229f45b27e2.tar.bz2 |
expand tests to check both static and shared intl dependency
-rw-r--r-- | test cases/frameworks/6 gettext/meson.build | 2 | ||||
-rw-r--r-- | test cases/frameworks/6 gettext/meson_options.txt | 1 | ||||
-rw-r--r-- | test cases/frameworks/6 gettext/test.json | 8 |
3 files changed, 10 insertions, 1 deletions
diff --git a/test cases/frameworks/6 gettext/meson.build b/test cases/frameworks/6 gettext/meson.build index 9856341..2640ab2 100644 --- a/test cases/frameworks/6 gettext/meson.build +++ b/test cases/frameworks/6 gettext/meson.build @@ -10,7 +10,7 @@ if not xgettext.found() error('MESON_SKIP_TEST xgettext not found.') endif -intl = dependency('intl', required: false) +intl = dependency('intl', required: false, static: get_option('static')) if not intl.found() error('MESON_SKIP_TEST libintl/gettext functions not found.') endif diff --git a/test cases/frameworks/6 gettext/meson_options.txt b/test cases/frameworks/6 gettext/meson_options.txt new file mode 100644 index 0000000..f41ed25 --- /dev/null +++ b/test cases/frameworks/6 gettext/meson_options.txt @@ -0,0 +1 @@ +option('static', type : 'boolean', value : false, description : 'build statically linked binaries') diff --git a/test cases/frameworks/6 gettext/test.json b/test cases/frameworks/6 gettext/test.json index 55a475a..12ce27a 100644 --- a/test cases/frameworks/6 gettext/test.json +++ b/test cases/frameworks/6 gettext/test.json @@ -11,5 +11,13 @@ {"type": "file", "file": "usr/share/applications/test3.desktop"}, {"type": "file", "file": "usr/share/applications/test4.desktop"} ], + "matrix": { + "options": { + "static": [ + { "val": "true" }, + { "val": "false" } + ] + } + }, "skip_on_jobname": ["azure", "cygwin"] } |