diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-01-02 20:20:32 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-21 17:10:05 +0000 |
commit | c650bd78caefeb6482331e3a7d291e8de9ebb0a5 (patch) | |
tree | 160206052e236cb563be08fc467f7a954f38d679 | |
parent | a0e98326ca6fa1f17e84861a14e44ecc37138735 (diff) | |
download | meson-c650bd78caefeb6482331e3a7d291e8de9ebb0a5.zip meson-c650bd78caefeb6482331e3a7d291e8de9ebb0a5.tar.gz meson-c650bd78caefeb6482331e3a7d291e8de9ebb0a5.tar.bz2 |
Skip test cases/frameworks/19 pcap if pcap not found
-rw-r--r-- | test cases/frameworks/19 pcap/meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test cases/frameworks/19 pcap/meson.build b/test cases/frameworks/19 pcap/meson.build index f02f411..eb6fc2c 100644 --- a/test cases/frameworks/19 pcap/meson.build +++ b/test cases/frameworks/19 pcap/meson.build @@ -1,6 +1,10 @@ project('pcap test', 'c') -pcap_dep = dependency('pcap', version : '>=1.0') +pcap_dep = dependency('pcap', version : '>=1.0', required: false) + +if not pcap_dep.found() + error('MESON_SKIP_TEST pcap not found.') +endif pcap_ver = pcap_dep.version() assert(pcap_ver.split('.').length() > 1, 'pcap version is "@0@"'.format(pcap_ver)) @@ -9,6 +13,6 @@ e = executable('pcap_prog', 'pcap_prog.c', dependencies : pcap_dep) test('pcaptest', e) -# Ensure discovery bia the configuration tools work also +# Ensure discovery via the configuration tools work also pcap_dep = dependency('pcap', version : '>=1.0', method : 'pcap-config') pcap_dep = dependency('pcap', version : '>=1.0', method : 'config-tool') |