From: Fred Morcos Date: Wed, 24 Jul 2024 10:37:04 +0000 (+0200) Subject: Add lmdb regression tests to meson X-Git-Tag: rec-5.2.0-alpha1~30^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7adf1b9031d267345c4ba8cbbdf140f6f8a08f9a;p=thirdparty%2Fpdns.git Add lmdb regression tests to meson --- diff --git a/meson.build b/meson.build index c201c5cc08..8b61fadf95 100644 --- a/meson.build +++ b/meson.build @@ -1093,14 +1093,23 @@ endif if get_option('unit-tests-backends') start_test_stop = files('regression-tests' / 'start-test-stop')[0] -endif -if get_option('module-geoip') != 'disabled' and get_option('unit-tests-backends') - test( - 'pdns-auth-backend-geoip', - start_test_stop, - args: ['5300', 'geoip'], - workdir: product_source_dir / 'regression-tests', - depends: [pdns_auth], - ) + test_modules = { + 'geoip': 'module-geoip', + 'lmdb': 'module-lmdb', + 'lmdb-nodnssec': 'module-lmdb', + } + + foreach module, option: test_modules + if get_option(option) != 'disabled' + test( + 'pdns-auth-backend-' + module, + start_test_stop, + args: ['5300', module], + workdir: product_source_dir / 'regression-tests', + depends: [pdns_auth, pdns_auth_util, sdig, saxfr], + is_parallel: false, + ) + endif + endforeach endif