if krb5_config.found()
cflags = run_command([krb5_config, '--cflags', 'gssapi'], check: false)
libs = run_command([krb5_config, '--libs', 'gssapi'], check: false)
- if cflags.returncode() == 0 and libs.returncode() == 0
+ version = run_command([krb5_config, '--version'], check: false)
+ if cflags.returncode() == 0 and libs.returncode() == 0 and version.returncode() == 0
+ krb5_version = version.stdout().strip()
krb5 = declare_dependency(
compile_args: cflags.stdout().split(),
link_args: libs.stdout().split(),
+ version: krb5_version,
)
endif
endif
--- /dev/null
+if not gtest.found()
+ subdir_done()
+endif
+
+sysrepo_setup_tests = executable(
+ 'kea-sysrepo-setup-tests',
+ 'sysrepo_setup_tests.cc',
+ dependencies: netconf_deps_array,
+ include_directories: [include_directories('.')] + INCLUDES,
+)
+test('sysrepo_setup_tests', sysrepo_setup_tests)
--- /dev/null
+if not gtest.found()
+ subdir_done()
+endif
+
+kea_yang_tests_libs = [
+ kea_yang_testutils_lib,
+ kea_testutils_lib,
+ kea_util_unittests_lib,
+]
+kea_yang_tests = executable(
+ 'kea-yang-tests',
+ 'adaptor_config_unittests.cc',
+ 'adaptor_host_unittests.cc',
+ 'adaptor_option_unittests.cc',
+ 'adaptor_pool_unittests.cc',
+ 'adaptor_subnet_unittests.cc',
+ 'adaptor_unittests.cc',
+ 'config_unittests.cc',
+ 'run_unittests.cc',
+ 'translator_class_unittests.cc',
+ 'translator_control_socket_unittests.cc',
+ 'translator_database_unittests.cc',
+ 'translator_host_unittests.cc',
+ 'translator_logger_unittests.cc',
+ 'translator_option_data_unittests.cc',
+ 'translator_option_def_unittests.cc',
+ 'translator_pd_pool_unittests.cc',
+ 'translator_pool_unittests.cc',
+ 'translator_shared_network_unittests.cc',
+ 'translator_subnet_unittests.cc',
+ 'translator_unittests.cc',
+ 'translator_utils_unittests.cc',
+ cpp_args: [f'-DCFG_EXAMPLES="@TOP_SOURCE_DIR@/doc/examples"'],
+ dependencies: netconf_deps_array + [gtest],
+ include_directories: [include_directories('.')] + INCLUDES,
+ link_with: kea_yang_tests_libs + LIBS_BUILT_SO_FAR,
+)
+test('kea_yang_tests', kea_yang_tests, protocol: 'gtest')