| 1 |
#! /bin/bash |
| 2 |
|
| 3 |
# more tests for fai-cd |
| 4 |
|
| 5 |
. ./debian/tests/common.sh |
| 6 |
#trap "cp -vp fai-cd.log $AUTOPKGTEST_ARTIFACTS" INT QUIT EXIT |
| 7 |
|
| 8 |
chk-loop-device |
| 9 |
|
| 10 |
chk-file faicd64-small.iso |
| 11 |
|
| 12 |
|
| 13 |
# more test after mounting the ISO |
| 14 |
mount -oloop,ro faicd64-small.iso /mnt |
| 15 |
chk-size /mnt/boot/initrd.img 40 |
| 16 |
chk-size /mnt/boot/vmlinuz 7 |
| 17 |
chk-size /mnt/LiveOS/squashfs.img 770 |
| 18 |
chk-file /mnt/boot/grub/bios.img |
| 19 |
chk-file /mnt/FAI-CD |
| 20 |
|
| 21 |
umount /mnt |
| 22 |
|
| 23 |
if [ X$NO_CLEANUP != X1 ]; then |
| 24 |
rm faicd64-small.iso |
| 25 |
fi |