apparmor.d/tests/requirements.sh
2025-03-30 18:47:28 +02:00

29 lines
567 B
Bash

#!/usr/bin/env bash
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# Dependencies for the bats integration tests
set -eu
# shellcheck source=/dev/null
_lsb_release() {
. /etc/os-release || exit 1
echo "$ID"
}
DISTRIBUTION="$(_lsb_release)"
case "$DISTRIBUTION" in
arch)
;;
debian | ubuntu | whonix)
sudo apt update -y
sudo apt install -y \
bats bats-support \
cpuid dfc systemd-userdbd systemd-homed tlp network-manager flatpak
;;
opensuse*)
;;
*) ;;
esac