diff --git a/test/erofs.config b/test/erofs.config new file mode 100644 index 0000000..21fa597 --- /dev/null +++ b/test/erofs.config @@ -0,0 +1,5 @@ +image test.erofs { + erofs { + } + size = 4M +} diff --git a/test/filesystem.test b/test/filesystem.test index 9f8ea6c..fb100be 100755 --- a/test/filesystem.test +++ b/test/filesystem.test @@ -63,6 +63,14 @@ test_expect_success dd,mkdosfs,mcopy "vfat" " check_filelist " +exec_test_set_prereq mkfs.erofs +exec_test_set_prereq fsck.erofs +test_expect_success mkfs_erofs,fsck_erofs "erofs" " + run_genimage_root erofs.config test.erofs && + fsck.erofs -p images/test.erofs | tee erofs.log && + test_must_fail grep -q 'Filesystem was changed' erofs.log +" + test_done # vim: syntax=sh