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>
21 lines
356 B
Plaintext
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
|