@@ -69,6 +69,12 @@ import ./make-test.nix ({ pkgs, ...} : {
6969 $machine->succeed("ping -n -c 1 $ip6");
7070 $machine->succeed("curl --fail http://[$ip6]/ > /dev/null");
7171
72+ # Check that nixos-container show-ip works in case of an ipv4 address with
73+ # subnetmask in CIDR notation.
74+ my $result = $machine->succeed("nixos-container show-ip webserver");
75+ chomp $result;
76+ $result eq $ip or die;
77+
7278 # Stop the container.
7379 $machine->succeed("nixos-container stop webserver");
7480 $machine->fail("curl --fail --connect-timeout 2 http://$ip/ > /dev/null");