Commit 82ff86bf authored by Mike Salvatore's avatar Mike Salvatore Committed by John Johansen

Add a build-dep target to tests/regression/apparmor/Makefile

Add a target to install build dependencies for the apparmor regression
tests. Currently supports Ubuntu and Debian distros.
Signed-off-by: Mike Salvatore's avatarMike Salvatore <mike.salvatore@canonical.com>
Signed-off-by: 's avatarJohn Johansen <john.johansen@canonical.com>
parent 03c08cf9
Pipeline #66153912 passed with stages
in 10 minutes and 29 seconds
......@@ -301,6 +301,27 @@ unix_socket_client: unix_socket_client.c unix_socket_common.o
unix_socket: unix_socket.c unix_socket_common.o unix_socket_client
${CC} ${CFLAGS} ${LDFLAGS} $(filter-out unix_socket_client, $^) -o $@ ${LDLIBS}
build-dep:
@if [ `whoami` = "root" ] ;\
then \
if [ -z ${DISTRO} ] ;\
then \
echo "must set DISTRO before using target 'build-dep'" ;\
exit 1;\
fi; \
\
if [ ${DISTRO} = "ubuntu" ] || [ ${DISTRO} = "debian" ] ;\
then \
apt install apparmor libapparmor1 libapparmor-dev perl python gcc libc-dev ;\
else \
echo "Unknown option for DISTRO: '$(DISTRO)'. Supported options are 'ubuntu' or 'debian'" ;\
exit 1;\
fi; \
else \
echo "must be root to install build dependencies" ;\
exit 1;\
fi
tests: all
@if [ `whoami` = "root" ] ;\
then \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment