1
Author: Jamie Strandboge <jamie@canonical.com>
2
Description: the Ubuntu buildds do not have the AppArmor securityfs mounted, so
3
the cache tests fail. This patch skips these tests if the introspection
4
directory is not mounted, but runs them if it is. This should allow testing of
5
local builds while still allowing builds on the official buildds.
8
Index: apparmor-2.5.1/parser/tst/caching.sh
9
===================================================================
10
--- apparmor-2.5.1.orig/parser/tst/caching.sh 2010-11-02 11:49:03.000000000 -0500
11
+++ apparmor-2.5.1/parser/tst/caching.sh 2010-11-02 11:49:17.000000000 -0500
13
# on the actions and results of the prior tests.
16
+# This test requires introspection
17
+if [ ! -d /sys/kernel/security/apparmor ]; then
18
+ echo "WARNING: /sys/kernel/security/apparmor does not exist. Skipping tests"
19
+ echo "requiring introspection."
24
basedir=$(mktemp -d -t aa-cache-XXXXXX)
25
trap "rm -rf $basedir" EXIT