The selinux shared tests
- Shell 57.1%
- Makefile 23.9%
- C 18.5%
- Python 0.4%
- Perl 0.1%
Add beakerlib/TMT coverage and fixtures for M4 preprocessing of modular
policy builds: .if to all_interfaces.conf, .te + interfaces to .tmp
(then checkmodule), and .fc to .mod.fc, using live support macros from a
selinux-policy checkout and a snapshotted modular M4 recipe.
Each case is its own rlRun phase in runtest.sh. Covers interface path
validation (including duplicates and broken gen_require), .te arity
edge cases, post-M4 checkmodule failures from bad interface expansion,
.fc path edge cases, M4-to-semodule_package E2E, and .fc content where
labeling validation is deferred to sefcontext_compile.
When SELINUX_POLICY_SRC is unset, clones fedora-selinux/selinux-policy
using a host-detected branch (f$VERSION_ID on Fedora, c${major}s
otherwise), overridable with SELINUX_POLICY_BRANCH.
Signed-off-by: Akhil Kohli <akkohli@redhat.com>
|
||
|---|---|---|
| .fmf | ||
| checkpolicy | ||
| kernel | ||
| libselinux | ||
| libsemanage | ||
| libsepol | ||
| mcstrans | ||
| other | ||
| plans | ||
| policycoreutils | ||
| selinux-policy | ||
| setools | ||
| setroubleshoot/independent-on-initscripts | ||
| main.fmf | ||
| README.md | ||
SELinux tests
This repository contains set of test for SELinux kernel, userspace and policy. Tests are written using beakerlib with TMT Metadata Specification.
Gating Guidelines
Test tiers define a test's priority for our gating process.
tier: 1: Critical tests that must pass for any code merge.tier: 2: Important but non-critical tests.tier: 3: Non-critical tests.
All other tier metadata (e.g., tag:Tier1) is now deprecated.
Plans
$ tmt plans
Found 5 plans: /plans/ci, /plans/reboot, /plans/tier1, /plans/tier2 and /plans/tier3.
Usage
Run tier1 on localhost:
# tmt run provision -h local prepare plans -n /plans/tier1 discover execute
# tmt run -l report -h display -v