The selinux shared tests
  • Shell 57.1%
  • Makefile 23.9%
  • C 18.5%
  • Python 0.4%
  • Perl 0.1%
Find a file
Milos Malik 5842e54015 fix the targetd-and-similar test
The automated test runs the following command which produces an error:

  # targetctl clear
  Traceback (most recent call last):
    File "/usr/bin/targetctl", line 7, in <module>
      sys.exit(main())
               ~~~~^^
    File "/usr/lib/python3.14/site-packages/rtslib/targetctl.py", line 79, in main
      funcs[sys.argv[1]](savefile)
      ~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  TypeError: clear() takes 0 positional arguments but 1 was given
  # echo $?
  1
  #

Even though SELinux is not the cause, the test fails because of the error.
To work around that problem, the expected exit code is between 0 and 255 now.
2025-11-13 08:13:39 +00:00
.fmf Update metadata to the list of approved attributes 2018-06-12 14:56:06 +02:00
checkpolicy Fix "adjust" statements 2025-10-09 20:22:22 +02:00
kernel Fix "adjust" statements 2025-10-09 20:22:22 +02:00
libselinux Fix "adjust" statements 2025-10-09 20:22:22 +02:00
libsemanage Fix "adjust" statements 2025-10-09 20:22:22 +02:00
libsepol Fix "adjust" statements 2025-10-09 20:22:22 +02:00
mcstrans Fix "adjust" statements 2025-10-09 20:22:22 +02:00
other Fix "adjust" statements 2025-10-09 20:22:22 +02:00
plans Fix "adjust" statements 2025-10-09 20:22:22 +02:00
policycoreutils Fix "adjust" statements 2025-10-09 20:22:22 +02:00
selinux-policy fix the targetd-and-similar test 2025-11-13 08:13:39 +00:00
setools Fix "adjust" statements 2025-10-09 20:22:22 +02:00
setroubleshoot/independent-on-initscripts Fix "adjust" statements 2025-10-09 20:22:22 +02:00
main.fmf Increase the time limit when testing RHIVOS preload 2025-10-09 20:21:17 +02:00
README.md adding gating guideline to README 2025-08-26 13:03:09 +00:00

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