These are not added to grub-fs-tester because they are not generated and none of the filesystem tests are run on these ISOs. The test is to run the command "ls /" on the ISO, and a failure is determined if the command times out, has non-zero return value or has any output. Signed-off-by: Glenn Washburn <development@efficientek.com> Tested-by: Thomas Schmitt <scdbackup@gmx.net> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
31 lines
949 B
Plaintext
31 lines
949 B
Plaintext
#!@BUILD_SHEBANG@
|
|
|
|
set -e
|
|
|
|
if ! which xorriso >/dev/null 2>&1; then
|
|
echo "xorriso not installed; cannot test iso9660."
|
|
exit 99
|
|
fi
|
|
|
|
"@builddir@/grub-fs-tester" joliet
|
|
"@builddir@/grub-fs-tester" rockridge
|
|
"@builddir@/grub-fs-tester" rockridge_joliet
|
|
"@builddir@/grub-fs-tester" joliet_1999
|
|
"@builddir@/grub-fs-tester" rockridge_1999
|
|
"@builddir@/grub-fs-tester" rockridge_joliet_1999
|
|
|
|
echo "Testing for proper recognition of CE loops ... "
|
|
for fs in iso9660_ce_loop iso9660_ce_loop2; do
|
|
tempdir=`mktemp -d "${TMPDIR:-/tmp}/${0##*/}.$(date '+%Y%m%d%H%M%S%N').${fs}.XXX"` ||
|
|
{ echo "Failed to make temporary directory"; exit 99; }
|
|
gunzip <"$srcdir"/tests/${fs}.iso.gz >"${tempdir}/${fs}.iso" || exit 99
|
|
output=$(LC_ALL=C timeout -s KILL "60" \
|
|
"@builddir@/grub-fstest" "${tempdir}/${fs}.iso" ls / ) || ret=$?
|
|
rm -rf "$tempdir"
|
|
if [ "${ret:-0}" -ne 0 -o -n "$output" ]; then
|
|
echo "FAIL ($fs)"
|
|
exit 1
|
|
fi
|
|
done
|
|
echo "PASS"
|