Integration Tests
The purpose of integration testing in apparmor.d is to ensure the profiles are not going to break programs found in Linux distributions and Desktop Environment that we support.
Although the integration test suite is intended to be run in a Development VM, it is also deployed the GitHub Action pipeline.
Workflow
- Create a testing VM
- Run the integration tests against the testing VM
- Ensure no new logs have been raised
Getting started¶
Prepare the test environment:
Run the integration tests on the test VM:
Create integration tests¶
All integration tests are written in Bats and are located in the tests/integration
directory. The initial tests have been generated using tldr page with the following command: