Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
26b7bfed
Commit
26b7bfed
authored
Aug 11, 2014
by
Tomek Mrugalski
🛰
Browse files
[3508] Added missing version_test check.
parent
2ea8006b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/testutils/dhcp_test_lib.sh.in
View file @
26b7bfed
...
...
@@ -401,3 +401,23 @@ must be a number"
# Actually send a signal.
kill -${sig} ${_GET_PIDS}
}
# This test verifies that DHCPv4 server is reporting its version properly.
version_test() {
test_name=${1} # Test name
# Log the start of the test and print test name.
test_start ${test_name}
# Remove dangling Kea instances and remove log files.
cleanup
REPORTED_VERSION="`${bin_path}/${bin} -v`"
if test "${REPORTED_VERSION}" == "${EXPECTED_VERSION}"; then
test_finish 0
else
printf "ERROR: Expected version ${EXPECTED_VERSION}, got ${REPORTED_VERSION}\n"
test_finish 1
fi
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment