diff --git a/tests/default.nix b/tests/default.nix index 2efe151ab79..46b3218168f 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -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); diff --git a/tests/portmap.nix b/tests/portmap.nix new file mode 100644 index 00000000000..4ee4eb02890 --- /dev/null +++ b/tests/portmap.nix @@ -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"); + ''; + +}