apparmor.d/tests/requirements.sh
Alexandre Pujol 3538d672ed
Some checks failed
Ubuntu / check (push) Has been cancelled
Ubuntu / build (default, ubuntu-22.04) (push) Has been cancelled
Ubuntu / build (default, ubuntu-24.04) (push) Has been cancelled
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Has been cancelled
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Has been cancelled
Ubuntu / tests (push) Has been cancelled
feat: profiles and integration tests improvments.
2024-11-13 19:07:05 +00:00

27 lines
505 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-get install -y \
cpuid dfc systemd-userdbd systemd-homed tlp
;;
opensuse*)
;;
*) ;;
esac