]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add lmdb regression tests to meson
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 24 Jul 2024 10:37:04 +0000 (12:37 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Tue, 24 Sep 2024 09:20:39 +0000 (11:20 +0200)
meson.build

index c201c5cc0883b750d96d5b37600bd8d81046fd4b..8b61fadf9545a2eafe4ad16a3c73380f4e38ff88 100644 (file)
@@ -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