tests: Exit with skipped exit code when test not performed
These tests were not performed and therefore did not pass, nor fail. This fixes misleading test exit code where, for instance, the pseries_test will pass on i386-pc, which is not a pseries architecture. Signed-off-by: Glenn Washburn <development@efficientek.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
bcb15e011a
commit
4dc5259b6e
@ -22,16 +22,16 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: Don't mess with real devices when OS is active
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: qemu gets bonito DMA wrong
|
||||
mipsel-loongson)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: no AHCI on ARC and qemu-mips platforms
|
||||
mips*-arc | mips*-qemu_mips)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: No native drivers are available for those
|
||||
powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
|
||||
|
||||
@ -22,16 +22,16 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: emu is different
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: Flash targets
|
||||
i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: currently grub-shell uses only -kernel for loongson
|
||||
mipsel-loongson)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: OFW fails to open CD-ROM
|
||||
i386-ieee1275)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
v=$(echo hello | "${grubshell}" --boot=cd)
|
||||
|
||||
@ -22,7 +22,7 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# FIXME: Only mips currently supports configurable core compression
|
||||
*-emu | i386-* | x86_64-* | sparc64-* | ia64-*)
|
||||
exit 0
|
||||
exit 77
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@ -22,16 +22,16 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: Don't mess with real devices when OS is active
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: qemu gets bonito DMA wrong
|
||||
mipsel-loongson)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: no USB on ARC and qemu-mips platforms
|
||||
mips*-arc | mips*-qemu_mips)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: No native drivers are available for those
|
||||
powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
|
||||
|
||||
@ -22,28 +22,28 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: emu is different
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: Flash targets
|
||||
i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: currently grub-shell uses only -kernel for loongson
|
||||
mipsel-loongson)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: We don't support EFI floppy boot in grub-mkrescue
|
||||
*-efi)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: no floppy support
|
||||
i386-multiboot)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: QEMU firmware crashes when trying to boot from floppy
|
||||
sparc64-ieee1275)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: QEMU doesn't emulate SCSI floppies
|
||||
mipsel-arc | mips-arc)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: powerpc doesn't boot from floppy except OldWorld Macs which we don't support anyway
|
||||
powerpc-ieee1275)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
v=$(echo hello | "${grubshell}" --boot=fd --mkrescue-arg="--compress=xz --fonts= --locales= --themes= -no-pad")
|
||||
|
||||
@ -5,7 +5,7 @@ set -e
|
||||
|
||||
# FIXME: OpenBIOS on sparc64 doesn't implement RTC
|
||||
if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = sparc64-ieee1275 ]; then
|
||||
exit 0
|
||||
exit 77
|
||||
fi
|
||||
|
||||
pdt="$(date -u +%s)"
|
||||
|
||||
@ -6,15 +6,15 @@ set -e
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# FIXME: OpenBIOS on sparc64 doesn't implement RTC
|
||||
sparc64-ieee1275)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: ARC doesn't provide any way to set time
|
||||
*-arc)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: EMU doesn't provide any way to set time
|
||||
# Even if it did we'd need some kind of sandbox to avoid
|
||||
# modifying real system time.
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
out=$(cat <<EOF | @builddir@/grub-shell
|
||||
|
||||
@ -5,7 +5,7 @@ set -e
|
||||
|
||||
# FIXME: OpenBIOS on sparc64 doesn't implement RTC
|
||||
if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = sparc64-ieee1275 ]; then
|
||||
exit 0
|
||||
exit 77
|
||||
fi
|
||||
|
||||
# Compare RTC with interval timer.
|
||||
|
||||
@ -22,13 +22,13 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: emu is different
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: Flash targets
|
||||
i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: currently grub-shell uses only -kernel for loongson
|
||||
mipsel-loongson)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
v=$(echo hello | "${grubshell}" --boot=hd)
|
||||
|
||||
@ -22,22 +22,22 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: emu is different
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: Flash targets
|
||||
i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: currently grub-shell uses only -kernel for loongson
|
||||
mipsel-loongson)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: no rtl8139 support
|
||||
i386-multiboot)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: We don't fully support netboot on ARC
|
||||
*-arc)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: Many QEMU firmware have no netboot capability
|
||||
*-efi | i386-ieee1275 | powerpc-ieee1275 | sparc64-ieee1275)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
v=$(echo hello | "${grubshell}" --boot=net)
|
||||
|
||||
@ -22,16 +22,16 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: Don't mess with real devices when OS is active
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: qemu gets bonito DMA wrong
|
||||
mipsel-loongson)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: no USB on ARC and qemu-mips platforms
|
||||
mips*-arc | mips*-qemu_mips)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: No native drivers are available for those
|
||||
powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
|
||||
|
||||
@ -70,21 +70,21 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
powerpc-ieee1275)
|
||||
disk=ieee1275//pci@80000000/mac-io@4/ata-3@20000/disk@0
|
||||
# FIXME: QEMU firmware has bugs which prevent it from accessing hard disk w/o recognised label.
|
||||
exit 0
|
||||
exit 77
|
||||
;;
|
||||
sparc64-ieee1275)
|
||||
disk=ieee1275//pci@1fe\,0/pci-ata@5/ide0@500/disk@0
|
||||
# FIXME: QEMU firmware has bugs which prevent it from accessing hard disk w/o recognised label.
|
||||
exit 0
|
||||
exit 77
|
||||
;;
|
||||
i386-ieee1275)
|
||||
disk=ieee1275/d
|
||||
# FIXME: QEMU firmware has bugs which prevent it from accessing hard disk w/o recognised label.
|
||||
exit 0
|
||||
exit 77
|
||||
;;
|
||||
mips-arc)
|
||||
# FIXME: ARC firmware has bugs which prevent it from accessing hard disk w/o dvh disklabel.
|
||||
exit 0 ;;
|
||||
exit 77 ;;
|
||||
mipsel-arc)
|
||||
disk=arc/scsi0/disk0/rdisk0
|
||||
;;
|
||||
|
||||
@ -25,13 +25,13 @@ indisk=ata0
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: Don't mess with real devices when OS is active
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: no ATA on ARC platforms (they use SCSI)
|
||||
*-arc)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: No native drivers are available for those
|
||||
powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
i386-ieee1275)
|
||||
disk=hdb
|
||||
indisk=ata1
|
||||
|
||||
@ -20,7 +20,7 @@ grubshell=@builddir@/grub-shell
|
||||
. "@builddir@/grub-core/modinfo.sh"
|
||||
|
||||
if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" != powerpc-ieee1275 ]; then
|
||||
exit 0
|
||||
exit 77
|
||||
fi
|
||||
|
||||
if [ "$(echo hello | "${grubshell}" --pseries --timeout=180 --boot=cd)" != "Hello World" ]; then
|
||||
|
||||
@ -22,16 +22,16 @@ grubshell=@builddir@/grub-shell
|
||||
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
||||
# PLATFORM: Don't mess with real devices when OS is active
|
||||
*-emu)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: qemu gets bonito DMA wrong
|
||||
mipsel-loongson)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# PLATFORM: no USB on ARC and qemu-mips platforms
|
||||
mips*-arc | mips*-qemu_mips)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
# FIXME: No native drivers are available for those
|
||||
powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi)
|
||||
exit 0;;
|
||||
exit 77;;
|
||||
esac
|
||||
|
||||
imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user