Skip to content

Commit

Permalink
split tests that need loop device into fai-cd-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Nov 1, 2022
1 parent 2b75868 commit a3ebc3e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debian/tests/control
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Restrictions: isolation-container needs-internet
Depends: fai-server, fai-doc, reprepro, binutils
Architecture: amd64

Tests: fai-cd
Tests: fai-cd fai-cd-tests
Restrictions: isolation-machine needs-root
Depends: fai-server, fai-doc, xorriso, squashfs-tools, binutils, dosfstools, mtools
Architecture: amd64
Expand Down
19 changes: 19 additions & 0 deletions debian/tests/fai-cd-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /bin/bash

# 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"

chk-loop-device

# more test after mounting the ISO
mount -oloop faicd64-small.iso /mnt
chk-size /mnt/boot/initrd.img 35
chk-file /mnt/FAI-CD

umount /mnt
rm faicd64-small.iso

0 comments on commit a3ebc3e

Please sign in to comment.