summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-01-14 12:58:36 +0200
committerLars Wirzenius <liw@liw.fi>2021-01-15 09:05:28 +0200
commit0efdcb69f4c174598a03ac1e8dc061f0dd0115e0 (patch)
tree41f9f3dd842b35e5736f01b04c4b5211567cb6e4
parent49ac3e34f8d6fa7dc338cde08f51a6f7929040fd (diff)
downloadvmdb2-0efdcb69f4c174598a03ac1e8dc061f0dd0115e0.tar.gz
test: only test i386 UEFI if the tooling is available
Debian buster doesn't have it, Debian bullseye does. I want the test suite to run on both, so this is a compromise.
-rwxr-xr-xcheck-all16
1 files changed, 10 insertions, 6 deletions
diff --git a/check-all b/check-all
index 7de5ed3..bf4bbb4 100755
--- a/check-all
+++ b/check-all
@@ -41,12 +41,16 @@ do
done
-bash -x ./smoke-i386.sh "$i386_tarball"
-
-for x in "$@" i386 i386-uefi
-do
- tryit "$tarballdir/$x.img" "$x.vmdb" "$i386_tarball"
-done
+if [ -e /usr/share/OVMF/OVMF32_VARS_4M.fd ]
+then
+ bash -x ./smoke-i386.sh "$i386_tarball"
+fi
+tryit "$tarballdir/i386.img" "i386.vmdb" "$i386_tarball"
+
+if [ -e /usr/share/OVMF/OVMF32_VARS_4M.fd ]
+then
+ tryit "$tarballdir/i386-uefi.img" "i386-uefi.vmdb" "$i386_tarball"
+fi
# On amd64, qemu-user-static has occasionally been observed to segfault. This