Magellan Linux

Annotation of /tags/grubby-8_40/test.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1720 - (hide annotations) (download) (as text)
Sat Feb 18 00:51:28 2012 UTC (12 years, 2 months ago) by niro
Original Path: trunk/grubby/test.sh
File MIME type: application/x-sh
File size: 18795 byte(s)
Add new '--default-index' feature.

This displays the (numeric) index of the default entry directly
from the parsed configuration file.

Signed-off-by: Cleber Rosa <crosa@redhat.com>



1 niro 532 #!/bin/bash
2 niro 1308 #
3     # test.sh -- grubby regression tests
4     #
5     # Copyright 2007-2008 Red Hat, Inc. All rights reserved.
6     #
7     # This program is free software; you can redistribute it and/or modify
8     # it under the terms of the GNU General Public License as published by
9     # the Free Software Foundation; either version 2 of the License, or
10     # (at your option) any later version.
11     #
12     # This program is distributed in the hope that it will be useful,
13     # but WITHOUT ANY WARRANTY; without even the implied warranty of
14     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     # GNU General Public License for more details.
16     #
17     # You should have received a copy of the GNU General Public License
18     # along with this program. If not, see <http://www.gnu.org/licenses/>.
19     #
20 niro 532
21 niro 1308 if [ -n "$TOPDIR" ]; then
22     LD_LIBRARY_PATH="$TOPDIR/nash:$TOPDIR/bdevid:/usr/lib:/lib"
23     export LD_LIBRARY_PATH
24     fi
25 niro 532
26 niro 1308 #----------------------------------------------------------------------
27     # Global vars
28     #----------------------------------------------------------------------
29 niro 532
30 niro 1308 cmd=${0##*/}
31     opt_bootloader=*
32     opt_verbose=false
33     read -d '' usage <<EOT
34     usage: test.sh [ -hv ]
35 niro 532
36 niro 1308 -b B --bootloader=B Test bootloader B instead of all
37     -h --help Show this help message
38     -v --verbose Verbose output
39     EOT
40     declare -i pass=0 fail=0
41     testing=
42 niro 532
43 niro 1308 #----------------------------------------------------------------------
44     # Functions
45     #----------------------------------------------------------------------
46 niro 532
47 niro 1308 oneTest() {
48     typeset mode=$1 cfg=test/$2 correct=test/results/$3
49     shift 3
50 niro 532
51 niro 1308 echo "$testing ... $mode $cfg $correct"
52     runme=( ./grubby "$mode" --bad-image-okay -c "$cfg" -o - "$@" )
53     if "${runme[@]}" | cmp "$correct" > /dev/null; then
54     (( pass++ ))
55     if $opt_verbose; then
56     echo -------------------------------------------------------------
57     echo -n "PASS: "
58     printf "%q " "${runme[@]}"; echo
59     "${runme[@]}" | diff -U30 "$cfg" -
60     echo
61     fi
62     else
63     (( fail++ ))
64 niro 532 echo -------------------------------------------------------------
65 niro 1308 echo -n "FAIL: "
66     printf "%q " "${runme[@]}"; echo
67     "${runme[@]}" | diff -U30 "$correct" -
68     echo
69 niro 532 fi
70     }
71    
72 niro 1719 # Test feature that display some information, checking that output instead of
73     # the generated configuration file
74     oneDisplayTest() {
75     typeset mode=$1 cfg=test/$2 correct=test/results/$3
76     shift 3
77    
78     echo "$testing ... $mode $cfg $correct"
79     runme=( ./grubby "$mode" --bad-image-okay -c "$cfg" "$@" )
80     if "${runme[@]}" | cmp "$correct" > /dev/null; then
81     (( pass++ ))
82     if $opt_verbose; then
83     echo -------------------------------------------------------------
84     echo -n "PASS: "
85     printf "%q " "${runme[@]}"; echo
86     "${runme[@]}" | diff -U30 "$cfg" -
87     echo
88     fi
89     else
90     (( fail++ ))
91     echo -------------------------------------------------------------
92     echo -n "FAIL: "
93     printf "%q " "${runme[@]}"; echo
94     "${runme[@]}" | diff -U30 "$correct" -
95     echo
96     fi
97     }
98    
99 niro 1308 # generate convenience functions
100     for b in $(./grubby --help | \
101     sed -n 's/^.*--\([^ ]*\) *configure \1 bootloader$/\1/p'); do
102     eval "${b}Test() { [[ \"$b\" == \$opt_bootloader ]] && oneTest --$b \"\$@\"; }"
103 niro 1719 eval "${b}DisplayTest() { [[ \"$b\" == \$opt_bootloader ]] && oneDisplayTest --$b \"\$@\"; }"
104 niro 1308 done
105 niro 532
106 niro 1308 #----------------------------------------------------------------------
107     # Main
108     #----------------------------------------------------------------------
109 niro 532
110 niro 1308 # Use /usr/bin/getopt which supports GNU-style long options
111     args=$(getopt -o b:hv --long bootloader,help,verbose -n "$cmd" -- "$@") || exit
112     eval set -- "$args"
113     while true; do
114     case $1 in
115     -b|--bootloader) opt_bootloader=$2; shift 2 ;;
116     -h|--help) echo "$usage"; exit 0 ;;
117     -v|--verbose) opt_verbose=true; shift ;;
118     --) shift; break ;;
119     *) echo "failed to process cmdline args" >&2; exit 1 ;;
120     esac
121     done
122 niro 532
123 niro 1308 export MALLOC_CHECK_=2
124 niro 532
125 niro 1308 testing="Parse/write comparison"
126     for n in test/*.[0-9]*; do
127     n=${n#*/} # remove test/
128     b=${n%.*} # remove suffix
129     [[ $b == $opt_bootloader ]] || continue
130     ${b}Test $n ../$n --remove-kernel 1234
131 niro 532 done
132    
133 niro 1308 testing="Permission preservation"
134     unset b
135     for n in test/*.[0-9]*; do
136     n=${n#*/} # remove test/
137     [[ ${n%.*} == "$b" ]] && continue
138     b=${n%.*} # remove suffix
139     [[ $b == $opt_bootloader ]] || continue
140    
141     echo "$testing ... --$b"
142    
143     cp test/$n ${b}-test
144     chmod 0614 ${b}-test
145     touch -t 200301010101.00 ${b}-test
146     time=$(ls -l ${b}-test | awk '{ print $6 " " $7 " "$8}')
147     perm=$(ls -l ${b}-test | awk '{print $1}')
148     ./grubby --${b} --add-kernel bar --title title -c ${b}-test
149     if [[ $? != 0 ]]; then
150     echo " FAIL (grubby returned non-zero)"
151     (( fail++ ))
152     elif newtime=$(ls -l ${b}-test | awk '{ print $6 " " $7 " "$8}') && \
153     newperm=$(ls -l ${b}-test | awk '{print $1}') && \
154     [[ $time == "$newtime" || $perm != "$newperm" ]]
155     then
156     echo " FAIL ($perm $newperm)";
157     (( fail++ ))
158     else
159     (( pass++ ))
160     fi
161     rm -f ${b}-test
162 niro 532 done
163    
164 niro 1308 testing="Following symlinks"
165     unset b
166     for n in test/*.[0-9]*; do
167     n=${n#*/} # remove test/
168     [[ ${n%.*} == "$b" ]] && continue
169     b=${n%.*} # remove suffix
170     [[ $b == $opt_bootloader ]] || continue
171 niro 532
172 niro 1308 echo "$testing ... --$b"
173 niro 532
174 niro 1308 cp test/${b}.1 ${b}-test
175     ln -s ./${b}-test mytest
176     ./grubby --${b} --add-kernel bar --title title -c mytest
177     if [[ $? != 0 ]]; then
178     echo " failed (grubby returned non-zero)"
179     (( fail++ ))
180     elif [[ ! -L mytest ]]; then
181     echo " failed (not a symlink)"
182     (( fail++ ))
183     elif target=$(readlink mytest) && [[ $target != "./${b}-test" ]]; then
184     echo " failed (wrong target)"
185     (( fail++ ))
186     else
187     (( pass++ ))
188     fi
189     rm -f ${b}-test mytest
190     done
191 niro 532
192 niro 1308 testing="GRUB default directive"
193 niro 532 grubTest grub.1 default/g1.1 --boot-filesystem=/boot --add-kernel /boot/new-kernel --title Some_Title
194     grubTest grub.1 default/g1.2 --boot-filesystem=/boot --add-kernel /boot/new-kernel --title Some_Title --make-default
195     grubTest grub.3 default/g3.1 --boot-filesystem=/boot --set-default=/boot/vmlinuz-2.4.7-2
196     grubTest grub.3 default/g3.2 --boot-filesystem=/boot --set-default=/boot/vmlinuz-2.4.7-2smp
197     grubTest grub.4 default/g4.1 --boot-filesystem=/ --set-default=/boot/vmlinuz-2.4.7-ac3 --remove-kernel /boot/vmlinuz-2.4.7-2.5
198     grubTest grub.4 default/g4.2 --boot-filesystem=/ --set-default=/boot/vmlinuz-2.4.7-ac3 --remove-kernel /boot/vmlinuz-2.4.7-2.5 --add-kernel=/boot/new-kernel --copy-default --title New_Title
199     grubTest grub.6 default/g6.1 --remove-kernel=/boot/vmlinuz-2.4.7-2.9 --boot-filesystem=/
200    
201 niro 1720 testing="GRUB display default index"
202     grubDisplayTest grub.1 defaultindex/0 --default-index
203     grubDisplayTest grub.2 defaultindex/0 --default-index
204     grubDisplayTest grub.3 defaultindex/0 --default-index
205     grubDisplayTest grub.4 defaultindex/0 --default-index
206     grubDisplayTest grub.5 defaultindex/0 --default-index
207     grubDisplayTest grub.6 defaultindex/2 --default-index
208     grubDisplayTest grub.7 defaultindex/2 --default-index
209     grubDisplayTest grub.8 defaultindex/0 --default-index
210     grubDisplayTest grub.9 defaultindex/0 --default-index
211     grubDisplayTest grub.10 defaultindex/0 --default-index
212     grubDisplayTest grub.10 defaultindex/0 --default-index
213    
214 niro 1308 testing="LILO default directive"
215 niro 532 liloTest lilo.1 default/l1.1 --set-default=/boot/vmlinuz-2.4.18-4
216     liloTest lilo.1 default/l1.2 --remove-kernel=/boot/vmlinuz-2.4.18-4smp
217     liloTest lilo.1 default/l1.3 --add-kernel /boot/kernel --title label \
218     --copy-default
219     liloTest lilo.1 default/l1.4 --add-kernel /boot/kernel --title label \
220     --copy-default --make-default
221    
222 niro 1308 testing="Z/IPL default directive"
223 niro 532 ziplTest zipl.1 default/z1.1 --add-kernel /boot/new-kernel --title test
224     ziplTest zipl.1 default/z1.2 --add-kernel /boot/new-kernel --title test --make-default
225    
226 niro 1308 testing="GRUB fallback directive"
227 niro 532 grubTest grub.5 fallback/g5.1 --remove-kernel=/boot/vmlinuz-2.4.7-ac3 \
228     --boot-filesystem=/
229     grubTest grub.5 fallback/g5.2 --remove-kernel=/boot/vmlinuz-2.4.7-2.5 \
230     --boot-filesystem=/
231     grubTest grub.5 fallback/g5.3 --remove-kernel=/boot/vmlinuz-2.4.7-2.5 \
232     --boot-filesystem=/ --copy-default --add-kernel=/boot/new-kernel \
233     --title="Some_Title"
234    
235 niro 1308 testing="GRUB new kernel argument handling"
236 niro 532 grubTest grub.1 args/g1.1 --boot-filesystem=/boot \
237     --add-kernel=/boot/foo --title=some_title --args="1234" --copy-default
238     grubTest grub.1 args/g1.2 --boot-filesystem=/boot \
239     --add-kernel=/boot/foo --title=some_title --args="1234"
240    
241 niro 1308 testing="GRUB remove kernel"
242 niro 532 grubTest grub.7 remove/g7.1 --boot-filesystem=/ \
243     --remove-kernel=/boot/vmlinuz-2.4.7-2.5
244     grubTest grub.3 remove/g3.1 --boot-filesystem=/ \
245     --remove-kernel=DEFAULT
246     grubTest grub.9 remove/g9.1 --boot-filesystem=/boot \
247     --remove-kernel=/boot/vmlinuz-2.4.7-2
248    
249 niro 1308 testing="YABOOT remove kernel"
250 niro 532 yabootTest yaboot.1 remove/y1.1 --boot-filesystem=/ --remove-kernel=DEFAULT
251     yabootTest yaboot.1 remove/y1.2 --boot-filesystem=/ --remove-kernel=/boot/vmlinuz-2.5.50-eepro
252     yabootTest yaboot.2 remove/y2.1 --boot-filesystem=/ --remove-kernel=/boot/vmlinux-2.5.50
253    
254 niro 1308 testing="Z/IPL remove kernel"
255 niro 532 ziplTest zipl.1 remove/z1.1 --remove-kernel=/boot/vmlinuz-2.4.9-38
256     ziplTest zipl.1 remove/z1.2 --remove-kernel=DEFAULT
257    
258 niro 1308 testing="GRUB update kernel argument handling"
259 niro 532 grubTest grub.1 updargs/g1.1 --update-kernel=DEFAULT --args="root=/dev/hda1"
260     grubTest grub.1 updargs/g1.2 --update-kernel=DEFAULT \
261     --args="root=/dev/hda1 hda=ide-scsi root=/dev/hda2"
262     grubTest grub.3 updargs/g3.1 --update-kernel=DEFAULT --args "hdd=notide-scsi"
263     grubTest grub.3 updargs/g3.2 --update-kernel=DEFAULT \
264     --args "hdd=notide-scsi root=/dev/hdd1"
265     grubTest grub.3 updargs/g3.2 --update-kernel=DEFAULT \
266     --args "root=/dev/hdd1 hdd=notide-scsi"
267     grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd"
268     grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd=ide-scsi"
269     grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd=foobar"
270     grubTest grub.3 updargs/g3.7 --update-kernel=ALL \
271     --remove-args="hdd root ro"
272     grubTest grub.7 updargs/g7.2 --boot-filesystem=/ \
273     --update-kernel=ALL --args "hde=ide-scsi"
274     grubTest grub.7 updargs/g7.2 --boot-filesystem=/ \
275     --update-kernel=ALL --args "hde=ide-scsi"
276     grubTest grub.7 updargs/g7.3 --boot-filesystem=/ \
277     --update-kernel=DEFAULT --args "hde=ide-scsi"
278     grubTest grub.7 updargs/g7.4 --boot-filesystem=/ \
279     --update-kernel=/vmlinuz-2.4.7-2 \
280     --args "ro root=LABEL=/ console=tty0 console=ttyS1,9600n81 single"
281 niro 1308 grubTest grub.7 updargs/g7.5 --boot-filesystem=/ \
282     --update-kernel=ALL --args "root=/dev/hda2"
283 niro 532 grubTest grub.11 updargs/g11.1 --boot-filesystem=/ \
284     --update-kernel=/vmlinuz-2.4.7-2smp \
285     --args "ro root=LABEL=/ console=tty0 console=ttyS1,9600n81 single"
286     grubTest grub.11 updargs/g11.2 --boot-filesystem=/ \
287     --update-kernel=/vmlinuz-2.4.7-2smp \
288     --args "ro root=LABEL=/ single"
289    
290 niro 1308 testing="LILO update kernel argument handling"
291 niro 532 liloTest lilo.1 updargs/l1.1 --update-kernel=/boot/vmlinuz-2.4.18-4 \
292     --args="root=/dev/md1"
293     liloTest lilo.1 updargs/l1.2 --update-kernel=/boot/vmlinuz-2.4.18-4smp \
294     --args="root=LABEL=foo"
295     liloTest lilo.1 updargs/l1.3 --update-kernel=DEFAULT --args="foo"
296     liloTest lilo.1 updargs/l1.4 --update-kernel=ALL --args="foo bar root=/dev/md1"
297     liloTest lilo.1 updargs/l1.4 --update-kernel=ALL --args="foo root=/dev/md1 bar"
298     liloTest lilo.1 updargs/l1.6 --update-kernel=ALL --args="foo root=LABEL=/ bar"
299     liloTest lilo.3 updargs/l3.1 --update-kernel=/boot/vmlinuz-2.4.18-4 \
300     --remove-args="hda"
301     liloTest lilo.3 updargs/l3.2 --update-kernel=ALL \
302     --remove-args="single" --args "root=/dev/hda2"
303    
304 niro 1308 testing="LILO add kernel"
305 niro 532 liloTest lilo.4 add/l4.1 --add-kernel=/boot/new-kernel.img --title="title" \
306     --copy-default --boot-filesystem=/boot
307     liloTest lilo.4 add/l4.2 --add-kernel=/boot/new-kernel.img --title="linux" \
308     --copy-default --boot-filesystem=/boot --remove-kernel "TITLE=linux"
309     liloTest lilo.5 add/l5.1 --add-kernel=/boot/new-kernel.img --title="title" \
310     --copy-default --boot-filesystem=/boot
311     liloTest lilo.5 add/l5.2 --add-kernel=/boot/new-kernel.img --title="linux" \
312     --copy-default --boot-filesystem=/boot --remove-kernel "TITLE=linux"
313     liloTest lilo.6 add/l6.1 --add-kernel=/boot/new-kernel.img --title="title" \
314     --initrd=/boot/new-initrd --copy-default --boot-filesystem=/boot
315     liloTest lilo.6 add/l6.2 --add-kernel=/boot/new-kernel.img --title="linux" \
316     --initrd=/boot/new-initrd --copy-default --boot-filesystem=/boot --remove-kernel "TITLE=linux"
317    
318    
319 niro 1308 testing="GRUB add kernel"
320 niro 532 grubTest grub.1 add/g1.1 --add-kernel=/boot/new-kernel.img --title='title' \
321     --initrd=/boot/new-initrd --boot-filesystem=/
322     grubTest grub.1 add/g1.2 --add-kernel=/boot/new-kernel.img --title='title' \
323     --initrd=/boot/new-initrd --boot-filesystem=/boot
324     grubTest grub.1 add/g1.3 --add-kernel=/boot/new-kernel.img --title='title' \
325     --initrd=/boot/new-initrd --boot-filesystem=/ --copy-default
326     grubTest grub.1 add/g1.4 --add-kernel=/boot/new-kernel.img --title='title' \
327     --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default
328 niro 1308 grubTest grub.1 add/g1.5 --add-kernel=/boot/new-kernel.img --title='title' \
329     --initrd=/boot/new-initrd --extra-initrd=/boot/extra-initrd --boot-filesystem=/
330     grubTest grub.1 add/g1.6 --add-kernel=/boot/new-kernel.img --title='title' \
331     --initrd=/boot/new-initrd --extra-initrd=/boot/extra-initrd --boot-filesystem=/boot
332 niro 532 grubTest grub.2 add/g2.1 --add-kernel=/boot/vmlinuz-2.4.7-2 \
333     --initrd=/boot/initrd-2.4.7-new.img --boot-filesystem=/boot --copy-default \
334     --title="Red Hat Linux (2.4.7-2)" \
335     --remove-kernel="TITLE=Red Hat Linux (2.4.7-2)"
336     grubTest grub.8 add/g8.1 --add-kernel=/boot/new-kernel.img --title='title' \
337     --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default
338     grubTest grub.8 add/g8.2 --add-kernel=/boot/new-kernel.img --title='title' \
339     --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default \
340     --args='console=tty0 console=ttyS1,9600n81 single'
341     grubTest grub.11 add/g11.1 --add-kernel=/boot/new-kernel.img --title='title' \
342     --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default \
343     --args='console=tty0 console=ttyS1,9600n81 single'
344    
345 niro 1698 testing="GRUB2 add kernel"
346     grub2Test grub2.1 add/g2-1.1 --add-kernel=/boot/new-kernel.img --title='title' \
347     --initrd=/boot/new-initrd --boot-filesystem=/boot/ --copy-default
348     grub2Test grub2.1 add/g2-1.2 --add-kernel=/boot/new-kernel.img --title='title' \
349     --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
350     --copy-default --make-default
351     grub2Test grub2.1 add/g2-1.3 --add-kernel=/boot/new-kernel.img --title='title' \
352     --boot-filesystem=/boot/ --copy-default --make-default
353    
354     testing="GRUB2 add initrd"
355     grub2Test grub2.2 add/g2-1.4 --update-kernel=/boot/new-kernel.img \
356     --initrd=/boot/new-initrd --boot-filesystem=/boot/
357    
358 niro 1720 testing="GRUB2 display default index"
359     grub2DisplayTest grub2.1 defaultindex/0 --default-index
360     grub2DisplayTest grub2.2 defaultindex/0 --default-index
361    
362 niro 1308 testing="YABOOT add kernel"
363 niro 532 yabootTest yaboot.1 add/y1.1 --copy-default --boot-filesystem=/ --add-kernel=/boot/new-kernel \
364     --title=newtitle
365     yabootTest yaboot.1 add/y1.2 --add-kernel=/boot/new-kernel --boot-filesystem=/ --title=newtitle
366    
367 niro 1308 testing="YABOOT empty label"
368 niro 532 yabootTest yaboot.3 add/y3.1 --add-kernel=/boot/new-kernel --boot-filesystem=/ --title=newtitle
369    
370 niro 1308 testing="Z/IPL add kernel"
371 niro 532 ziplTest zipl.1 add/z1.1 --add-kernel=/boot/new-kernel.img --title test
372     ziplTest zipl.1 add/z1.2 --add-kernel=/boot/new-kernel.img --title test --copy-default
373    
374 niro 1308 testing="LILO long titles"
375 niro 532 liloTest lilo.1 longtitle/l1.1 --add-kernel=/boot/new-kernel.img \
376     --title="linux-longtitle" --copy-default --boot-filesystem=/boot
377     liloTest lilo.1 longtitle/l1.2 --add-kernel=/boot/new-kernel.img \
378     --title="linux-toolongtitle" --copy-default --boot-filesystem=/boot
379     liloTest lilo.7 longtitle/l7.1 --add-kernel=/boot/new-kernel.img \
380     --title="linux-longtitle-fix" --copy-default --boot-filesystem=/boot
381    
382 niro 1308 testing="ELILO long titles"
383 niro 532 eliloTest lilo.7 longtitle/e7.1 --add-kernel=/boot/new-kernel.img \
384     --title="linux-longtitle-fix" --copy-default --boot-filesystem=/boot
385    
386 niro 1308 testing="GRUB add multiboot"
387 niro 532 grubTest grub.1 multiboot/g1.1 --add-multiboot=/boot/xen.gz \
388     --add-kernel=/boot/vmlinuz-2.6.10-1.1088_FC4 --boot-filesystem=/boot \
389     --initrd=/boot/initrd-2.6.10-1.1088_FC4.img --title foo \
390     --mbargs="dom0_mem=130000"
391     grubTest grub.1 multiboot/g1.2 --add-multiboot=/boot/xen.gz \
392     --add-kernel=/boot/vmlinuz-2.6.10-1.1088_FC4 --boot-filesystem=/boot \
393     --initrd=/boot/initrd-2.6.10-1.1088_FC4.img --title foo \
394     --mbargs="dom0_mem=130000" --copy-default
395     grubTest grub.10 multiboot/g10.1 --add-multiboot=/boot/xen.gz \
396     --add-kernel=/boot/vmlinuz-2.6.10-1.1088_FC4 --boot-filesystem=/boot \
397     --initrd=/boot/initrd-2.6.10-1.1088_FC4.img --title foo \
398     --mbargs="dom0_mem=130000"
399     grubTest grub.10 multiboot/g10.2 --add-multiboot=/boot/xen.gz \
400     --add-kernel=/boot/vmlinuz-2.6.10-1.1088_FC4 --boot-filesystem=/boot \
401     --initrd=/boot/initrd-2.6.10-1.1088_FC4.img --title foo \
402     --mbargs="dom0_mem=130000" --copy-default
403     grubTest grub.10 multiboot/g10.3 --add-kernel=/boot/vmlinuz-2.6.10-1.1088_FC4 \
404     --initrd=/boot/initrd-2.6.10-1.1088_FC4.img --title foo \
405     --copy-default --boot-filesystem=/boot
406     grubTest grub.10 multiboot/g10.4 --add-kernel=/boot/vmlinuz-2.6.10-1.1088_FC4 \
407     --initrd=/boot/initrd-2.6.10-1.1088_FC4.img --title foo \
408     --boot-filesystem=/boot
409    
410 niro 1308 testing="GRUB remove multiboot"
411 niro 532 grubTest grub.10 multiboot/g10.5 --boot-filesystem=/boot \
412     --remove-kernel=/boot/vmlinuz-2.6.10-1.1076_FC4
413     grubTest grub.10 multiboot/g10.6 --boot-filesystem=/boot \
414     --remove-kernel=/boot/vmlinuz-2.6.10-1.1082_FC4
415     grubTest grub.10 multiboot/g10.7 --boot-filesystem=/boot \
416     --remove-multiboot=/boot/xen.gz
417    
418 niro 1308 testing="ELILO add multiboot"
419     eliloTest elilo.1 multiboot/e1.1 --add-multiboot=/boot/xen.gz \
420     --add-kernel=/boot/vmlinuz-2.6.10-1.1088_FC4 --boot-filesystem=/boot \
421     --initrd=/boot/initrd-2.6.10-1.1088_FC4.img --title foo \
422     --mbargs="dom0_mem=130000"
423     eliloTest elilo.1 multiboot/e1.2 --add-multiboot=/boot/xen.gz \
424     --add-kernel=/boot/vmlinuz-2.6.10-1.1088_FC4 --boot-filesystem=/boot \
425     --initrd=/boot/initrd-2.6.10-1.1088_FC4.img --title foo \
426     --mbargs="dom0_mem=130000" --copy-default
427    
428     testing="ELILO remove multiboot"
429     eliloTest elilo.2 multiboot/e2.1 --boot-filesystem=/boot \
430     --remove-kernel=/boot/vmlinuz-2.6.10-1.1076_FC4
431     eliloTest elilo.2 multiboot/e2.2 --boot-filesystem=/boot \
432     --remove-kernel=/boot/vmlinuz-2.6.10-1.1082_FC4
433     eliloTest elilo.2 multiboot/e2.3 --boot-filesystem=/boot \
434     --remove-multiboot=/boot/xen.gz
435    
436     printf "\n%d (%d%%) tests passed, %d (%d%%) tests failed\n" \
437     $pass $(((100*pass)/(pass+fail))) \
438     $fail $(((100*fail)/(pass+fail)))
439    
440     exit $(( !!fail ))

Properties

Name Value
svn:executable *