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

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
# Build
.build
.logs
.pkg
tests/tldr
tests/tldr.tar.gz

View file

@ -23,7 +23,7 @@ core-packages: &core-packages
- unattended-upgrades
- vim
gnome-packages: &desktop-packages
gnome-packages: &gnome-packages
# Core packages for Debian
- apparmor-profiles
- apparmor-utils
@ -53,7 +53,7 @@ gnome-packages: &desktop-packages
- loupe
- ptyxis
kde-packages: &kubuntu-packages
kde-packages: &kde-packages
# Core packages for Debian
- apparmor-profiles
- apparmor-utils
@ -79,6 +79,7 @@ kde-packages: &kubuntu-packages
# KDE packages for Debian
- spice-vdagent
- task-kde-desktop
- plasma-workspace-wayland
- terminator
debian12-runcmd: &debian12-runcmd

View file

@ -0,0 +1,9 @@
#cloud-config
packages: *kde-packages
runcmd: *debian13-runcmd
write_files:
- *shared-directory # Setup shared directory
- *systemd-netword # Network configuration for server

View file

@ -82,6 +82,7 @@ kubuntu-packages: &kubuntu-packages
- spice-vdagent
- terminator
- kubuntu-desktop
- plasma-workspace-wayland
desktop-runcmd: &desktop-runcmd
# Add missing snap packages

View file

@ -6,3 +6,4 @@ runcmd: *desktop-runcmd
write_files:
- *shared-directory # Setup shared directory
- *systemd-netword # Network configuration for server

View file

@ -0,0 +1,9 @@
#cloud-config
packages: *kubuntu-packages
runcmd: *desktop-runcmd
write_files:
- *shared-directory # Setup shared directory
- *systemd-netword # Network configuration for server

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"

View file

@ -5,7 +5,7 @@
# Dependencies for the bats integration tests
set -eu
set -eu -o pipefail
# shellcheck source=/dev/null
_lsb_release() {