#!/bin/bash set -eu tarballdir="$(cd "$1" && pwd)" shift once() { local release="$1" local arch="$2" local grub="$3" ./check-one --tarball-directory "$tarballdir" \ --vmdb base.vmdb \ --debian-release "$release" \ --grub "$grub" --mklabel gpt \ --arch "$arch" \ --maybe-boot } twice() { echo "testing build of: $*" echo "first" once "$@" echo "second" once "$@" echo } if [ "$#" = 0 ]; then twice buster amd64 uefi twice bullseye amd64 uefi twice bookworm amd64 uefi twice buster arm64 uefi twice bullseye arm64 uefi twice bookworm arm64 uefi twice buster armhf uefi twice bullseye armhf uefi twice bookworm armhf uefi twice buster i386 uefi twice bullseye i386 uefi twice bookworm i386 uefi # These are broken for now, at least for tests. Please help # debug and fix. #twice buster armhf uefi #twice buster ppc64el ieee1275 else for release in "$@"; do once "$release" amd64 uefi done fi echo All test images built successfully.