tests(packer): add source files for tests VM images.

This commit is contained in:
Alexandre Pujol 2023-04-16 21:28:58 +01:00
parent d717a24adc
commit 6b7a9ed3e5
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 118 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -eu
export BUILDDIR=/tmp/build/ PKGDEST=/tmp/pkg
# shellcheck source=/dev/null
_lsb_release() { . /etc/os-release || exit 1; echo "$ID"; }
DISTRIBUTION="$(_lsb_release)"
cd "$HOME/Projects/apparmor.d"
case "$DISTRIBUTION" in
arch) make pkg ;;
debian | ubuntu | whonix) make dpkg ;;
opensuse-tumbleweed) make rpm ;;
*) ;;
esac