[Initscripts-ng-commits] r982 - in /trunk/src/insserv/debian: changelog run-testsuite
pere at users.alioth.debian.org
pere at users.alioth.debian.org
Wed Sep 2 21:23:40 UTC 2009
Author: pere
Date: Wed Sep 2 21:23:40 2009
New Revision: 982
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=982
Log:
Add new test test_local_virtual to verify that local virtual
facilities work properly.
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=982&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Wed Sep 2 21:23:40 2009
@@ -34,6 +34,8 @@
* Update to Standards-Version 3.8.3, no changes required.
* Add lintian override for the transitient update-bootsystem-insserv
binary missing a manual page.
+ * Add new test test_local_virtual to verify that local virtual
+ facilities work properly.
[ Kel Modderman ]
* Add new patch 20_install_perms_fixup.patch to install binary and
Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=982&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Wed Sep 2 21:23:40 2009
@@ -2000,7 +2000,75 @@
update_conf
}
-#########################
+##########################################################################
+test_local_virtual() {
+echo
+echo "info: Test if home made virtual facilities work as they should."
+echo
+
+initdir_purge
+
+mkdir $insconf.d
+
+insertscript test1 <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: test1
+# Required-Start: $mail-transport-agent
+# Required-Stop:
+# Default-Start: 1
+# Default-Stop:
+### END INIT INFO
+EOF
+
+insertscript test2 <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: test2
+# Required-Start: $mail-transport-agent
+# Required-Stop:
+# Default-Start: 1
+# Default-Stop:
+### END INIT INFO
+EOF
+
+list_rclinks
+
+set +C
+cat <<'EOF' > $insconf.d/test3
+$mail-transport-agent test3
+EOF
+insertscript test3 <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: test3
+# Required-Start:
+# Required-Stop:
+# Default-Start: 1
+# Default-Stop:
+### END INIT INFO
+EOF
+
+cat <<'EOF' > $insconf.d/test4
+$mail-transport-agent +test4
+EOF
+set -C
+insertscript test4 <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: test4
+# Required-Start: test3
+# Required-Stop:
+# Default-Start: 1
+# Default-Stop:
+### END INIT INFO
+EOF
+
+list_rclinks
+
+check_order 1 test3 test1
+check_order 1 test3 test2
+check_order 1 test4 test1
+check_order 1 test4 test2
+
+}
+##########################################################################
test_normal_sequence
test_override_files
@@ -2039,3 +2107,4 @@
test_x_interactive
test_insserv_conf_makefile
test_insserv_virt_loop
+test_local_virtual
More information about the Initscripts-ng-commits
mailing list