Commit graph

11 commits

Author SHA1 Message Date
Jiri Jaburek
c8430211e0 make tests use the selinux-policy library directly
The original library(foo/bar) syntax was used via RPM Provides
on old RHTS / Beaker infra, and tmt translates it to fetching
libraries from https://github.com/beakerlib/, ie.

  https://github.com/beakerlib/selinux-policy

This location then contains a wrapper redirect back to this
repo with tests.

Let's avoid the external Github round-trip and just link to the
library directly via local references.

Also change the epel library link to the modern syntax.

Signed-off-by: Jiri Jaburek <jjaburek@redhat.com>
2026-05-14 08:38:48 +00:00
Vit Mojzis
caa904c01f Fix "adjust" statements
Whenever a key is defined in the tmt hierarchy and some child also
defines that key, the child's will overwrite the previous one. The "+"
changes the operation to "append", so the content of key+ in the child
is added to the existing key.

Meaning that any "adjust" statement in a test plan using a test that
defines it's own "adjust:" is ignored.

Since we are expecting other statements to be appended to the "adjust"
sections, the content of each section needs to be a single list item as
opposed to a set of key-value pairs (first line needs to start with a
hyphen).

- Replace all "adjust:" sections with "adjust+:" in order to honor any
  adjustments further up the tree (parent tests, or test plans).
- Fix malformed "adjust" sections (sets of key-value pairs)

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2025-10-09 20:22:22 +02:00
Milos Malik
1eb61b3a69 exclude unsuitable tests from image mode testing
Tests which are not suitable (various reasons) for image mode
testing will get the avoidImageMode tag. If their conditions improve,
the tag can be removed.
2025-09-26 14:45:52 +02:00
jan janasek
7e37b29514 fix .fmf metadata
all tests with CI-Tier-1 tag should have "tier: 1" in their metadata,
also removing tags Tier1 and Tier1se and lastly tests with "tier: 2"
and "tier: 3" should not have CI-Tier-1 tag.

Signed-off-by: Jan Janasek <jjanasek@redhat.com>
2025-08-26 13:03:09 +00:00
Milos Malik
28a763c2e0 mark tests which are failing on RHEL-10
Tests which require the EPEL repository are tagged with rhel10-epel.
Tests which fail for other reasons are tagged with rhel10_broken.
2024-09-12 15:53:29 +02:00
Milos Malik
1d726848e6 skip irrelevant phases and install required packages
If required packages are not installed, the tests will try to install
them (only 1 attempt per test will be done).

Certain test phases may not be relevant if:
 * required SELinux types/attributes are not defined
 * required programs/files are not installed
 * required packages are not available
2024-07-26 18:12:20 +02:00
Milos Malik
29b9cb2a5c add a basic apol test
Main purpose of the automated test is to find out if the apol tool
can read and analyze the SELinux policies currently installed on
the system.

Because the apol tool is a graphical one, a working X session is
needed to conduct the testing procedure.
2024-05-09 15:17:40 +00:00
Milos Malik
0791bbe53a remove unnecessary requires
The setools/seinfo test does not really need the SELinux beaker
library to work correctly. The lines which require this library
were removed.
2024-04-19 19:19:19 +02:00
Milos Malik
7f4c2828eb add important downstream tests to upstream repo
To improve the quality of upstream testing, some important
downstream tests are moved to the upstream repository.
2024-04-19 17:26:05 +02:00
Milos Malik
3b016979c5 enable more repos for rebuild purposes
If the rebuild (src -> bin) of setools component should be successful,
additional repositories (rhel-CRB, beaker-CRB) need to be enabled.
2023-12-12 16:47:29 +01:00
Milos Malik
ef0547613f test if setools can be built with userspace packages
A recent rebuild testing in COPR revealed that the setools package
cannot be built with the latest SELinux userspace (version 3.6).
The TC reproduces the situation.

In order to have a well-functioning set of tools for SELinux policy
analysis which works together with the new version of SELinux
userspace, I believe that the problem needs to be fixed.

The TC covers BZ#2251915 and RHEL-18067.
2023-12-05 13:21:49 +01:00