public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: convert metadata of all libselinux tests to TMT/FMF
@ 2026-09-11 13:19 Milos Malik
  0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-09-11 13:19 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 814a670ca5c3747168b448f613c803db57614b54
Author : Milos Malik <mmalik@redhat.com>
Date   : 2022-04-26T13:18:49+00:00
Stats  : +299/-28 in 17 file(s)
URL    : https://src.fedoraproject.org/tests/selinux/c/814a670ca5c3747168b448f613c803db57614b54?branch=pr775-checkpolicy-revdeps

Log:
convert metadata of all libselinux tests to TMT/FMF

---
diff --git a/libselinux/container-selinux_crond/main.fmf b/libselinux/container-selinux_crond/main.fmf
index 40f9694..91f9a61 100644
--- a/libselinux/container-selinux_crond/main.fmf
+++ b/libselinux/container-selinux_crond/main.fmf
@@ -1,2 +1,19 @@
-path: /libselinux/container-selinux_crond
-tier: 2
+summary: Does installing container-selinux break crond?
+description: |
+    Does installing container-selinux break crond?
+    See https://bugzilla.redhat.com/show_bug.cgi?id=1862823
+    and https://bugzilla.redhat.com/show_bug.cgi?id=1879368
+contact: Vit Mojzis <vmojzis@redhat.com>
+component:
+  - libselinux
+recommend:
+  - cronie
+  - container-selinux
+  - libselinux-utils
+  - policycoreutils
+duration: 10m
+link:
+  - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1862823
+  - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1879368
+extra-summary: /CoreOS/libselinux/Regression/container-selinux_crond
+extra-task: /CoreOS/libselinux/Regression/container-selinux_crond

diff --git a/libselinux/container-selinux_crond/runtest.sh b/libselinux/container-selinux_crond/runtest.sh
index 071537e..74dde71 100755
--- a/libselinux/container-selinux_crond/runtest.sh
+++ b/libselinux/container-selinux_crond/runtest.sh
@@ -27,7 +27,6 @@
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # Include Beaker environment
-. /usr/bin/rhts-environment.sh || exit 1
 . /usr/share/beakerlib/beakerlib.sh || exit 1
 
 PACKAGE="libselinux"

diff --git a/libselinux/get_default_context/main.fmf b/libselinux/get_default_context/main.fmf
index 229106f..d79b364 100644
--- a/libselinux/get_default_context/main.fmf
+++ b/libselinux/get_default_context/main.fmf
@@ -1,2 +1,35 @@
-path: /libselinux/get_default_context
-tier: 1
+summary: Does get_default_context_with_rolelevel work as expected?
+description: |
+    Perform lookup of a default context for system_u:system_r:crond_t. This should
+    return context derived from "system_r:system_cronjob_t", but fails,
+    because of a kernel bug, when libselinux uses security_compute_user
+    (deprecated).
+    See https://bugzilla.redhat.com/show_bug.cgi?id=1879368
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+recommend:
+  - python3
+  - python3-libselinux
+  - libselinux
+  - libselinux-utils
+environment:
+    AVC_ERROR: +no_avc_check
+duration: 10m
+enabled: true
+tag:
+  - NoRHEL4
+  - NoRHEL5
+  - NoRHEL6
+  - NoRHEL7
+  - targeted
+link:
+  - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1879368
+  - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1884282
+adjust:
+  - enabled: false
+    when: distro == rhel-4, rhel-5, rhel-6, rhel-7
+    continue: false
+extra-nitrate: TC#0608317
+extra-summary: /CoreOS/libselinux/Regression/get_default_context
+extra-task: /CoreOS/libselinux/Regression/get_default_context

diff --git a/libselinux/get_default_context/runtest.sh b/libselinux/get_default_context/runtest.sh
index 14c57fe..83aae88 100755
--- a/libselinux/get_default_context/runtest.sh
+++ b/libselinux/get_default_context/runtest.sh
@@ -27,7 +27,6 @@
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # Include Beaker environment
-. /usr/bin/rhts-environment.sh || exit 1
 . /usr/share/beakerlib/beakerlib.sh || exit 1
 
 PACKAGE="libselinux"

diff --git a/libselinux/getsebool/main.fmf b/libselinux/getsebool/main.fmf
index 9227c9b..3f36893 100644
--- a/libselinux/getsebool/main.fmf
+++ b/libselinux/getsebool/main.fmf
@@ -1,2 +1,26 @@
-path: /libselinux/getsebool
-tier: 1
+summary: Does getsebool work as expected?
+description: |+
+    Does getsebool work as expected?
+
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+recommend:
+  - libselinux
+enabled: true
+tag:
+  - NoRHEL4
+  - NoRHEL5
+  - TIPpass_Security
+  - f32friendly
+  - f33friendly
+  - targeted
+link:
+  - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1402140
+adjust:
+  - enabled: false
+    when: distro == rhel-4, rhel-5
+    continue: false
+extra-nitrate: TC#0549303
+extra-summary: /CoreOS/libselinux/Sanity/getsebool
+extra-task: /CoreOS/libselinux/Sanity/getsebool

diff --git a/libselinux/python-bindings/main.fmf b/libselinux/python-bindings/main.fmf
index 03cdc91..934d008 100644
--- a/libselinux/python-bindings/main.fmf
+++ b/libselinux/python-bindings/main.fmf
@@ -1,8 +1,10 @@
-path: /libselinux/python-bindings
 summary: Import selinux python module, check its metadata
-description: |
-    The test compares rpm version with python module metadata version and
-    tries to use selinux python module in a simple operation
-adjust:
--   enabled: false
-    when: distro < rhel-8
+description: ''
+contact: Petr Lautrbach <plautrba@redhat.com>
+component:
+  - libselinux
+recommend:
+  - python3-libselinux
+  - python3-pip
+extra-summary: /CoreOS/libselinux/Sanity/python-bindings
+extra-task: /CoreOS/libselinux/Sanity/python-bindings

diff --git a/libselinux/python-bindings/runtest.sh b/libselinux/python-bindings/runtest.sh
index dceb975..fcf2890 100755
--- a/libselinux/python-bindings/runtest.sh
+++ b/libselinux/python-bindings/runtest.sh
@@ -26,7 +26,6 @@
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # Include Beaker environment
-. /usr/bin/rhts-environment.sh || exit 1
 . /usr/share/beakerlib/beakerlib.sh || exit 1
 
 PACKAGE="python3-libselinux"

diff --git a/libselinux/realpath_not_final-function/main.fmf b/libselinux/realpath_not_final-function/main.fmf
index 52d16d0..8ea7d0b 100644
--- a/libselinux/realpath_not_final-function/main.fmf
+++ b/libselinux/realpath_not_final-function/main.fmf
@@ -1 +1,29 @@
-path: /libselinux/realpath_not_final-function
+summary: Test realpath_not_final function
+description: ''
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+recommend:
+  - libselinux
+  - libselinux-devel
+  - glibc
+  - gcc
+enabled: true
+tag:
+  - CI-Tier-1
+  - NoRHEL4
+  - NoRHEL5
+  - NoRHEL6
+  - TIPpass_Security
+  - TierCandidatesPASS
+  - f32friendly
+  - f33friendly
+link:
+  - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1404644
+adjust:
+  - enabled: false
+    when: distro == rhel-4, rhel-5, rhel-6
+    continue: false
+extra-nitrate: TC#0544859
+extra-summary: /CoreOS/libselinux/Sanity/realpath_not_final-function
+extra-task: /CoreOS/libselinux/Sanity/realpath_not_final-function

diff --git a/libselinux/selabel-functions/main.fmf b/libselinux/selabel-functions/main.fmf
index 222b1c8..f079f81 100644
--- a/libselinux/selabel-functions/main.fmf
+++ b/libselinux/selabel-functions/main.fmf
@@ -1 +1,28 @@
-path: /libselinux/selabel-functions
+summary: Test selabel functions
+description: ''
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+recommend:
+  - libselinux
+  - libselinux-devel
+  - glibc
+  - gcc
+enabled: true
+tag:
+  - CI-Tier-1
+  - NoRHEL4
+  - NoRHEL5
+  - TIPpass_Security
+  - TierCandidatesPASS
+  - f33friendly
+  - targeted
+link:
+  - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1390909
+adjust:
+  - enabled: false
+    when: distro == rhel-4, rhel-5
+    continue: false
+extra-nitrate: TC#0536014
+extra-summary: /CoreOS/libselinux/Sanity/selabel-functions
+extra-task: /CoreOS/libselinux/Sanity/selabel-functions

diff --git a/libselinux/selabel-functions/runtest.sh b/libselinux/selabel-functions/runtest.sh
index 64d593f..6a9c404 100755
--- a/libselinux/selabel-functions/runtest.sh
+++ b/libselinux/selabel-functions/runtest.sh
@@ -26,7 +26,6 @@
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # Include Beaker environment
-. /usr/bin/rhts-environment.sh || exit 1
 . /usr/share/beakerlib/beakerlib.sh || exit 1
 
 PACKAGE="libselinux"

diff --git a/libselinux/selinux_boolean_sub-function/main.fmf b/libselinux/selinux_boolean_sub-function/main.fmf
index efc0f9f..8acf7c6 100644
--- a/libselinux/selinux_boolean_sub-function/main.fmf
+++ b/libselinux/selinux_boolean_sub-function/main.fmf
@@ -1 +1,27 @@
-path: /libselinux/selinux_boolean_sub-function
+summary: Test selinux_boolean_sub function
+description: ''
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+recommend:
+  - libselinux
+  - libselinux-devel
+  - glibc
+  - gcc
+enabled: true
+tag:
+  - CI-Tier-1
+  - NoRHEL4
+  - NoRHEL5
+  - NoRHEL6
+  - TIPpass_Security
+  - TierCandidatesPASS
+  - f32friendly
+  - f33friendly
+adjust:
+  - enabled: false
+    when: distro == rhel-4, rhel-5, rhel-6
+    continue: false
+extra-nitrate: TC#0544857
+extra-summary: /CoreOS/libselinux/Sanity/selinux_boolean_sub-function
+extra-task: /CoreOS/libselinux/Sanity/selinux_boolean_sub-function

diff --git a/libselinux/selinux_restorecon-functions/main.fmf b/libselinux/selinux_restorecon-functions/main.fmf
index 29aaadf..e3dd75c 100644
--- a/libselinux/selinux_restorecon-functions/main.fmf
+++ b/libselinux/selinux_restorecon-functions/main.fmf
@@ -1 +1,26 @@
-path: /libselinux/selinux_restorecon-functions
+summary: Test functions in selinux_restorecon.c
+description: ''
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+recommend:
+  - libselinux
+  - libselinux-devel
+  - glibc
+  - strace
+enabled: true
+tag:
+  - CI-Tier-1
+  - NoRHEL4
+  - NoRHEL5
+  - TIPpass_Security
+  - TierCandidatesPASS
+  - failinfedora
+  - targeted
+adjust:
+  - enabled: false
+    when: distro == rhel-4, rhel-5, rhel-6
+    continue: false
+extra-nitrate: TC#0535421
+extra-summary: /CoreOS/libselinux/Sanity/selinux_restorecon-functions
+extra-task: /CoreOS/libselinux/Sanity/selinux_restorecon-functions

diff --git a/libselinux/selinux_restorecon-functions/runtest.sh b/libselinux/selinux_restorecon-functions/runtest.sh
index 2f1b7bd..d5d37ad 100755
--- a/libselinux/selinux_restorecon-functions/runtest.sh
+++ b/libselinux/selinux_restorecon-functions/runtest.sh
@@ -26,7 +26,6 @@
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # Include Beaker environment
-. /usr/bin/rhts-environment.sh || exit 1
 . /usr/share/beakerlib/beakerlib.sh || exit 1
 
 PACKAGE="libselinux"

diff --git a/libselinux/selinux_sestatus-functions/main.fmf b/libselinux/selinux_sestatus-functions/main.fmf
index 53e4ba1..18c1a60 100644
--- a/libselinux/selinux_sestatus-functions/main.fmf
+++ b/libselinux/selinux_sestatus-functions/main.fmf
@@ -1 +1,30 @@
-path: /libselinux/selinux_sestatus-functions
+summary: Test sestatus.c functions
+description: ''
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+recommend:
+  - libselinux
+  - libselinux-devel
+  - glibc
+enabled: true
+tag:
+  - CI-Tier-1
+  - NoRHEL4
+  - NoRHEL5
+  - NoRHEL6
+  - TIPpass_Security
+  - Tier1
+  - Tier1se
+  - TierCandidatesPASS
+  - f32friendly
+  - f33friendly
+  - targeted
+tier: '1'
+adjust:
+  - enabled: false
+    when: distro == rhel-4, rhel-5, rhel-6
+    continue: false
+extra-nitrate: TC#0535409
+extra-summary: /CoreOS/libselinux/Sanity/selinux_sestatus-functions
+extra-task: /CoreOS/libselinux/Sanity/selinux_sestatus-functions

diff --git a/libselinux/setenforce/main.fmf b/libselinux/setenforce/main.fmf
index 11ebcd7..195774e 100644
--- a/libselinux/setenforce/main.fmf
+++ b/libselinux/setenforce/main.fmf
@@ -1 +1,29 @@
-path: /libselinux/setenforce
+summary: Does setenforce work as expected? Does it produce correct audit messages?
+description: |+
+    Does setenforce work as expected? Does it produce correct audit messages?
+
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+recommend:
+  - audit
+  - libselinux
+  - libselinux-utils
+  - e2fsprogs
+enabled: true
+tag:
+  - CI-Tier-1
+  - NoRHEL4
+  - NoRHEL5
+  - TIPpass_Security
+  - TierCandidatesPASS
+  - f32friendly
+  - f33friendly
+  - targeted
+adjust:
+  - enabled: false
+    when: distro == rhel-4, rhel-5
+    continue: false
+extra-nitrate: TC#0543754
+extra-summary: /CoreOS/libselinux/Sanity/setenforce
+extra-task: /CoreOS/libselinux/Sanity/setenforce

diff --git a/libselinux/validatetrans/main.fmf b/libselinux/validatetrans/main.fmf
index a23f02f..624cfec 100644
--- a/libselinux/validatetrans/main.fmf
+++ b/libselinux/validatetrans/main.fmf
@@ -1,4 +1,42 @@
-path: /libselinux/validatetrans
+summary: Does the validatetrans tool work as expected?
+description: |+
+    Does the validatetrans tool work as expected?
+
+contact: Milos Malik <mmalik@redhat.com>
+component:
+  - libselinux
+require:
+  - library(selinux-policy/common)
+recommend:
+  - audit
+  - libselinux
+  - libselinux-utils
+  - policycoreutils
+  - selinux-policy
+  - selinux-policy-targeted
+  - setools-console
+environment:
+    AVC_ERROR: +no_avc_check
+duration: 10m
+enabled: true
+tag:
+  - NoRHEL4
+  - NoRHEL5
+  - NoRHEL6
+  - NoRHEL7
+  - Tier1
+  - f33friendly
+  - targeted
+tier: '1'
+link:
+  - relates: https://bugzilla.redhat.com/show_bug.cgi?id=2008965
 adjust:
--   enabled: false
-    when: distro < fedora-32
+  - enabled: false
+    when: distro == rhel-4, rhel-5, rhel-6, rhel-7, rhel-8
+    continue: false
+  - enabled: false
+    when: distro < Fedora-32
+    continue: false
+extra-nitrate: TC#0606254
+extra-summary: /CoreOS/libselinux/Sanity/validatetrans
+extra-task: /CoreOS/libselinux/Sanity/validatetrans

diff --git a/libselinux/validatetrans/runtest.sh b/libselinux/validatetrans/runtest.sh
index 2b201df..d84991e 100755
--- a/libselinux/validatetrans/runtest.sh
+++ b/libselinux/validatetrans/runtest.sh
@@ -27,7 +27,6 @@
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # Include Beaker environment
-. /usr/bin/rhts-environment.sh || exit 1
 . /usr/share/beakerlib/beakerlib.sh || exit 1
 
 PACKAGE="libselinux"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 13:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:19 [tests/selinux] pr775-checkpolicy-revdeps: convert metadata of all libselinux tests to TMT/FMF Milos Malik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox