From 94eb519e190c1d6f8a908da542f1e6c184aaba35 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Thu, 2 Apr 2015 17:44:48 +0200
Subject: [PATCH] Add nfs4 test

---
 nixos/release.nix   | 1 +
 nixos/tests/nfs.nix | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/nixos/release.nix b/nixos/release.nix
index 4c2a1c76f1c..99d22496c8b 100644
--- a/nixos/release.nix
+++ b/nixos/release.nix
@@ -298,6 +298,7 @@ in rec {
   # TODO: put in networking.nix after the test becomes more complete
   tests.networkingProxy = callTest tests/networking-proxy.nix {};
   tests.nfs3 = callTest tests/nfs.nix { version = 3; };
+  tests.nfs4 = callTest tests/nfs.nix { version = 4; };
   tests.nsd = callTest tests/nsd.nix {};
   tests.openssh = callTest tests/openssh.nix {};
   tests.panamax = hydraJob (import tests/panamax.nix { system = "x86_64-linux"; });
diff --git a/nixos/tests/nfs.nix b/nixos/tests/nfs.nix
index 5ed805a1695..216fea7784a 100644
--- a/nixos/tests/nfs.nix
+++ b/nixos/tests/nfs.nix
@@ -1,4 +1,4 @@
-import ./make-test.nix ({ version, ... }:
+import ./make-test.nix ({ version ? 4, ... }:
 
 let