3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/tests/portmap.nix
Ludovic Courtès 31f2d8ffbc Add simple portmap test.
svn path=/nixos/trunk/; revision=19700
2010-01-26 23:55:22 +00:00

18 lines
307 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->mustSucceed("test `rpcinfo -p | grep portmapper | wc -l` -eq 2");
'';
}