]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3508] Unit-tests added for version reporting.
authorTomek Mrugalski <tomasz@isc.org>
Mon, 11 Aug 2014 14:58:53 +0000 (16:58 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 11 Aug 2014 14:58:53 +0000 (16:58 +0200)
src/bin/d2/tests/d2_process_tests.sh.in
src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
src/bin/keactrl/keactrl.in

index 659caca8b438aa104e4d086b0da3d70361da6a26..a9c19dad115c6b2c37f161bf7a872688b72eefb8 100755 (executable)
@@ -16,6 +16,8 @@
 CFG_FILE=@abs_top_builddir@/src/bin/d2/tests/test_config.json
 # Path to the D2 log file.
 LOG_FILE=@abs_top_builddir@/src/bin/d2/tests/test.log
+# Expected version
+EXPECTED_VERSION="@PACKAGE_VERSION@"
 # D2 configuration to be stored in the configuration file.
 CONFIG="{
     \"DhcpDdns\":
@@ -236,3 +238,4 @@ shutdown_test() {
 dynamic_reconfiguration_test
 shutdown_test "dhcp-ddns.sigterm_test" 15
 shutdown_test "dhcp-ddns.sigint_test" 2
+version_test "dhcp-ddns.version"
index 0644237e9b9cf40e45aca90135e535c099bc47e3..27d1a0ee948311caa80a78bb80852eeb37bce7d8 100644 (file)
@@ -351,9 +351,10 @@ core component within the DHCPv4 server (the Dhcpv4 server object)
 has failed.  As a result, the server will exit.  The reason for the
 failure is given within the message.
 
-% DHCP4_STARTING server starting
+% DHCP4_STARTING Kea DHCPv4 server version %1 starting
 This informational message indicates that the DHCPv4 server has
-processed any command-line switches and is starting.
+processed any command-line switches and is starting. The version
+is also printed.
 
 % DHCP4_START_INFO pid: %1, port: %2, verbose: %3
 This is a debug message issued during the DHCPv4 server startup.
index 40967bf7ff9f2ceccaf58cdf304bbf30f76eb41a..af5f5f094305272920003b243831a28a558654f6 100755 (executable)
@@ -16,6 +16,8 @@
 CFG_FILE=@abs_top_builddir@/src/bin/dhcp4/tests/test_config.json
 # Path to the Kea log file.
 LOG_FILE=@abs_top_builddir@/src/bin/dhcp4/tests/test.log
+# Expected version
+EXPECTED_VERSION="@PACKAGE_VERSION@"
 # Kea configuration to be stored in the configuration file.
 CONFIG="{
     \"Dhcp4\":
@@ -256,3 +258,4 @@ shutdown_test() {
 dynamic_reconfiguration_test
 shutdown_test "dhcpv4.sigterm_test" 15
 shutdown_test "dhcpv4.sigint_test" 2
+version_test "dhcpv4.version"
index 54ee7e709a7ce0bb50fe01548beaa6a9c60f3f95..b972774352d40d38990b31b128135c02904bc283 100755 (executable)
@@ -16,6 +16,8 @@
 CFG_FILE=@abs_top_builddir@/src/bin/dhcp6/tests/test_config.json
 # Path to the Kea log file.
 LOG_FILE=@abs_top_builddir@/src/bin/dhcp6/tests/test.log
+# Expected version
+EXPECTED_VERSION="@PACKAGE_VERSION@"
 # Kea configuration to be stored in the configuration file.
 CONFIG="{
     \"Dhcp6\":
@@ -257,5 +259,6 @@ shutdown_test() {
 }
 
 dynamic_reconfiguration_test
-shutdown_test "dhcpv4.sigterm_test" 15
-shutdown_test "dhcpv4.sigint_test" 2
+shutdown_test "dhcpv6.sigterm_test" 15
+shutdown_test "dhcpv6.sigint_test" 2
+version_test "dhcpv6.version"
index a0b6f0e2ff1a818c944b6b3cfdf4d0819eb27eba..ca10b503f6035e35663c03b34af6f86a692f8852 100644 (file)
@@ -284,7 +284,7 @@ case ${command} in
         args="-c ${kea_config_file}"
 
         if [ "${kea_verbose}" = "yes" ]; then
-            args="${args} -v"
+            args="${args} -d"
         fi
 
         # Run servers if they are on the list of servers from the command line