Skip to content

Commit 5a48ce8

Browse files
committed
test squashfs metadata
1 parent 48ba83e commit 5a48ce8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/validate-mksquashfs-opts.bats

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ run \
2323
ls "$RO_STORAGE"/overlay/**/*.squash
2424
[ "$status" -eq 0 ]
2525

26+
# Inspect squashfs metadata
27+
run \
28+
bash -c 'SQUASH_FILE=$(ls "$RO_STORAGE"/overlay/**/*.squash | head -n1) && unsquashfs -s "$SQUASH_FILE"'
29+
[ "$status" -eq 0 ]
30+
[[ "$output" =~ "Compression zstd" ]]
31+
[[ "$output" =~ "level 3" ]]
32+
2633
run \
2734
"$PODMAN_BINARY" \
2835
--root "$CLEAN_ROOT" \

0 commit comments

Comments
 (0)