[debian-edu-commits] debian-edu/ 01/01: Add new test testsuite/nfs-server checking if the NFS subsystem is working.
Petter Reinholdtsen
pere at moszumanska.debian.org
Fri Sep 26 13:26:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
pere pushed a commit to branch master
in repository debian-edu-config.
commit 95aa4fae34e7d250b3c5cc3a024cbd8cc8756858
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Fri Sep 26 15:25:53 2014 +0200
Add new test testsuite/nfs-server checking if the NFS subsystem is working.
---
debian/changelog | 2 ++
testsuite/nfs-server | 30 ++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2b8b708..8343f07 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,8 @@ debian-edu-config (1.806) UNRELEASED; urgency=low
installed by default any more. Depend on netcat to get a nc
implementation.
* Extend LTSP test to report error if no LTSP NFS mount point exist.
+ * Add new test testsuite/nfs-server checking if the NFS subsystem is
+ working.
-- Wolfgang Schweer <wschweer at arcor.de> Thu, 25 Sep 2014 23:56:27 +0200
diff --git a/testsuite/nfs-server b/testsuite/nfs-server
new file mode 100755
index 0000000..7789775
--- /dev/null
+++ b/testsuite/nfs-server
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# Check if the NFS subsystem is operational
+
+PROFILE=
+if test -r /etc/debian-edu/config ; then
+ . /etc/debian-edu/config
+fi
+
+success() { echo "success: $0: $*" ; }
+error() { echo "error: $0: $*" ; }
+
+# Only Main-Server and Thin-Client-Server should export file systems
+# via NFS.
+
+if echo "$PROFILE" | grep -q Main-Server ; then
+ enabled=true
+fi
+if echo "$PROFILE" | grep -q Thin-Client-Server ; then
+ enabled=true
+fi
+
+
+if $enabled ; then
+ if showmount -e ; then
+ success "showmount -e return success."
+ else
+ error "showmount -e return error."
+ fi
+fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list