[Initscripts-ng-commits] r742 - in /trunk/src/insserv/debian: changelog run-testsuite
kelmo-guest at users.alioth.debian.org
kelmo-guest at users.alioth.debian.org
Sun May 18 22:49:07 UTC 2008
Author: kelmo-guest
Date: Sun May 18 22:49:07 2008
New Revision: 742
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=742
Log:
Add test_onlystart() test case to check we can insert scripts with empty
stop runlevel configuration.
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=742&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Sun May 18 22:49:07 2008
@@ -27,8 +27,10 @@
* Add 62_default_stop_no_defaults to inhibit initscripts from being "given"
default stop links when none are wanted. Stop links should only be created
when asked for, there are no really sane defaults.
-
- -- Kel Modderman <kel at otaku42.de> Sun, 18 May 2008 11:41:12 +1000
+ * Add test_onlystart() test case to check we can insert scripts with empty
+ stop runlevel configuration.
+
+ -- Kel Modderman <kel at otaku42.de> Mon, 19 May 2008 08:43:08 +1000
insserv (1.11.0-8) unstable; urgency=low
Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=742&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Sun May 18 22:49:07 2008
@@ -605,6 +605,36 @@
check_script_present S distroglobal
}
+test_onlystart() {
+echo
+echo "info: check that it work to insert scripts with only start runlevels"
+echo
+
+rm -rf $initddir
+mkdir -p $initddir
+
+insertscript onlystart <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: onlystart
+# Required-Start: $remote_fs
+# Required-Stop: $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop:
+### END INIT INFO
+EOF
+
+list_rclinks
+
+check_script_present 2 onlystart
+check_script_present 3 onlystart
+check_script_present 4 onlystart
+check_script_present 5 onlystart
+
+check_script_not_present 0 onlystart
+check_script_not_present 1 onlystart
+check_script_not_present 6 onlystart
+}
+
test_onlystop() {
echo
echo "info: check that it work to insert scripts with only stop runlevels"
@@ -1123,6 +1153,7 @@
test_fake_loop
test_fake_loop_reverse
test_badscript
+test_onlystart
test_onlystop
test_removal
test_segfault_virtfac
More information about the Initscripts-ng-commits
mailing list