File: fai-cd-tests

package info (click to toggle)
fai 6.5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,084 kB
  • sloc: sh: 6,774; perl: 5,665; makefile: 138
file content (25 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/bash

# more tests for fai-cd

. ./debian/tests/common.sh
#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 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

if [ X$NO_CLEANUP != X1 ]; then
    rm faicd64-small.iso
fi