mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
tests: Test aborts due to missing requirements should be marked as error instead of skipped
Many tests abort due to not being root or missing tools, for instance mkfs commands for file system tests. The tests are exited with code 77, which means they were skipped. A skipped test is a test that should not be run, e.g. a test specific to ARM64 should not be run on an x86 build. These aborts are actually a hard error, code 99. That means that the test could not be completed, but not because what was supposed to be tested failed, e.g. in these cases where a missing tool prevents the running of a test. Signed-off-by: Glenn Washburn <development@efficientek.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
ad59a3519a
commit
a21618c8a9
24 files changed
+45
-45
No files matched your search
+2
-2
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.btrfs >/dev/null 2>&1; then
|
if ! which mkfs.btrfs >/dev/null 2>&1; then
|
||||||
echo "mkfs.btrfs not installed; cannot test btrfs."
|
echo "mkfs.btrfs not installed; cannot test btrfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" btrfs
|
"@builddir@/grub-fs-tester" btrfs
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
if ! which cpio >/dev/null 2>&1; then
|
if ! which cpio >/dev/null 2>&1; then
|
||||||
echo "cpio not installed; cannot test cpio."
|
echo "cpio not installed; cannot test cpio."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" cpio_bin
|
"@builddir@/grub-fs-tester" cpio_bin
|
||||||
|
|||||||
+2
-2
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.exfat >/dev/null 2>&1; then
|
if ! which mkfs.exfat >/dev/null 2>&1; then
|
||||||
echo "mkfs.exfat not installed; cannot test exFAT."
|
echo "mkfs.exfat not installed; cannot test exFAT."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" exfat
|
"@builddir@/grub-fs-tester" exfat
|
||||||
@@ -7,22 +7,22 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.ext2 >/dev/null 2>&1; then
|
if ! which mkfs.ext2 >/dev/null 2>&1; then
|
||||||
echo "mkfs.ext2 not installed; cannot test ext2."
|
echo "mkfs.ext2 not installed; cannot test ext2."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.ext3 >/dev/null 2>&1; then
|
if ! which mkfs.ext3 >/dev/null 2>&1; then
|
||||||
echo "mkfs.ext3 not installed; cannot test ext3."
|
echo "mkfs.ext3 not installed; cannot test ext3."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.ext4 >/dev/null 2>&1; then
|
if ! which mkfs.ext4 >/dev/null 2>&1; then
|
||||||
echo "mkfs.ext4 not installed; cannot test ext4."
|
echo "mkfs.ext4 not installed; cannot test ext4."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" ext2_old
|
"@builddir@/grub-fs-tester" ext2_old
|
||||||
|
|||||||
+2
-2
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.f2fs >/dev/null 2>&1; then
|
if ! which mkfs.f2fs >/dev/null 2>&1; then
|
||||||
echo "mkfs.f2fs not installed; cannot test f2fs."
|
echo "mkfs.f2fs not installed; cannot test f2fs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.vfat >/dev/null 2>&1; then
|
if ! which mkfs.vfat >/dev/null 2>&1; then
|
||||||
echo "mkfs.vfat not installed; cannot test FAT."
|
echo "mkfs.vfat not installed; cannot test FAT."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" vfat16a
|
"@builddir@/grub-fs-tester" vfat16a
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ grubshell=@builddir@/grub-shell
|
|||||||
|
|
||||||
if ! which gzip >/dev/null 2>&1; then
|
if ! which gzip >/dev/null 2>&1; then
|
||||||
echo "gzip not installed; cannot test gzip compression."
|
echo "gzip not installed; cannot test gzip compression."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
v=$(echo hello | "${grubshell}" --mkrescue-arg=--compress=gz)
|
v=$(echo hello | "${grubshell}" --mkrescue-arg=--compress=gz)
|
||||||
|
|||||||
+3
-3
@@ -7,17 +7,17 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.hfs >/dev/null 2>&1; then
|
if ! which mkfs.hfs >/dev/null 2>&1; then
|
||||||
echo "mkfs.hfs not installed; cannot test HFS."
|
echo "mkfs.hfs not installed; cannot test HFS."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q mac_roman /proc/modules && ! modprobe mac_roman; then
|
if ! grep -q mac_roman /proc/modules && ! modprobe mac_roman; then
|
||||||
echo "no mac-roman support; cannot test HFS."
|
echo "no mac-roman support; cannot test HFS."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" hfs
|
"@builddir@/grub-fs-tester" hfs
|
||||||
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.hfsplus >/dev/null 2>&1; then
|
if ! which mkfs.hfsplus >/dev/null 2>&1; then
|
||||||
echo "mkfs.hfsplus not installed; cannot test hfsplus."
|
echo "mkfs.hfsplus not installed; cannot test hfsplus."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" hfsplus
|
"@builddir@/grub-fs-tester" hfsplus
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
if ! which xorriso >/dev/null 2>&1; then
|
if ! which xorriso >/dev/null 2>&1; then
|
||||||
echo "xorriso not installed; cannot test iso9660."
|
echo "xorriso not installed; cannot test iso9660."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" joliet
|
"@builddir@/grub-fs-tester" joliet
|
||||||
|
|||||||
+2
-2
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.jfs >/dev/null 2>&1; then
|
if ! which mkfs.jfs >/dev/null 2>&1; then
|
||||||
echo "mkfs.jfs not installed; cannot test JFS."
|
echo "mkfs.jfs not installed; cannot test JFS."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" jfs
|
"@builddir@/grub-fs-tester" jfs
|
||||||
@@ -21,7 +21,7 @@ grubshell=@builddir@/grub-shell
|
|||||||
|
|
||||||
if ! which lzop >/dev/null 2>&1; then
|
if ! which lzop >/dev/null 2>&1; then
|
||||||
echo "lzop not installed; cannot test lzo compression."
|
echo "lzop not installed; cannot test lzo compression."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
v=$(echo hello | "${grubshell}" --mkrescue-arg=--compress=lzo)
|
v=$(echo hello | "${grubshell}" --mkrescue-arg=--compress=lzo)
|
||||||
|
|||||||
@@ -7,22 +7,22 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.minix >/dev/null 2>&1; then
|
if ! which mkfs.minix >/dev/null 2>&1; then
|
||||||
echo "mkfs.minix not installed; cannot test minixfs."
|
echo "mkfs.minix not installed; cannot test minixfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! mkfs.minix -h | grep -- -v > /dev/null; then
|
if ! mkfs.minix -h | grep -- -v > /dev/null; then
|
||||||
echo "mkfs.minix doesn't support minix2fs; cannot test minix*fs."
|
echo "mkfs.minix doesn't support minix2fs; cannot test minix*fs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! mkfs.minix -h | grep -- -3 > /dev/null; then
|
if ! mkfs.minix -h | grep -- -3 > /dev/null; then
|
||||||
echo "mkfs.minix doesn't support minix3fs; cannot test minix*fs."
|
echo "mkfs.minix doesn't support minix3fs; cannot test minix*fs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" minix
|
"@builddir@/grub-fs-tester" minix
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.nilfs2 >/dev/null 2>&1; then
|
if ! which mkfs.nilfs2 >/dev/null 2>&1; then
|
||||||
echo "mkfs.nilfs2 not installed; cannot test nilfs2."
|
echo "mkfs.nilfs2 not installed; cannot test nilfs2."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" nilfs2
|
"@builddir@/grub-fs-tester" nilfs2
|
||||||
+3
-3
@@ -7,17 +7,17 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.ntfs >/dev/null 2>&1; then
|
if ! which mkfs.ntfs >/dev/null 2>&1; then
|
||||||
echo "mkfs.ntfs not installed; cannot test ntfs."
|
echo "mkfs.ntfs not installed; cannot test ntfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which setfattr >/dev/null 2>&1; then
|
if ! which setfattr >/dev/null 2>&1; then
|
||||||
echo "setfattr not installed; cannot test ntfs."
|
echo "setfattr not installed; cannot test ntfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" ntfs
|
"@builddir@/grub-fs-tester" ntfs
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ esac
|
|||||||
|
|
||||||
if ! which parted >/dev/null 2>&1; then
|
if ! which parted >/dev/null 2>&1; then
|
||||||
echo "parted not installed; cannot test partmap"
|
echo "parted not installed; cannot test partmap"
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
|
imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.reiserfs >/dev/null 2>&1; then
|
if ! which mkfs.reiserfs >/dev/null 2>&1; then
|
||||||
echo "mkfs.reiserfs not installed; cannot test reiserfs."
|
echo "mkfs.reiserfs not installed; cannot test reiserfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" reiserfs
|
"@builddir@/grub-fs-tester" reiserfs
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
if ! which genromfs >/dev/null 2>&1; then
|
if ! which genromfs >/dev/null 2>&1; then
|
||||||
echo "genromfs not installed; cannot test romfs."
|
echo "genromfs not installed; cannot test romfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" romfs
|
"@builddir@/grub-fs-tester" romfs
|
||||||
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
if ! which mksquashfs >/dev/null 2>&1; then
|
if ! which mksquashfs >/dev/null 2>&1; then
|
||||||
echo "mksquashfs not installed; cannot test squashfs."
|
echo "mksquashfs not installed; cannot test squashfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" squash4_gzip
|
"@builddir@/grub-fs-tester" squash4_gzip
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
if ! which tar >/dev/null 2>&1; then
|
if ! which tar >/dev/null 2>&1; then
|
||||||
echo "tar not installed; cannot test tar."
|
echo "tar not installed; cannot test tar."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" tarfs
|
"@builddir@/grub-fs-tester" tarfs
|
||||||
+2
-2
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkudffs >/dev/null 2>&1; then
|
if ! which mkudffs >/dev/null 2>&1; then
|
||||||
echo "mkudffs not installed; cannot test UDF."
|
echo "mkudffs not installed; cannot test UDF."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" udf
|
"@builddir@/grub-fs-tester" udf
|
||||||
|
|||||||
+2
-2
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which mkfs.xfs >/dev/null 2>&1; then
|
if ! which mkfs.xfs >/dev/null 2>&1; then
|
||||||
echo "mkfs.xfs not installed; cannot test xfs."
|
echo "mkfs.xfs not installed; cannot test xfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ grubshell=@builddir@/grub-shell
|
|||||||
|
|
||||||
if ! which xz >/dev/null 2>&1; then
|
if ! which xz >/dev/null 2>&1; then
|
||||||
echo "xz not installed; cannot test xz compression."
|
echo "xz not installed; cannot test xz compression."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
v=$(echo hello | "${grubshell}" --mkrescue-arg=--compress=xz)
|
v=$(echo hello | "${grubshell}" --mkrescue-arg=--compress=xz)
|
||||||
|
|||||||
+2
-2
@@ -7,12 +7,12 @@ if [ "x$EUID" = "x" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" != 0 ] ; then
|
if [ "$EUID" != 0 ] ; then
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which zpool >/dev/null 2>&1; then
|
if ! which zpool >/dev/null 2>&1; then
|
||||||
echo "zpool not installed; cannot test zfs."
|
echo "zpool not installed; cannot test zfs."
|
||||||
exit 77
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"@builddir@/grub-fs-tester" zfs
|
"@builddir@/grub-fs-tester" zfs
|
||||||
|
|||||||
Reference in new issue
Block a user