shutdown_test "dhcpv4.sigterm_test" 15
shutdown_test "dhcpv4.sigint_test" 2
version_test "dhcpv4.version"
-EXPECTED_OUTPUT=$(cat << 'EOF'
-Kea DHCPv4 server, version 3.3.0-git (development)
+VERSION=@VERSION@
+PACKAGE_VERSION_TYPE=@PACKAGE_VERSION_TYPE@
+EXPECTED_OUTPUT=$(cat << EOF
+Kea DHCPv4 server, version $VERSION ($PACKAGE_VERSION_TYPE)
Usage: kea-dhcp4 -[v|V|W|X] [-d] [-{c|t|T} cfgfile] [-p number] [-P number]
-v: print version number and exit
dhcp4_tests_conf_data.set('abs_top_builddir', TOP_BUILD_DIR)
dhcp4_tests_conf_data.set('abs_top_srcdir', TOP_SOURCE_DIR)
dhcp4_tests_conf_data.set('abs_builddir', current_build_dir)
+dhcp4_tests_conf_data.set('VERSION', f'"@PROJECT_VERSION@"')
+dhcp4_tests_conf_data.set('PACKAGE_VERSION_TYPE', f'"@package_version_type@"')
dhcp4_process_tests = configure_file(
input: 'dhcp4_process_tests.sh.in',
output: 'dhcp4_process_tests.sh',
shutdown_test "dhcpv6.sigterm_test" 15
shutdown_test "dhcpv6.sigint_test" 2
version_test "dhcpv6.version"
-EXPECTED_OUTPUT=$(cat << 'EOF'
-Kea DHCPv6 server, version 3.3.0-git (development)
+VERSION=@VERSION@
+PACKAGE_VERSION_TYPE=@PACKAGE_VERSION_TYPE@
+EXPECTED_OUTPUT=$(cat << EOF
+Kea DHCPv6 server, version $VERSION ($PACKAGE_VERSION_TYPE)
Usage: kea-dhcp6 -[v|V|W|X] [-d] [-{c|t|T} cfgfile] [-p number] [-P number]
-v: print version number and exit
dhcp6_tests_conf_data.set('abs_top_builddir', TOP_BUILD_DIR)
dhcp6_tests_conf_data.set('abs_top_srcdir', TOP_SOURCE_DIR)
dhcp6_tests_conf_data.set('abs_builddir', current_build_dir)
+dhcp6_tests_conf_data.set('VERSION', f'"@PROJECT_VERSION@"')
+dhcp6_tests_conf_data.set('PACKAGE_VERSION_TYPE', f'"@package_version_type@"')
dhcp6_process_tests = configure_file(
input: 'dhcp6_process_tests.sh.in',
output: 'dhcp6_process_tests.sh',