summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-08-09 08:39:05 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-08-09 08:39:38 +0200
commitc0981de289d3da4cb82d2112ab459c9f57620dd3 (patch)
tree11929a723ccb1b366b234e1cf1f1c20f6ed0540a /src
parenttest: modernize test-network-generator (diff)
downloadsystemd-c0981de289d3da4cb82d2112ab459c9f57620dd3.tar.xz
systemd-c0981de289d3da4cb82d2112ab459c9f57620dd3.zip
test: add one more test case without hostname
Diffstat (limited to 'src')
-rw-r--r--src/network/generator/test-network-generator.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/network/generator/test-network-generator.c b/src/network/generator/test-network-generator.c
index d816ded86d..4de4a51995 100644
--- a/src/network/generator/test-network-generator.c
+++ b/src/network/generator/test-network-generator.c
@@ -105,6 +105,21 @@ int main(int argc, char *argv[]) {
"\n[DHCP]\n"
);
+ test_network_one("eth0", "ip", "10.99.37.44::10.99.10.1:255.255.0.0::eth0:off",
+ "[Match]\n"
+ "Name=eth0\n"
+ "\n[Link]\n"
+ "\n[Network]\n"
+ "DHCP=no\n"
+ "LinkLocalAddressing=no\n"
+ "IPv6AcceptRA=no\n"
+ "\n[DHCP]\n"
+ "\n[Address]\n"
+ "Address=10.99.37.44/16\n"
+ "\n[Route]\n"
+ "Gateway=10.99.10.1\n"
+ );
+
test_network_one("eth0", "ip", "192.168.0.10::192.168.0.1:255.255.255.0:hogehoge:eth0:on",
"[Match]\n"
"Name=eth0\n"