From 7adf1b9031d267345c4ba8cbbdf140f6f8a08f9a Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Wed, 24 Jul 2024 12:37:04 +0200 Subject: [PATCH] Add lmdb regression tests to meson --- meson.build | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) 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 -- 2.47.2