aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-12-16 16:16:14 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-20 20:29:19 +0200
commitd4673301b88a45d6f224fca5645f1ae244a2af47 (patch)
tree720873857f5c22fd7055537f5cc840787a4aa1a6
parent8eaa0a27323e9fbee01b8aa0cf165cd499b78ee1 (diff)
downloadmeson-d4673301b88a45d6f224fca5645f1ae244a2af47.zip
meson-d4673301b88a45d6f224fca5645f1ae244a2af47.tar.gz
meson-d4673301b88a45d6f224fca5645f1ae244a2af47.tar.bz2
tests: skip libwmf test if libwmf-config not installed
-rw-r--r--test cases/frameworks/21 libwmf/meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/test cases/frameworks/21 libwmf/meson.build b/test cases/frameworks/21 libwmf/meson.build
index b39d8f4..1fdce2e 100644
--- a/test cases/frameworks/21 libwmf/meson.build
+++ b/test cases/frameworks/21 libwmf/meson.build
@@ -1,5 +1,10 @@
project('libwmf test', 'c')
+wm = find_program('libwmf-config', required : false)
+if not wm.found()
+ error('MESON_SKIP_TEST: libwmf-config not installed')
+endif
+
libwmf_dep = dependency('libwmf', version : '>= 0.2.8')
libwmf_ver = libwmf_dep.version()
assert(libwmf_ver.split('.').length() > 1, 'libwmf version is "@0@"'.format(libwmf_ver))