[apparmor] [patch 1/3] parameterize parser tests to support different binaries

John Johansen john.johansen at canonical.com
Mon Nov 5 22:07:51 UTC 2012


On 10/26/2012 10:59 AM, Steve Beattie wrote:
> This patch replaces the hardcoded path to the in-tree apparmor parser
> in several of the script based test scripts with the APPARMOR_PARSER
> environment variable, keeping the hardcoded location as the default.
> It also adds support for overriding the location of the parser via the
> same environment variable. The make infrastructure is updated to use
> this, though uses a different variable (PARSER) to drive it.
> 
> Thus 'make check PARSER=/some/path/to/an/alternate/apparmor_parser'
> will run all the parser tests on that binary. This is useful for
> running the testsuite in an automated post-install environment.
> (It should be noted that doing so will still build and run the unit
> test binaries based on the source tree.)

Acked-by: John Johansen <john.johansen at canonical.com>




More information about the AppArmor mailing list