Skip to content

Commit

Permalink
more checks of ISO image
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Feb 22, 2024
1 parent 9ba2068 commit cb8d58a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions debian/tests/fai-cd-tests
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@

# more tests for fai-cd

set -e

. ./debian/tests/common.sh
trap "cp -vp fai-cd.log $AUTOPKGTEST_ARTIFACTS" INT QUIT EXIT
cd "$AUTOPKGTEST_TMP"
#trap "cp -vp fai-cd.log $AUTOPKGTEST_ARTIFACTS" INT QUIT EXIT

chk-loop-device

chk-file faicd64-small.iso


# more test after mounting the ISO
mount -oloop,ro faicd64-small.iso /mnt
chk-size /mnt/boot/initrd.img 35
chk-size /mnt/boot/initrd.img 40
chk-size /mnt/boot/vmlinuz 7
chk-size /mnt/LiveOS/squashfs.img 770
chk-file /mnt/boot/grub/bios.img
chk-file /mnt/FAI-CD

umount /mnt
Expand Down

0 comments on commit cb8d58a

Please sign in to comment.