From b27d45ef39544ebc66b09d288f51dfb459a3cc77 Mon Sep 17 00:00:00 2001 From: Sebastian Muxel Date: Fri, 5 Apr 2024 00:30:08 +0200 Subject: [PATCH] test: erofs: add basic test Signed-off-by: Sebastian Muxel --- test/erofs.config | 5 +++++ test/filesystem.test | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 test/erofs.config 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