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

pere at users.alioth.debian.org pere at users.alioth.debian.org
Sun Sep 21 05:31:53 UTC 2008


Author: pere
Date: Sun Sep 21 05:31:52 2008
New Revision: 863

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=863
Log:
* New test test_early_all to control that $all only affect start or
  stop sequences.  Trying to reproduce issue reported in #485307.

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=863&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Sun Sep 21 05:31:52 2008
@@ -1,3 +1,11 @@
+insserv (1.12.0-4) UNRELEASED; urgency=low
+
+  [ Petter Reinholdtsen ]
+  * New test test_early_all to control that $all only affect start or
+    stop sequences.  Trying to reproduce issue reported in #485307.
+
+ -- Petter Reinholdtsen <pere at debian.org>  Sun, 21 Sep 2008 07:28:58 +0200
+
 insserv (1.12.0-3) unstable; urgency=low
 
   [ Kel Modderman ]

Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=863&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Sun Sep 21 05:31:52 2008
@@ -1693,6 +1693,66 @@
 
 list_rclinks
 check_script_present 5 all
+}
+##########################################################################
+test_early_all() {
+echo
+echo "info: Check that $all only affect the start or stop sequence"
+echo "BTS #485307"
+echo
+
+initdir_purge
+
+# Insert a few scripts to flesh out $initdir
+insertscript early <<EOF || true
+### BEGIN INIT INFO
+# Provides:          early
+# Required-Start:
+# Required-Stop:
+# Default-Start:     2
+# Default-Stop:      0
+### END INIT INFO
+EOF
+
+insertscript center <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          center
+# Required-Start:    early
+# Required-Stop:     early
+# Default-Start:     2
+# Default-Stop:      0
+### END INIT INFO
+EOF
+
+insertscript late <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          late
+# Required-Start:    center
+# Required-Stop:     center
+# Default-Start:     2
+# Default-Stop:      0
+### END INIT INFO
+EOF
+
+# This script should start early and stop before all other scripts
+insertscript complex <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          compex
+# Required-Start:    early
+# X-Start-Before:    center
+# Required-Stop:     $all
+# Default-Start:     2
+# Default-Stop:      0
+### END INIT INFO
+EOF
+
+list_rclinks
+
+check_script_present 2 early
+check_script_present 2 complex
+check_order 2 early complex
+${severity}_order 2 complex center
+check_order 0 complex late
 }
 ##########################################################################
 test_script_in_runlevel() {
@@ -1753,4 +1813,5 @@
 test_initd_symlink
 test_deterministic_order
 test_all_keyword
+test_early_all
 test_script_in_runlevel




More information about the Initscripts-ng-commits mailing list