Running `make check` inside of the utils/ directory has errors due to aa-easyprof tests not being able to find the templates directory.
$ cd utils/
$ make>/dev/null
...
$ make check
...
======================================================================
ERROR: test_verify_manifest_binary (__main__.T)
Test verify_manifest (binary in /usr)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test-aa-easyprof.py", line 1738, in test_verify_manifest_binary
self._verify_manifest(m, expected=True)
File "test-aa-easyprof.py", line 1647, in _verify_manifest
self.assertTrue(easyprof.verify_manifest(params), "params=%s\nmanifest=%s" % (params,m))
File "/tmp/apparmor.git/utils/test/easyprof.py", line 1092, in verify_manifest
fake_easyp = AppArmorEasyProfile(None, opt)
File "/tmp/apparmor.git/utils/test/easyprof.py", line 337, in __init__
raise AppArmorException("Could not find templates directory")
AppArmorException: 'Could not find templates directory'
======================================================================
ERROR: test_verify_manifest_full (__main__.T)
Test verify_manifest (full)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test-aa-easyprof.py", line 1678, in test_verify_manifest_full
self._verify_manifest(m, expected=True)
File "test-aa-easyprof.py", line 1647, in _verify_manifest
self.assertTrue(easyprof.verify_manifest(params), "params=%s\nmanifest=%s" % (params,m))
File "/tmp/apparmor.git/utils/test/easyprof.py", line 1092, in verify_manifest
fake_easyp = AppArmorEasyProfile(None, opt)
File "/tmp/apparmor.git/utils/test/easyprof.py", line 337, in __init__
raise AppArmorException("Could not find templates directory")
AppArmorException: 'Could not find templates directory'
======================================================================
ERROR: test_verify_manifest_profile_abstractions (__main__.T)
Test verify_manifest (abstractions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test-aa-easyprof.py", line 1795, in test_verify_manifest_profile_abstractions
self._verify_manifest(m, expected=True)
File "test-aa-easyprof.py", line 1647, in _verify_manifest
self.assertTrue(easyprof.verify_manifest(params), "params=%s\nmanifest=%s" % (params,m))
File "/tmp/apparmor.git/utils/test/easyprof.py", line 1092, in verify_manifest
fake_easyp = AppArmorEasyProfile(None, opt)
File "/tmp/apparmor.git/utils/test/easyprof.py", line 337, in __init__
raise AppArmorException("Could not find templates directory")
AppArmorException: 'Could not find templates directory'
======================================================================
ERROR: test_verify_manifest_profile_abstractions_bad (__main__.T)
Test verify_manifest (bad abstractions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test-aa-easyprof.py", line 1812, in test_verify_manifest_profile_abstractions_bad
self._verify_manifest(m, expected=False)
File "test-aa-easyprof.py", line 1649, in _verify_manifest
self.assertFalse(easyprof.verify_manifest(params), "params=%s\nmanifest=%s" % (params,m))
File "/tmp/apparmor.git/utils/test/easyprof.py", line 1092, in verify_manifest
fake_easyp = AppArmorEasyProfile(None, opt)
File "/tmp/apparmor.git/utils/test/easyprof.py", line 337, in __init__
raise AppArmorException("Could not find templates directory")
AppArmorException: 'Could not find templates directory'
======================================================================
ERROR: test_verify_manifest_profile_profile_name (__main__.T)
Test verify_manifest (profile_name)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test-aa-easyprof.py", line 1778, in test_verify_manifest_profile_profile_name
self._verify_manifest(m, expected=True)
File "test-aa-easyprof.py", line 1647, in _verify_manifest
self.assertTrue(easyprof.verify_manifest(params), "params=%s\nmanifest=%s" % (params,m))
File "/tmp/apparmor.git/utils/test/easyprof.py", line 1092, in verify_manifest
fake_easyp = AppArmorEasyProfile(None, opt)
File "/tmp/apparmor.git/utils/test/easyprof.py", line 337, in __init__
raise AppArmorException("Could not find templates directory")
AppArmorException: 'Could not find templates directory'
======================================================================
ERROR: test_verify_manifest_profile_profile_name_bad (__main__.T)
Test verify_manifest (bad profile_name)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test-aa-easyprof.py", line 1764, in test_verify_manifest_profile_profile_name_bad
self._verify_manifest(m, expected=False)
File "test-aa-easyprof.py", line 1649, in _verify_manifest
self.assertFalse(easyprof.verify_manifest(params), "params=%s\nmanifest=%s" % (params,m))
File "/tmp/apparmor.git/utils/test/easyprof.py", line 1092, in verify_manifest
fake_easyp = AppArmorEasyProfile(None, opt)
File "/tmp/apparmor.git/utils/test/easyprof.py", line 337, in __init__
raise AppArmorException("Could not find templates directory")
AppArmorException: 'Could not find templates directory'
======================================================================
ERROR: test_verify_manifest_profile_template_var (__main__.T)
Test verify_manifest (good template_var)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test-aa-easyprof.py", line 1831, in test_verify_manifest_profile_template_var
self._verify_manifest(m, expected=True)
File "test-aa-easyprof.py", line 1647, in _verify_manifest
self.assertTrue(easyprof.verify_manifest(params), "params=%s\nmanifest=%s" % (params,m))
File "/tmp/apparmor.git/utils/test/easyprof.py", line 1092, in verify_manifest
fake_easyp = AppArmorEasyProfile(None, opt)
File "/tmp/apparmor.git/utils/test/easyprof.py", line 337, in __init__
raise AppArmorException("Could not find templates directory")
AppArmorException: 'Could not find templates directory'
======================================================================
ERROR: test_verify_manifest_profile_template_var_bad (__main__.T)
Test verify_manifest (bad template_var)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test-aa-easyprof.py", line 1858, in test_verify_manifest_profile_template_var_bad
self._verify_manifest(m, expected=False)
File "test-aa-easyprof.py", line 1649, in _verify_manifest
self.assertFalse(easyprof.verify_manifest(params), "params=%s\nmanifest=%s" % (params,m))
File "/tmp/apparmor.git/utils/test/easyprof.py", line 1092, in verify_manifest
fake_easyp = AppArmorEasyProfile(None, opt)
File "/tmp/apparmor.git/utils/test/easyprof.py", line 337, in __init__
raise AppArmorException("Could not find templates directory")
AppArmorException: 'Could not find templates directory'
----------------------------------------------------------------------
Ran 129 tests in 0.781s
FAILED (errors=8)
make[1]: *** [check] Error 1
make[1]: Leaving directory `/tmp/apparmor.git/utils/test'
make: *** [check] Error 2
Note that installing apparmor-easyprof allows the tests to pass successfully. This probably suggests that something in aa-easyprof is depending on the system templates directory.