public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: test if sepolicy manpage can generate all man pages
@ 2026-09-11 13:20 Milos Malik
  0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-09-11 13:20 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : afff1ecfd46ae535a44a9037e8c6707b2e9e8b6c
            Author : Milos Malik <mmalik@redhat.com>
            Date   : 2023-01-17T15:27:53+01:00
            Stats  : +12/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/afff1ecfd46ae535a44a9037e8c6707b2e9e8b6c?branch=pr775-checkpolicy-revdeps

            Log:
            test if sepolicy manpage can generate all man pages

A new test phase was added. Purpose of the test phase is to find
out whether the `sepolicy manpage` command can generate man pages
for all SELinux domains without triggering an error or traceback.

The TC covers BZ#1416372.

---
diff --git a/policycoreutils/sepolicy-manpage/main.fmf b/policycoreutils/sepolicy-manpage/main.fmf
index eae4499..380ea44 100644
--- a/policycoreutils/sepolicy-manpage/main.fmf
+++ b/policycoreutils/sepolicy-manpage/main.fmf
@@ -6,14 +6,16 @@ component:
 framework: beakerlib
 recommend:
   - /usr/bin/sepolicy
-duration: 10m
+duration: 20m
 enabled: true
 tier: 3
 link:
+  - verifies: https://bugzilla.redhat.com/show_bug.cgi?id=1416372
   - verifies: https://bugzilla.redhat.com/show_bug.cgi?id=1854639
   - verifies: https://bugzilla.redhat.com/show_bug.cgi?id=1989840
 adjust:
   - enabled: false
     when: distro == rhel-4, rhel-5, rhel-6
     because: the sepolicy command is not available there
+extra-nitrate: TC#0614751
 

diff --git a/policycoreutils/sepolicy-manpage/runtest.sh b/policycoreutils/sepolicy-manpage/runtest.sh
index 32c12a3..e6c1006 100755
--- a/policycoreutils/sepolicy-manpage/runtest.sh
+++ b/policycoreutils/sepolicy-manpage/runtest.sh
@@ -7,6 +7,15 @@ rlJournalStart
         rlRun "rpm -qa | grep policycoreutils"
     rlPhaseEnd
 
+    rlPhaseStartTest "bz#1416372"
+        rlRun -s "sepolicy manpage -a"
+        rlRun "grep -i -e invalid -e error -e traceback ${rlRun_LOG}" 1
+        rm -f ${rlRun_LOG}
+        rlRun -s "sepolicy manpage -d crond_t"
+        rlRun "grep -i -e invalid -e error -e traceback ${rlRun_LOG}" 1
+        rm -f ${rlRun_LOG}
+    rlPhaseEnd
+
     rlPhaseStartTest "sepolicy manpage --web, bz#1854639 + bz#1989840"
         rlRun "sepolicy manpage --web -d zebra_t"
         if rlIsRHEL 7 8 ; then

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

only message in thread, other threads:[~2026-09-11 13:20 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:20 [tests/selinux] pr775-checkpolicy-revdeps: test if sepolicy manpage can generate all man pages Milos Malik

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