tests: add debian/ubuntu based tests images.

Also some cleanup of tests resources.
This commit is contained in:
Alexandre Pujol 2025-08-17 00:16:31 +02:00
parent 7c427aaae6
commit 9110a70124
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
10 changed files with 30 additions and 8 deletions

View file

@ -55,7 +55,6 @@ clean_apt() {
clean_pacman() {
_msg "Cleaning pacman cache"
pacman -Syu --noconfirm
pacman -Scc --noconfirm
}

View file

@ -3,7 +3,7 @@
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
set -eu
set -eux
_lsb_release() {
# shellcheck source=/dev/null
@ -31,7 +31,8 @@ main() {
;;
debian | ubuntu)
dpkg -i $SRC/*.deb
apt install -y apparmor-profiles
dpkg -i $SRC/*.deb || true
;;
opensuse*)

View file

@ -98,8 +98,8 @@ variable "DM" {
img_checksum = "https://cdimage.debian.org/images/cloud/bookworm/latest/SHA512SUMS"
}
"debian13" : {
img_url = "https://cdimage.debian.org/images/cloud/trixie/daily/latest/debian-13-genericcloud-amd64-daily.qcow2"
img_checksum = "https://cdimage.debian.org/images/cloud/trixie/daily/latest/SHA512SUMS"
img_url = "https://cdimage.debian.org/images/cloud/trixie/latest/debian-13-genericcloud-amd64.qcow2"
img_checksum = "https://cdimage.debian.org/images/cloud/trixie/latest/SHA512SUMS"
}
"ubuntu22" : {
img_url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"