File: check-images

package info (click to toggle)
vmdb2 0.41-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: python: 2,591; sh: 151; makefile: 17
file content (65 lines) | stat: -rwxr-xr-x 1,154 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/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 trixie amd64 uefi

	twice buster arm64 uefi
	twice bullseye arm64 uefi
	twice bookworm arm64 uefi
	twice trixie arm64 uefi

	twice buster armhf uefi
	twice bullseye armhf uefi
	twice bookworm armhf uefi
	twice trixie armhf uefi

	twice buster i386 uefi
	twice bullseye i386 uefi
	twice bookworm i386 uefi

	# 2024-10: Debian no longer has kernels for i386 so don't
	# trixie.
	# twice trixie 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.