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,42 @@
#!/usr/bin/env bats
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
load ../common
@test "apt: Update the list of available packages and versions" {
sudo apt update
}
@test "apt: Search for a given package" {
apt search apparmor
}
@test "apt: Show information for a package" {
apt show apparmor
}
@test "apt: Install a package, or update it to the latest available version" {
sudo apt install -y pass
}
@test "apt: Remove a package (using 'purge' instead also removes its configuration files)" {
sudo apt remove -y pass
}
@test "apt: Upgrade all installed packages to their newest available versions" {
sudo apt upgrade -y
}
@test "apt: List all packages" {
apt list
}
@test "apt: List installed packages" {
apt list --installed
}
@test "apt-moo: Print a cow easter egg" {
apt moo
}