Skip to content

Commit

Permalink
test: erofs: add basic test
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Muxel <sebastian.muxel@entner-electronics.com>
  • Loading branch information
ee-smuxel committed Apr 16, 2024
1 parent f525d6b commit b27d45e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/erofs.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
image test.erofs {
erofs {
}
size = 4M
}
8 changes: 8 additions & 0 deletions test/filesystem.test
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b27d45e

Please # to comment.