test: update integration tests.

This commit is contained in:
Alexandre Pujol 2025-03-28 23:31:05 +01:00
parent 8e2a7e8068
commit 1204e29fb9
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
9 changed files with 192 additions and 8 deletions

View file

@ -0,0 +1,27 @@
#!/usr/bin/env bats
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
load ../common
@test "dpkg: Remove a package" {
sudo apt install -y pass
sudo dpkg -r pass
}
@test "dpkg: List installed packages" {
dpkg -l apparmor
}
@test "dpkg: List a package's contents" {
dpkg -L apparmor.d
}
@test "dpkg: Find out which package owns a file" {
dpkg -S /etc/apparmor/parser.conf
}
@test "dpkg: Purge an installed or already removed package, including configuration" {
sudo dpkg -P pass
}