[Initscripts-ng-commits] r1101 - in /trunk/src/insserv/debian: changelog run-testsuite

pere at users.alioth.debian.org pere at users.alioth.debian.org
Tue Feb 18 11:26:29 UTC 2014


Author: pere
Date: Tue Feb 18 11:26:29 2014
New Revision: 1101

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=1101
Log:
Add new testsuite test test_cross_runlevel_dep to try to reproduce bug #738775.  No luck so far.

Modified:
    trunk/src/insserv/debian/changelog
    trunk/src/insserv/debian/run-testsuite

Modified: trunk/src/insserv/debian/changelog
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=1101&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog	(original)
+++ trunk/src/insserv/debian/changelog	Tue Feb 18 11:26:29 2014
@@ -5,6 +5,8 @@
   * Dropped patch 190_disable_debug_output.patch done obsolete by
     200_upstream-fixes.patch.
   * Remove unused debian debconf template translations.
+  * Add new testsuite test test_cross_runlevel_dep to try to reproduce
+    bug #738775.  No luck so far.
 
  -- Petter Reinholdtsen <pere at debian.org>  Wed, 12 Feb 2014 23:47:35 +0100
 

Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=1101&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite	(original)
+++ trunk/src/insserv/debian/run-testsuite	Tue Feb 18 11:26:29 2014
@@ -2409,6 +2409,49 @@
 check_order S mountall-bootclean.sh bootmisc.sh
 
 update_conf
+}
+##########################################################################
+# Trying to reproduce <URL: http://bugs.debian.org/738775 >
+test_cross_runlevel_dep() {
+
+initdir_purge
+
+insertscript rpcbind <<'EOF'
+### BEGIN INIT INFO
+# Provides:          rpcbind
+# Required-Start:
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
+EOF
+
+insertscript nfs-common <<'EOF'
+### BEGIN INIT INFO
+# Provides:          nfs-common
+# Required-Start:    rpcbind
+# Required-Stop:
+# Default-Start:     2
+# Default-Stop:
+### END INIT INFO
+EOF
+
+insertscript nfs-server <<'EOF'
+### BEGIN INIT INFO
+# Provides:          nfs-server
+# Required-Start:    nfs-common
+# Required-Stop:
+# Default-Start:     2
+# Default-Stop:
+### END INIT INFO
+EOF
+
+list_rclinks
+
+check_script_present S rpcbind
+check_script_present 2 nfs-common
+check_script_present 2 nfs-server
+check_order 2 nfs-common nfs-server
 }
 ##########################################################################
 
@@ -2455,3 +2498,4 @@
 test_invalid_core_string
 test_show_all
 test_bootmisc_order
+test_cross_runlevel_dep




More information about the Initscripts-ng-commits mailing list