Add a test for NFSv4
However it currently fails because locking seems to be broken with NFSv4.
This commit is contained in:
parent
567fbce9be
commit
10626bed8b
@ -256,7 +256,8 @@ in {
|
|||||||
mysql = runTest (t: t.mysql.test);
|
mysql = runTest (t: t.mysql.test);
|
||||||
mysql_replication = runTest (t: t.mysql_replication.test);
|
mysql_replication = runTest (t: t.mysql_replication.test);
|
||||||
nat = runTest (t: t.nat.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);
|
openssh = runTest (t: t.openssh.test);
|
||||||
partition = runTest (t: t.partition.test);
|
partition = runTest (t: t.partition.test);
|
||||||
proxy = runTest (t: t.proxy.test);
|
proxy = runTest (t: t.proxy.test);
|
||||||
|
@ -17,7 +17,8 @@ with import ../lib/testing.nix { inherit system minimal; };
|
|||||||
mysql = makeTest (import ./mysql.nix);
|
mysql = makeTest (import ./mysql.nix);
|
||||||
mysql_replication = makeTest (import ./mysql-replication.nix);
|
mysql_replication = makeTest (import ./mysql-replication.nix);
|
||||||
nat = makeTest (import ./nat.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);
|
openssh = makeTest (import ./openssh.nix);
|
||||||
partition = makeTest (import ./partition.nix);
|
partition = makeTest (import ./partition.nix);
|
||||||
portmap = makeTest (import ./portmap.nix);
|
portmap = makeTest (import ./portmap.nix);
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{ version }:
|
||||||
|
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -6,9 +8,9 @@ let
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{ fileSystems = pkgs.lib.mkOverride 50
|
{ fileSystems = pkgs.lib.mkOverride 50
|
||||||
[ { mountPoint = "/data";
|
[ { mountPoint = "/data";
|
||||||
device = "server:/data";
|
device = "server:${if version == 4 then "/" else "/data"}";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = "vers=3";
|
options = "vers=${toString version}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user