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

pere at users.alioth.debian.org pere at users.alioth.debian.org
Thu Jan 3 08:53:09 UTC 2008


Author: pere
Date: Thu Jan  3 08:53:09 2008
New Revision: 429

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

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=429&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Thu Jan  3 08:53:09 2008
@@ -441,6 +441,39 @@
 
 (cd $tmpdir && ls *)
 
+# Test another fake loop using reverse dependencies to document that
+# it can happen based on information provided in one package only.
+# This should work, as it is possible to install the two scripts in
+# sequence because one of the dependencies are optional.  It does not
+# with insserv today.  Note thought that the generated order is
+# different from the one above.
+
+rm -rf $initddir
+mkdir -p $initddir
+
+insertscript startfirst_stopfirst <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          startfirst_stopfirst
+# Required-Start:
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:      6
+### END INIT INFO
+EOF
+
+insertscript startsecond_stoplast <<'EOF' || true
+### BEGIN INIT INFO
+# Provides:          startsecond_stoplast
+# Required-Start:    startfirst_stopfirst
+# Required-Stop:
+# X-Stop-After:      startfirst_stopfirst
+# Default-Start:     S
+# Default-Stop:      6
+### END INIT INFO
+EOF
+
+(cd $tmpdir && ls *)
+
 # These are checking real bugs, but until bug #458582 is fixed, they
 # will fail.  Making the tests non-fatal because of this.
 test_order S startfirst_stopfirst startsecond_stoplast




More information about the Initscripts-ng-commits mailing list