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
a0d58242
Commit
a0d58242
authored
Oct 16, 2018
by
Francis Dupont
Browse files
[171-keactrl-tests-not-posix] Replaced not portable '+''
parent
49116840
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/keactrl/tests/keactrl_tests.sh.in
View file @
a0d58242
...
...
@@ -1420,21 +1420,22 @@ version_command_test() {
test_start
"keactrl.version-command"
# Create configuration file for keactrl.
# Note that += is NOT in POSIX shell so PLEASE do NOT use it.
keactrl_config
=
"
${
CFG_FILES
}
\n
dhcp4=yes
\n
dhcp6=yes
\n
dhcp_ddns=yes
\n
"
keactrl_config
+
=
"ctrl_agent=yes
\n
netconf=yes
\n
"
keactrl_config
+
=
"kea_verbose=no
\n
${
keactrl_fixed_config
}
"
keactrl_config
=
"
${
keactrl_config
}
ctrl_agent=yes
\n
netconf=yes
\n
"
keactrl_config
=
"
${
keactrl_config
}
kea_verbose=no
\n
${
keactrl_fixed_config
}
"
create_keactrl_config
"
${
keactrl_config
}
"
# This is what we expect to get. We need to run it through printf
# to convert \n to actual LF (0xa) or whatever the EOL is used on your
# system.
exp
=
"keactrl: @PACKAGE_VERSION@
\n
"
exp
+
=
"kea-dhcp4: @PACKAGE_VERSION@
\n
"
exp
+
=
"kea-dhcp6: @PACKAGE_VERSION@
\n
"
exp
+
=
"kea-dhcp-ddns: @PACKAGE_VERSION@
\n
"
exp
+
=
"kea-ctrl-agent: @PACKAGE_VERSION@"
exp
=
"
${
exp
}
kea-dhcp4: @PACKAGE_VERSION@
\n
"
exp
=
"
${
exp
}
kea-dhcp6: @PACKAGE_VERSION@
\n
"
exp
=
"
${
exp
}
kea-dhcp-ddns: @PACKAGE_VERSION@
\n
"
exp
=
"
${
exp
}
kea-ctrl-agent: @PACKAGE_VERSION@"
if
[
${
have_netconf
}
-eq
1
]
;
then
exp
+
=
"
\n
kea-netconf: @PACKAGE_VERSION@"
exp
=
"
${
exp
}
\n
kea-netconf: @PACKAGE_VERSION@"
fi
# The %b parameter tells printf to interpret backslashes.
EXPECTED_RESP
=
$(
printf
"%b"
"
$exp
"
)
...
...
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