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

« back to all changes in this revision

Viewing changes to tests/suite

  • 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:
79
79
        $time           hwclock
80
80
        <interactive>   udev mountdevsubfs checkroot checkfs console-screen
81
81
        EOF
 
82
    update_conf ()
 
83
    {
 
84
        set +C
 
85
        cat <<-'EOF' > $insconf
 
86
        $local_fs       +mountall +umountfs
 
87
        $network        +networking +ifupdown
 
88
        $named          +named +dnsmasq +lwresd +bind9 $network
 
89
        $remote_fs      $local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs
 
90
        $syslog         +syslog +sysklogd
 
91
        $portmap        portmap
 
92
        $time           hwclock
 
93
        <interactive>   udev mountdevsubfs checkroot checkfs console-screen
 
94
        EOF
 
95
        set -C
 
96
    }
 
97
 
82
98
fi
83
99
chmod u+w,a+r $insconf
84
100
 
94
110
    $insserv $debug -c $insconf -p $initddir -o $overridedir -r $script
95
111
}
96
112
 
 
113
initdir_purge ()
 
114
{
 
115
    rm -rf ${initddir}/../rc*.d ${initddir}
 
116
    mkdir -p ${initddir}
 
117
}
 
118
 
97
119
relpath ()
98
120
{
99
121
    local OLDIFS IFS
201
223
    chmod u+w,a+rx $script
202
224
}
203
225
 
 
226
remscript ()
 
227
{
 
228
    local scriptname=$1
 
229
    local script=${initddir}/$scriptname
 
230
    rm -f $script
 
231
}
 
232
 
204
233
insertscript ()
205
234
{
206
235
    local scriptname=$1
212
241
{
213
242
    local rcdpath=$(runlevel_path $1); shift
214
243
    local script=$1;   shift
215
 
    local ret=0
216
 
    test -L ${rcdpath}/[KS][0-9][0-9]$script || ret=1
 
244
    local ret=1
 
245
    for f in ${rcdpath}/[KS][0-9][0-9]$script ; do
 
246
        if [ -L $f ] ; then
 
247
            ret=0
 
248
        fi
 
249
    done
217
250
    counttest
218
251
    return $ret
219
252
}