The AppArmor user space development project.
Find a file
Steve Beattie 9249ffcd00 This patch adds two new make targets to the profiles package: 'check'
and 'check-install'. The 'check' target will attempt to run the profiles
in the working subversion directory (both in enabled/ and extras/
directories) through the apparmor_parser as a means of sanity checking
the profiles.

The 'check-install' target will also run the 'check' target, only
against the installed location, modifiable by DESTDIR and EXTRASDIR (to
match the behavior of the 'install' target). It also will run logprof
(with an empty logfile) on the installation location, as logprof and the
parser have differing ideas of what is a valid profile :-( .

Thus 'make install check-install DESTDIR=/some/path EXTRASDIR=/other/path'
will install the profiles into a location and cycle the parser and
logprof over the profiles in that

The 'check' target cannot run logprof as the subversion layout does not
conform to a hierarchy logprof can deal with. The limitations also mean
that logprof will not check the profiles in the extras/ directory.

There are other passable variables that impact the 'check' and
'check-install' targets:

  VERBOSE - setting this variable will emit the actual commands run,
	mostly useful for debugging where the implementation of 'check'
	has gone wrong.
  PARSER, LOGPROF - setting these with a path to a different parser or
  	logprof location will have the check targets use those version
	rather than the system utilities; e.g.
	"make check-install LOGPROF=../utils/logprof" to test a modified
	logprof in our current forge svn layout.
2006-06-05 16:39:29 +00:00
changehat Two changes: 2006-05-31 22:38:30 +00:00
common Set svn:keywords on the common make rules. 2006-04-12 20:19:42 +00:00
docs New version of the docs to reflect 'm', 'Ux', 'Px', language additions. 2006-05-16 23:55:00 +00:00
management Added additional mode flags 2006-06-02 23:06:47 +00:00
parser Set properties on parser testfiles 2006-06-01 17:02:28 +00:00
profiles This patch adds two new make targets to the profiles package: 'check' 2006-06-05 16:39:29 +00:00
tests Set svn:keyword attributes on everything, kill Makefile rule for 2006-05-19 17:32:14 +00:00
utils forgot to set the svn:keywords on the file. oops. 2006-05-15 17:40:24 +00:00