nixpkgs/tests/portmap.nix

18 lines
303 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
machine =
{ config, pkgs, ... }:
{ services.portmap.enable = true; };
testScript =
''
# The `portmap' service must be registered once for TCP and once for
# UDP.
$machine->succeed("test `rpcinfo -p | grep portmapper | wc -l` -eq 2");
'';
}