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

pere at users.alioth.debian.org pere at users.alioth.debian.org
Fri Feb 29 23:40:13 UTC 2008


Author: pere
Date: Fri Feb 29 23:40:13 2008
New Revision: 678

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=678
Log:
Add two new tests to verify that x-start-before and x-stop-after work as they should.

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=678&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Fri Feb 29 23:40:13 2008
@@ -10,6 +10,8 @@
     sequencing without doing the conversion.
   * Updated 31_debian_conf to list glibc, hostname and keymap as interactive
     scripts, as none of them can use a pseudoterminal.
+  * Add two new tests to verify that x-start-before and x-stop-after
+    work as they should.
   * Debconf translations:
     - Added Spanish from Steve Lord Flaubert (Closes: #467391).
     - Added German from Erik Schanze (Closes: #467483).

Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=678&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Fri Feb 29 23:40:13 2008
@@ -862,6 +862,74 @@
 check_order S needlocal needremote
 check_order S needlocal needboth
 check_order S needremote needboth
+}
+##########################################################################
+test_start_before() {
+echo
+echo "info: Verify that X-start-before work as it should."
+echo
+
+rm -rf $initddir
+mkdir -p $initddir
+
+insertscript startlast <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          startlast
+# Required-Start:
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
+EOF
+
+insertscript startfirst <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          startfirst
+# Required-Start:
+# Required-Stop:
+# X-Start-Before:    startlast
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
+EOF
+
+list_rclinks
+
+check_order S startfirst startlast
+}
+##########################################################################
+test_stop_after() {
+echo
+echo "info: Verify that X-stop-after work as it should."
+echo
+
+rm -rf $initddir
+mkdir -p $initddir
+
+insertscript stopfirst <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          stopfirst
+# Required-Start:
+# Required-Stop:
+# Default-Start:
+# Default-Stop:      0 6
+### END INIT INFO
+EOF
+
+insertscript stopafter <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          stopafter
+# Required-Start:
+# Required-Stop:
+# X-Stop-After:      stopfirst
+# Default-Start:
+# Default-Stop:      0 6
+### END INIT INFO
+EOF
+
+list_rclinks
+
+check_order 0 stopfirst stopafter
 }
 ##########################################################################
 
@@ -879,3 +947,5 @@
 test_segfault_virtfac
 test_incorrect_stopscripts
 test_newbug_keepoldorder
+test_start_before
+test_stop_after




More information about the Initscripts-ng-commits mailing list