mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
tests(ci): install integration tests requirements.
This commit is contained in:
parent
5611001e5b
commit
e4f0f06648
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -83,6 +83,7 @@ jobs:
|
|||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
apparmor-profiles apparmor-utils \
|
apparmor-profiles apparmor-utils \
|
||||||
bats bats-support
|
bats bats-support
|
||||||
|
bash tests/requirements.sh
|
||||||
|
|
||||||
- name: Install apparmor.d
|
- name: Install apparmor.d
|
||||||
run: |
|
run: |
|
||||||
|
27
tests/requirements.sh
Normal file
27
tests/requirements.sh
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#!/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
|
||||||
|
;;
|
||||||
|
opensuse*)
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
Loading…
Reference in New Issue
Block a user