~ubuntu-branches/ubuntu/natty/insserv/natty-updates

« back to all changes in this revision

Viewing changes to debian/patches/21_tests_suite_new_functions.patch

  • Committer: Bazaar Package Importer
  • Author(s): Petter Reinholdtsen, Kel Modderman, Petter Reinholdtsen
  • Date: 2010-05-07 09:45:19 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100507094519-laz6segpkp1t9mce
Tags: 1.14.0-2
[ Kel Modderman ]
* Add 21_tweak_warnings.patch to make insserv warn about differing on
  disk state/LSB runlevel info for the script(s) in its argument list.
  (Closes: #578308)
* Add 100_show.patch which allows insserv --showall to dump start/stop
  bit, sequence number, runlevels and script name in the format:
  SK:NUM:RUNLEVELS:SCRIPT. It is commented out in quilt series file
  until confirmation from #573004 that it is actually useful.
* Add 30_interactive_regexp_match_fix.patch which fixes failure to
  properly match the correct group in the regular expression used on
  the X-Interactive keyword. (Closes: #580564)
* Modify 92_m68k_alignment.patch so that the define is grouped in an
  area of code which other similar defines live.

[ Petter Reinholdtsen ]
* Improve the output from make-testsuite. 
* Adjust the test_x_interactive behaviour to make sure it fails with
  a fatal error if X-Interactive: true do not work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Purpose: Add some extra functions used by Debian test suite script
2
 
Authour: Kel Modderman
3
 
Fixes:   -
4
 
Status:  Should be sent upstream
5
 
 
6
 
Index: insserv/tests/suite
7
 
===================================================================
8
 
--- insserv.orig/tests/suite    2009-09-26 22:35:26.000000000 +0200
9
 
+++ insserv/tests/suite 2009-09-26 22:35:39.000000000 +0200
10
 
@@ -94,6 +94,12 @@
11
 
     $insserv $debug -c $insconf -p $initddir -o $overridedir -r $script
12
 
 }
13
 
 
14
 
+initdir_purge ()
15
 
+{
16
 
+    rm -rf ${initddir}/../rc*.d ${initddir}
17
 
+    mkdir -p ${initddir}
18
 
+}
19
 
+
20
 
 relpath ()
21
 
 {
22
 
     local OLDIFS IFS
23
 
@@ -201,6 +207,13 @@
24
 
     chmod u+w,a+rx $script
25
 
 }
26
 
 
27
 
+remscript ()
28
 
+{
29
 
+    local scriptname=$1
30
 
+    local script=${initddir}/$scriptname
31
 
+    rm -f $script
32
 
+}
33
 
+
34
 
 insertscript ()
35
 
 {
36
 
     local scriptname=$1