grub/tests/erofs_test.in
Yifan Zhao 56e58828cf fs/erofs: Add tests for EROFS in grub-fs-tester
This patch introduces three EROFS tests which cover compact, extended
and chunk-based inodes respectively.

Signed-off-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn>
Reviewed-by: Glenn Washburn <development@efficientek.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2024-05-23 15:31:12 +02:00

21 lines
356 B
Plaintext

#!@BUILD_SHEBANG@
set -e
if [ "x$EUID" = "x" ] ; then
EUID=`id -u`
fi
if [ "$EUID" != 0 ] ; then
exit 99
fi
if ! which mkfs.erofs >/dev/null 2>&1; then
echo "mkfs.erofs not installed; cannot test erofs."
exit 99
fi
"@builddir@/grub-fs-tester" erofs_compact
"@builddir@/grub-fs-tester" erofs_extended
"@builddir@/grub-fs-tester" erofs_chunk