Add a test for NFSv4

However it currently fails because locking seems to be broken with
NFSv4.
This commit is contained in:
Eelco Dolstra 2013-07-16 14:44:13 +02:00
parent 567fbce9be
commit 10626bed8b
3 changed files with 8 additions and 4 deletions

View file

@ -256,7 +256,8 @@ in {
mysql = runTest (t: t.mysql.test);
mysql_replication = runTest (t: t.mysql_replication.test);
nat = runTest (t: t.nat.test);
nfs = runTest (t: t.nfs.test);
nfs3 = runTest (t: t.nfs3.test);
#nfs4 = runTest (t: t.nfs4.test);
openssh = runTest (t: t.openssh.test);
partition = runTest (t: t.partition.test);
proxy = runTest (t: t.proxy.test);

View file

@ -17,7 +17,8 @@ with import ../lib/testing.nix { inherit system minimal; };
mysql = makeTest (import ./mysql.nix);
mysql_replication = makeTest (import ./mysql-replication.nix);
nat = makeTest (import ./nat.nix);
nfs = makeTest (import ./nfs.nix);
nfs3 = makeTest (import ./nfs.nix { version = 3; });
nfs4 = makeTest (import ./nfs.nix { version = 4; });
openssh = makeTest (import ./openssh.nix);
partition = makeTest (import ./partition.nix);
portmap = makeTest (import ./portmap.nix);

View file

@ -1,3 +1,5 @@
{ version }:
{ pkgs, ... }:
let
@ -6,9 +8,9 @@ let
{ config, pkgs, ... }:
{ fileSystems = pkgs.lib.mkOverride 50
[ { mountPoint = "/data";
device = "server:/data";
device = "server:${if version == 4 then "/" else "/data"}";
fsType = "nfs";
options = "vers=3";
options = "vers=${toString version}";
}
];
};