summaryrefslogtreecommitdiff
path: root/check-images
blob: 1babf537aa3ae688dd05a4bf39c3d36cb8222132 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/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
}

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

echo All test images built successfully.