-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
96 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
Tests: config-space utils | ||
Tests: utils | ||
Depends: fai-server, fai-doc | ||
Architecture: amd64 | ||
|
||
Tests: nfsroot dirinstall | ||
Tests: config-space nfsroot dirinstall | ||
Restrictions: isolation-container needs-root needs-internet | ||
Depends: fai-server, fai-doc | ||
Architecture: amd64 | ||
|
||
Tests: fai-mirror | ||
Restrictions: isolation-container needs-internet | ||
Depends: fai-server, fai-doc, reprepro, binutils | ||
Architecture: amd64 | ||
|
||
Tests: fai-cd | ||
Restrictions: isolation-container needs-root needs-internet | ||
Depends: fai-server, fai-doc, reprepro, xorriso, squashfs-tools, binutils | ||
Restrictions: isolation-machine needs-root | ||
Depends: fai-server, fai-doc, xorriso, squashfs-tools, binutils, dosfstools, mtools | ||
Architecture: amd64 | ||
|
||
Tests: diskimage | ||
Restrictions: isolation-container needs-root needs-internet | ||
Depends: fai-server, fai-doc, reprepro, xorriso, squashfs-tools, binutils, fai-setup-storage | ||
Restrictions: isolation-container needs-root needs-internet skippable | ||
Depends: fai-server, fai-doc, reprepro, binutils, fai-setup-storage, qemu-utils | ||
Architecture: amd64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,26 @@ | ||
#! /bin/bash | ||
|
||
# test fai-cd | ||
|
||
set -e | ||
|
||
. ./debian/tests/common.sh | ||
|
||
trap "cp -vp fai-cd.log $AUTOPKGTEST_ARTIFACTS" INT QUIT EXIT | ||
cd "$AUTOPKGTEST_TMP" | ||
|
||
# test fai-mirror and fai-cd | ||
|
||
# fai-mirror | ||
fai-mirror -s$CS -m1 -xARM64,I386,CENTOS,UBUNTU,FOCAL,CLOUD,CHROOT,STANDARD,NONFREE,GNOME mirror >& mirror.log | ||
# - - - - - - - - - - - - - - - - - | ||
fai-cd -Jm /tmp/mirror faicd64-small.iso >& fai-cd.log | ||
echo fai-cd exit code: $? | ||
|
||
chk-size mirror 900 | ||
find mirror -name \*.deb > pkg.list | ||
n=$(wc -l pkg.list | awk '{ print $1}') | ||
if [ $n -lt 1300 ]; then | ||
error "fai-mirror includes too few packages. Only $n found." | ||
fi | ||
|
||
# check some package names in the mirror | ||
pkgs="linux-image- dracut-network_ xfce4-taskmanager_ gnome-shell_ gnome-terminal_ xfdesktop4_" | ||
for p in $pkgs ; do | ||
grep /$p pkg.list | ||
done | ||
|
||
# - - - - - - - - - - - - - - - - - | ||
# fai-cd | ||
fai-cd -c$csdir -fJm mirror faicd64-small.iso >& fai-cd.log | ||
|
||
# check size of ISO | ||
# test the results of the commands called | ||
chk-size faicd64-small.iso 700 | ||
|
||
# more test after mounting the ISO | ||
# mount -oloop faicd64-small.iso /mnt | ||
# umount /mnt | ||
# chk-size /mnt/boot/initrd.img 30 | ||
|
||
|
||
# rm faicd64-small.iso mirror.log fai-cd.log pkg.list | ||
|
||
cp -vp mirror.log fai-cd.log $AUTOPKGTEST_ARTIFACTS | ||
# rm faicd64-small.iso fai-cd.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /bin/bash | ||
|
||
. ./debian/tests/common.sh | ||
error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code | ||
trap "cp -vp mirror.log $AUTOPKGTEST_ARTIFACTS" INT QUIT EXIT | ||
cd "$AUTOPKGTEST_TMP" | ||
|
||
mdir=/tmp/mirror | ||
fai-mirror -s$CS -m1 -xARM64,I386,ROCKY,UBUNTU,FOCAL,CLOUD,CHROOT,STANDARD,NONFREE,GNOME $mdir >& mirror.log | ||
|
||
# test the results of the commands called | ||
s=$(du -sm --exclude aptcache --exclude db $mdir | awk '{print $1}') | ||
if [ $s -lt 420 ]; then | ||
error "$mdir is too small: $s MB" | ||
else | ||
echo "OK: $mdir size is $s MB" | ||
fi | ||
|
||
find $mdir -name \*.deb > pkg.list | ||
n=$(wc -l pkg.list | awk '{ print $1}') | ||
if [ $n -lt 800 ]; then | ||
error "fai-mirror includes too few packages. Only $n found." | ||
else | ||
echo "OK. Number of packages found in mirror: $n" | ||
fi | ||
|
||
# check some package names in the mirror | ||
pkgs="linux-image- dracut-network_ xfce4-taskmanager_ xfdesktop4_ syslinux-common_ lvm2_" | ||
for p in $pkgs ; do | ||
echo Search for $p | ||
grep /$p pkg.list | ||
done | ||
|
||
exit $error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters