]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add one more test case without hostname
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 9 Aug 2024 06:39:05 +0000 (15:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 9 Aug 2024 06:39:38 +0000 (15:39 +0900)
src/network/generator/test-network-generator.c

index d816ded86db89b8665d1b987f974087c905c33a1..4de4a51995c51586dfdc7875bd6127e2db07f301 100644 (file)
@@ -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"