tests: Adjust stacking tests build check for 2.11 Beta 1 release

I configured the stacking test binary to only be built when libapparmor
2.11 is present. The versioning of the 2.11 Beta 1 release (2.10.95)
causes that check to fail and the stacking tests to not be used.

This patch adjusts the libapparmor version check to be aware of the 2.11
Beta 1 versioning.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
Tyler Hicks 2016-03-24 11:59:11 -05:00
parent fa35aaa1c4
commit 7c142666db

View file

@ -167,13 +167,13 @@ ifdef USE_SYSTEM
************************************************************************${nl})
endif
ifneq (,$(shell pkg-config --atleast-version 2.11 libapparmor && echo TRUE))
ifneq (,$(shell pkg-config --atleast-version 2.10.95 libapparmor && echo TRUE))
SRC+=stacking.c
CONDITIONAL_TESTS+=exec_stack stackonexec stackprofile
else
$(warning ${nl}\
************************************************************************${nl}\
Skipping stacking tests: requires libapparmor 2.11 or newer ...${nl}\
Skipping stacking tests: requires libapparmor 2.11 Beta 1 or newer ...${nl}\
************************************************************************${nl})
endif
else