[debian-edu-commits] debian-edu/ 01/01: Extend testsuite/samba: report if 'net time' segfaults and test if 'net maxrids' reports the highest RID.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Sat Aug 23 22:01:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch master
in repository debian-edu-config.

commit d850fa6a7d9b5509f085f778cbbccc9281e6b08e
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Sun Aug 24 00:01:15 2014 +0200

    Extend testsuite/samba: report if 'net time' segfaults and test if 'net maxrids' reports the highest RID.
---
 debian/changelog |  3 +++
 testsuite/samba  | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a9b36ea..bf16f0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,9 @@ debian-edu-config (1.721) UNRELEASED; urgency=low
 
   [ Wolfgang Schweer ]
   * Adjust testsuite/webcache cause squid3 replaces squid.
+  * Extend testsuite/samba:
+    - report if 'net time' segfaults.
+    - test if 'net maxrids' reports the highest RID.
 
  -- Petter Reinholdtsen <pere at debian.org>  Sat, 23 Aug 2014 10:47:02 +0200
 
diff --git a/testsuite/samba b/testsuite/samba
index 0b61811..35898bf 100755
--- a/testsuite/samba
+++ b/testsuite/samba
@@ -59,6 +59,17 @@ if which net >/dev/null 2>&1 ; then
     else
 	echo "error: $0: missing Domain Admins in samba groupmap."
     fi
+    if net maxrid 2>&1 | grep -q '^Currently ' ; then
+	echo "success: $0: maxrid is reported."
+    else
+	echo "error: $0: samba fails to report maxrid."
+    fi
+    exec 2>/dev/null
+    if net time 2>&1 | grep -q null ; then
+	echo "success: $0: command 'net time' doesn't segfault."
+    else
+	echo "error: $0: command 'net time' segfaults."
+    fi
 else
     echo "error: $0: missing net binary."
 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