add filesystem tests to testsuite

This commit is contained in:
Tobias Powalowski 2024-07-11 19:31:01 +02:00
parent b595c3effa
commit d612d8f0f3

View file

@ -94,10 +94,10 @@ _run_test "filesystems..."
for i in bcachefs btrfs ext4 swap xfs vfat; do
dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}"
if [[ "${i}" == "swap" ]]; then
mkswap /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >>filesystems-error.log
mkswap /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
else
mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >>filesystems-error.log
mount -o loop /test.img /mnt || echo "Mount error: ${i}" >>filesystems-error.log
mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
mount -o loop /test.img /mnt || echo "Mount error: ${i}" >> filesystems-error.log
umount /mnt
fi
done