[Initscripts-ng-commits] r733 - in /trunk/src/insserv/debian: changelog run-testsuite
pere at users.alioth.debian.org
pere at users.alioth.debian.org
Sun May 4 12:44:18 UTC 2008
Author: pere
Date: Sun May 4 12:44:18 2008
New Revision: 733
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=733
Log:
* New test case to demonstrate the bug reported in #477415.
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=733&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Sun May 4 12:44:18 2008
@@ -1,3 +1,9 @@
+insserv (1.11.0-9) UNRELEASED; urgency=low
+
+ * New test case to demonstrate the bug reported in #477415.
+
+ -- Petter Reinholdtsen <pere at debian.org> Sun, 4 May 2008 14:43:59 +0200
+
insserv (1.11.0-8) unstable; urgency=low
* Make sure the consistency check in update-bootsystem-insserv
Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=733&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Sun May 4 12:44:18 2008
@@ -930,6 +930,61 @@
list_rclinks
check_order 0 stopfirst stopafter
+}
+##########################################################################
+test_adding_stop() {
+echo
+echo "info: Make sure that adding stop levels do not change an existing installation."
+echo
+
+rm -rf $initddir
+mkdir -p $initddir
+
+insertscript testscript <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: testscript
+# Required-Start:
+# Required-Stop:
+# Default-Start: S
+# Default-Stop:
+### END INIT INFO
+EOF
+
+check_script_present S testscript
+check_script_not_present 0 testscript
+check_script_not_present 1 testscript
+check_script_not_present 2 testscript
+check_script_not_present 3 testscript
+check_script_not_present 4 testscript
+check_script_not_present 5 testscript
+check_script_not_present 6 testscript
+
+# Then change runlevel in existing script
+set +C
+addscript testscript <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: testscript
+# Required-Start:
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+### END INIT INFO
+EOF
+set -C
+
+# Update script after changing the header
+insserv_reg testscript || true
+
+list_rclinks
+
+check_script_present S testscript
+check_script_not_present 0 testscript
+check_script_not_present 1 testscript
+check_script_not_present 2 testscript
+check_script_not_present 3 testscript
+check_script_not_present 4 testscript
+check_script_not_present 5 testscript
+check_script_not_present 6 testscript
}
##########################################################################
@@ -949,3 +1004,4 @@
test_newbug_keepoldorder
test_start_before
test_stop_after
+test_adding_stop
More information about the Initscripts-ng-commits
mailing list