summaryrefslogtreecommitdiffstats
path: root/test/test-network-generator-conversion.sh
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-11-07 20:28:02 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-11-07 20:29:45 +0100
commitb86f60bfb3340a9fa27cb6f127fba7c827481b50 (patch)
tree3ea44add5845b2e9552cf39119d10b3fe56636f8 /test/test-network-generator-conversion.sh
parentnetwork-generator: allow to specify both IPv4 and IPv6 DNS servers (diff)
downloadsystemd-b86f60bfb3340a9fa27cb6f127fba7c827481b50.tar.xz
systemd-b86f60bfb3340a9fa27cb6f127fba7c827481b50.zip
network-generator: refuse unexpected trailing strings
Diffstat (limited to 'test/test-network-generator-conversion.sh')
-rwxr-xr-xtest/test-network-generator-conversion.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-network-generator-conversion.sh b/test/test-network-generator-conversion.sh
index a9ab1b0e7f..f03847c1fa 100755
--- a/test/test-network-generator-conversion.sh
+++ b/test/test-network-generator-conversion.sh
@@ -302,6 +302,9 @@ INVALID_COMMAND_LINES=(
"ip=fdef:c400:bd01:1096::2::[fdef:c400:bd01:1096::1]:64::ipv6:off:[fdef:c400:bd01:1096::aaaa]"
"ip=[fdef:c400:bd01:1096::2]::[fdef:c400:bd01:1096::1]:64::ipv6:off:foo"
"ip=[fdef:c400:bd01:1096::2]::[fdef:c400:bd01:1096::1]:64::ipv6:off:[fdef:c400:bd01:1096::aaaa]:foo"
+ "ip=[fdef:c400:bd01:1096::2]::[fdef:c400:bd01:1096::1]:64::ipv6:off:[fdef:c400:bd01:1096::aaaa]:[fdef:c400:bd01:1096::bbbb]:"
+ "ip=:::::dhcp99:dhcp6:10.0.0.128:10.0.0.129:"
+ "ip=:::::dhcp99:dhcp6:10.0.0.128:[fdef:c400:bd01:1096::bbbb]:"
)
for cmdline in "${INVALID_COMMAND_LINES[@]}"; do
(! SYSTEMD_LOG_LEVEL=debug SYSTEMD_PROC_CMDLINE="$cmdline" "$GENERATOR_BIN")