Add simple portmap test.
svn path=/nixos/trunk/; revision=19700
This commit is contained in:
parent
0432766399
commit
31f2d8ffbc
|
@ -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
17
tests/portmap.nix
Normal 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");
|
||||
'';
|
||||
|
||||
}
|
Loading…
Reference in a new issue