Commit graph

13 commits

Author SHA1 Message Date
Milos Malik
7773d77b0b fix the shell script name executed in the Makefile
Now the Makefile runs the test.sh file instead of the runtest.sh file.
2022-11-04 12:04:33 +01:00
Milos Malik
61ef9e6185 add the Tier test plans
Purpose of the Tier1 test plan is to gather all Tier1 tests in this
repository.

Purpose of the Tier2 test plan is to gather all Tier2 tests in this
repository.

Purpose of the Tier3 test plan is to gather all Tier3 tests in this
repository.
2022-11-02 08:10:34 +00:00
Petr Lautrbach
31f776e00a Can libsepol handle users declared in modules?
https://bugzilla.redhat.com/show_bug.cgi?id=2136212
2022-10-21 15:33:30 +02:00
Ondrej Mosnacek
f24d1087c7 Add a test for self keyword support in type rules
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2022-06-03 14:44:51 +00:00
Milos Malik
9d5fef0179 convert metadata of all libsepol tests to TMT/FMF 2022-04-26 13:18:49 +00:00
Amith Kumar
ff195852b2 libsepol-sanity: Add test for bug1838257
Add a sanity test suite which verifies but 1838257. The fix evaluates
the rpm scripts for components libsepol, libsemanage and libselinux.
It looks for obsolete commands like telinit.

Signed-off-by: Amith Kumar <apeetham@redhat.com>
2021-04-21 12:51:19 +00:00
Petr Lautrbach
b41ff2e4c1 Fix path meta data
Commit 769880f7 added path meta data into .fmf files. As path's didn't have /
at the beginning test were not created correctly.

Fixes:
fatal: [fedora29]: FAILED! => {
    "msg": [
        "Tests failed: True",
        "Tests msg: FAIL selinuxselinux-policy/policy-rpm-macros",
        "FAIL selinuxcheckpolicy/checkpolicy",
        "FAIL selinuxlibsepol/sepol_check_context",
        "FAIL selinuxlibsemanage/verify-options-in-semanage-conf",
...

$ cat artifacts/FAIL_selinuxcheckpolicy-checkpolicy.log
FAIL test selinuxcheckpolicy/checkpolicy does not appear to be a file or directory
2018-10-14 21:52:42 +02:00
Petr Lautrbach
66a56a3e9b Revert "Fix path meta data"
This reverts commit 4cf575fc0b.

Some of paths were not correctly updated

Fixes:
        "FAIL selinux/olicycoreutils/booleans",
2018-10-14 21:48:49 +02:00
Petr Lautrbach
4cf575fc0b Fix path meta data
Commit 769880f7 added path meta data into .fmf files. As path's didn't have /
at the beginning test were not created correctly.

Fixes:
fatal: [fedora29]: FAILED! => {
    "msg": [
        "Tests failed: True",
        "Tests msg: FAIL selinuxselinux-policy/policy-rpm-macros",
        "FAIL selinuxcheckpolicy/checkpolicy",
        "FAIL selinuxlibsepol/sepol_check_context",
        "FAIL selinuxlibsemanage/verify-options-in-semanage-conf",
...

$ cat artifacts/FAIL_selinuxcheckpolicy-checkpolicy.log
FAIL test selinuxcheckpolicy/checkpolicy does not appear to be a file or directory
2018-10-14 21:31:10 +02:00
Petr Šplíchal
769880f739 Define path metadata for each test
Adding attribute "path" to each test according to the CI metadata
specification [1]. This also resolves problem with autodetecting
empty directories [2] which will be fixed in the next fmf release.

[1] https://fedoraproject.org/wiki/CI/Metadata#Path
[2] https://github.com/psss/fmf/pull/48
2018-10-11 10:45:08 +02:00
Petr Šplíchal
40894f79d3 Update tier metadata to the latest specification
There is now a dedicated field to store the tier info:
https://fedoraproject.org/wiki/CI/Metadata#Tier
Also added some missing component data.
2018-09-20 17:08:10 +02:00
Petr Šplíchal
3b2fd40114 Add initial test metadata using the FMF format
This adds an initial set of test metadata using the Flexible Metadata
Format for experimenting. This should allow us to more easily execute
relevant test coverage for all selinux-related components. Example:

    fmf --key test --filter 'tags:Tier1'
    fmf --key test --filter 'component:libselinux'
    fmf --key test --filter 'component:libselinux | tags:Tier1'

See https://github.com/psss/fmf for more details about the FMF format.
2018-02-19 15:05:29 +01:00
Petr Lautrbach
3467323c2d Add tests from https://src.fedoraproject.org/rpms/libsepol/blob/master/f/tests 2018-02-14 13:39:23 +01:00