1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00
nixpkgs/tests/portmap.nix
2012-10-24 18:22:53 +02:00

18 lines
303 B
Nix

{ 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");
'';
}