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

pere at users.alioth.debian.org pere at users.alioth.debian.org
Mon Dec 31 00:37:55 UTC 2007


Author: pere
Date: Mon Dec 31 00:37:55 2007
New Revision: 364

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=364
Log:
Document how loops are handled.

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=364&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Mon Dec 31 00:37:55 2007
@@ -281,9 +281,38 @@
 check_order 6 umountfs umountroot
 check_order 6 umountnfs umountfs
 
+rm -rf $initddir
+
+echo
+echo "info: testing to insert scripts with a loop"
+echo
+mkdir -p $initddir
+
+insertscript loop1 <<'EOF'
+### BEGIN INIT INFO
+# Provides:          loop1
+# Required-Start:    loop2
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
+EOF
+
+insertscript loop2 <<'EOF'
+### BEGIN INIT INFO
+# Provides:          loop2
+# Required-Start:    loop1
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
+EOF
+
 rm -rf $tmpdir
 
 if [ 0 != $retval ] ; then
     echo "error: one or more test failed."
+else
+    echo "success: no test failed."
 fi
 exit $retval




More information about the Initscripts-ng-commits mailing list