subdir('meson' / 'boost') # Boost
subdir('meson' / 'boost-program-options') # Boost Program Options Library
subdir('meson' / 'unit-tests') # Unit Tests
+subdir('meson' / 'auth-backend-unit-test') # Auth Backend Unit Tests
subdir('meson' / 'reproducible') # Reproducible Builds
subdir('meson' / 'fuzz-targets') # Fuzzing Targets
subdir('meson' / 'python-venv') # Python Venv
'Install Ragel or download the sources from www.powerdns.com')
endif
-# Backend Unit Tests
-opt_backend_unittests = get_option('unit-tests-backends')
-dep_boost_test = dependency('boost', modules: ['unit_test_framework'], required: opt_backend_unittests)
-deps += dep_boost_test
-conf.set10('BACKEND_UNIT_TESTS', opt_backend_unittests, description: 'Whether backend unit tests are enabled')
-if not opt_unittests
- summary('Test', dep_boost_test.found(), bool_yn: true, section: 'Boost')
-endif
-
# Swagger
if not fs.exists('pdns/api-swagger.json') and not python_have_venv
error('Python3 and/or its venv module is not available and ' +
--- /dev/null
+# Auth Backend Unit Tests
+# Inputs: conf deps
+
+opt_backend_unittests = get_option('unit-tests-backends')
+dep_boost_test = dependency('boost', modules: ['unit_test_framework'], required: opt_backend_unittests)
+deps += dep_boost_test
+conf.set10('BACKEND_UNIT_TESTS', opt_backend_unittests, description: 'Whether backend unit tests are enabled')
+if not opt_unittests
+ summary('Test', dep_boost_test.found(), bool_yn: true, section: 'Boost')
+endif