Add simple portmap test.

svn path=/nixos/trunk/; revision=19700
This commit is contained in:
Ludovic Courtès 2010-01-26 23:55:22 +00:00
parent 0432766399
commit 31f2d8ffbc
2 changed files with 18 additions and 0 deletions

View file

@ -31,6 +31,7 @@ in
firefox = apply (import ./firefox.nix);
installer = pkgs.lib.mapAttrs (name: complete) (call (import ./installer.nix));
kde4 = apply (import ./kde4.nix);
portmap = apply (import ./portmap.nix);
proxy = apply (import ./proxy.nix);
quake3 = apply (import ./quake3.nix);
subversion = apply (import ./subversion.nix);

17
tests/portmap.nix Normal file
View file

@ -0,0 +1,17 @@
{ 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");
'';
}