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

kelmo-guest at users.alioth.debian.org kelmo-guest at users.alioth.debian.org
Mon May 19 14:43:13 UTC 2008


Author: kelmo-guest
Date: Mon May 19 14:43:12 2008
New Revision: 750

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=750
Log:
Add test_noprovides_header() to show that it is possible to insert script
missing Provides keyword, and many warnings are exposed as a result.

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=750&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Mon May 19 14:43:12 2008
@@ -43,8 +43,10 @@
   * Add 64_missing_default_fields_fallback to ensure sane fallback of
     empty runlevel configuration is used for scripts missing Default-
     Start or Default-Stop lsb keywords.
-
- -- Kel Modderman <kel at otaku42.de>  Tue, 20 May 2008 00:29:08 +1000
+  * Add test_noprovides_header() to show that it is possible to insert script
+    missing Provides keyword, and many warnings are exposed as a result.
+
+ -- Kel Modderman <kel at otaku42.de>  Tue, 20 May 2008 00:41:15 +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=750&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Mon May 19 14:43:12 2008
@@ -1153,6 +1153,35 @@
 addscript badheader <<'EOF'
 ### BEGIN INIT INFO
 # Provides:          badheader
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
+EOF
+
+insserv_reg badheader || true
+
+list_rclinks
+
+test_script_present 0 badheader
+test_script_present 1 badheader
+test_script_present 2 badheader
+test_script_present 3 badheader
+test_script_present 4 badheader
+test_script_present 5 badheader
+test_script_present 6 badheader
+}
+##########################################################################
+test_noprovides_header() {
+echo
+echo "info: test insertion of script missing Provides fields"
+echo
+rm -rf $initddir
+mkdir -p $initddir
+
+addscript badheader <<'EOF'
+### BEGIN INIT INFO
+# Required-Start:
+# Required-Stop:
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 ### END INIT INFO
@@ -1253,5 +1282,6 @@
 test_bogus_facility
 test_insserv_conf_d
 test_broken_header
+test_noprovides_header
 test_no_default_start
 test_no_default_stop




More information about the Initscripts-ng-commits mailing list