feat: add trixie docker build

Ensure the current debian12 scripts are going to run on trixie
This commit is contained in:
damien cavagnini
2025-09-02 14:09:16 +02:00
parent 11bcd1b93b
commit 9f159985a4
13 changed files with 63 additions and 16 deletions

View File

@@ -19,18 +19,26 @@ test_audit() {
register_test retvalshouldbe 0
run resolved "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
describe Prepare test package dependencies
# try to install a package that depends on 'tftpd-hpa'
apt install -y tftp-hpa-dbg
# running on a container, we can only test the package installation, not the service management
# trixie: apt-cache rdepends tfptd-hpa -> # E: No packages found
tests_get_debian_major_version
if [ "$DEB_MAJ_VER" -lt 13 ]; then
describe Running successfull test
register_test retvalshouldbe 0
# shellcheck disable=2154
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
describe Prepare test package dependencies
# try to install a package that depends on 'tftpd-hpa'
apt install -y tftp-hpa-dbg
# running on a container, we can only test the package installation, not the service management
describe Running successfull test
register_test retvalshouldbe 0
# shellcheck disable=2154
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
apt remove -y tftp-hpa-dbg
fi
describe clean installation
apt remove -y tftp-hpa-dbg tftpd-hpa
apt remove -y tftpd-hpa
apt autoremove -y
}