[Initscripts-ng-commits] r512 - /trunk/src/insserv/debian/run-testsuite

pere at users.alioth.debian.org pere at users.alioth.debian.org
Fri Jan 11 19:47:04 UTC 2008


Author: pere
Date: Fri Jan 11 19:47:04 2008
New Revision: 512

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=512
Log:
New test.

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

Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=512&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Fri Jan 11 19:47:04 2008
@@ -603,6 +603,41 @@
 check_script_present S distroglobal
 
 echo
+echo "info: check that it work to insert scripts with only stop runlevels"
+echo
+# This test check that the common way to update the runlevels used by
+# a given script is working.  It simulates these calls to update-rc.d:
+#  update-rc.d oldscript default
+#  update-rc.d -f oldscript remove
+#  update-rc.d oldscript start 20 2 3 4 5 . stop 20 1 .
+
+rm -rf $initddir
+mkdir -p $initddir
+
+insertscript onlystop <<'EOF' || true
+addscript onlystop <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          onlystop
+# Required-Start:    $remote_fs
+# Required-Stop:     $remote_fs
+# Default-Start:
+# Default-Stop:      0 6
+### END INIT INFO
+EOF
+
+list_rclinks
+
+check_script_present 0 onlystop
+check_script_present 6 onlystop
+
+check_script_not_present 1 onlystop
+check_script_not_present 2 onlystop
+check_script_not_present 3 onlystop
+check_script_not_present 4 onlystop
+check_script_not_present 5 onlystop
+check_script_not_present S onlystop
+
+echo
 echo "info: test if script removal removes all symlinks"
 echo
 # This test check that the common way to update the runlevels used by




More information about the Initscripts-ng-commits mailing list