public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: skip man page test if no present on the system
@ 2026-09-11 13:22 Jan Onderka
0 siblings, 0 replies; only message in thread
From: Jan Onderka @ 2026-09-11 13:22 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 6a1e7f439946069e1f5d15ebed473c13ea971fff
Author : Jan Onderka <jonderka@redhat.com>
Date : 2025-04-30T10:17:16+00:00
Stats : +30/-13 in 6 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/6a1e7f439946069e1f5d15ebed473c13ea971fff?branch=pr775-checkpolicy-revdeps
Log:
skip man page test if no present on the system
---
diff --git a/checkpolicy/checkmodule/runtest.sh b/checkpolicy/checkmodule/runtest.sh
index 430d30d..0d2eb4a 100755
--- a/checkpolicy/checkmodule/runtest.sh
+++ b/checkpolicy/checkmodule/runtest.sh
@@ -65,11 +65,15 @@ rlJournalStart
rlRun "checkmodule ${TEST_FILE}" 1
rlRun "checkmodule -b ${TEST_FILE}" 1
if rlIsRHEL 5 ; then
- rlRun "man checkmodule | col -b | grep -- -d"
+ if [ -e "/usr/share/man/man8/checkmodule.8.gz" ]; then
+ rlRun "man checkmodule | col -b | grep -- -d"
+ fi
rlRun "checkmodule --help 2>&1 | grep -- -d"
fi
- rlRun "man checkmodule | col -b | grep -- -h"
- rlRun "man checkmodule | col -b | grep -- -U"
+ if [ -e "/usr/share/man/man8/checkmodule.8.gz" ]; then
+ rlRun "man checkmodule | col -b | grep -- -h"
+ rlRun "man checkmodule | col -b | grep -- -U"
+ fi
rlRun "checkmodule --help 2>&1 | grep -- -h"
rlRun "checkmodule --help 2>&1 | grep -- -U"
rlPhaseEnd
diff --git a/checkpolicy/checkpolicy-docs/main.fmf b/checkpolicy/checkpolicy-docs/main.fmf
index f66b1a9..76804dd 100644
--- a/checkpolicy/checkpolicy-docs/main.fmf
+++ b/checkpolicy/checkpolicy-docs/main.fmf
@@ -22,6 +22,7 @@ tag:
- f31friendly
- f32friendly
- targeted
+ - NoRHIVOS
tier: '1'
link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1328966
diff --git a/checkpolicy/checkpolicy/runtest.sh b/checkpolicy/checkpolicy/runtest.sh
index 359bc3e..6f5a9ef 100755
--- a/checkpolicy/checkpolicy/runtest.sh
+++ b/checkpolicy/checkpolicy/runtest.sh
@@ -100,7 +100,9 @@ rlJournalStart
rlRun "checkpolicy -c 0 2>&1 | grep \"value 0 not in range\""
rlRun "checkpolicy -t 2>&1 | grep \"option requires an argument\""
rlRun "checkpolicy -t xyz 2>&1 | grep -i \"unknown target platform\""
- rlRun "man checkpolicy | col -b | grep -- '-m]'" 1
+ if [ -e "/usr/share/man/man8/checkmodule.8.gz" ]; then
+ rlRun "man checkpolicy | col -b | grep -- '-m]'" 1
+ fi
rlRun "checkpolicy --help 2>&1 | grep -- '-m]'" 1
rlPhaseEnd
@@ -179,10 +181,12 @@ rlJournalStart
rlRun "cat $OUTPUT_FILE"
rlAssertGrep "\[-S\]" $OUTPUT_FILE
- # check -S option in man page
- rlRun "PAGER=cat man checkpolicy >$OUTPUT_FILE"
- rlRun "cat $OUTPUT_FILE"
- rlAssertGrep "\[-S\]" $OUTPUT_FILE
+ if [ -e "/usr/share/man/man8/checkmodule.8.gz" ];then
+ # check -S option in man page
+ rlRun "PAGER=cat man checkpolicy >$OUTPUT_FILE"
+ rlRun "cat $OUTPUT_FILE"
+ rlAssertGrep "\[-S\]" $OUTPUT_FILE
+ fi
# run checkpolicy with the -S option
rlWatchdog "checkpolicy -S -M -o policy.out policy.conf.from.secilc" 15
diff --git a/policycoreutils/semodule-l-checksum/runtest.sh b/policycoreutils/semodule-l-checksum/runtest.sh
index 5096fbc..b16ef6d 100755
--- a/policycoreutils/semodule-l-checksum/runtest.sh
+++ b/policycoreutils/semodule-l-checksum/runtest.sh
@@ -70,8 +70,10 @@ EOF"
rlPhaseEnd
rlPhaseStartTest "is the checksum option listed?"
- rlRun "man semodule | col -b | grep checksum"
- rlRun "man semodule | col -b | grep 'SHA256.*checksum'"
+ if [ -e "/usr/share/man/man8/semodule.8.gz" ]; then
+ rlRun "man semodule | col -b | grep checksum"
+ rlRun "man semodule | col -b | grep 'SHA256.*checksum'"
+ fi
rlRun "semodule --help | grep checksum"
rlRun "semodule --help | grep 'checksum.*SHA256'"
rlPhaseEnd
diff --git a/policycoreutils/sestatus/runtest.sh b/policycoreutils/sestatus/runtest.sh
index ebc56b2..1ddd4d5 100755
--- a/policycoreutils/sestatus/runtest.sh
+++ b/policycoreutils/sestatus/runtest.sh
@@ -98,10 +98,14 @@ rlJournalStart
rlRun "rpm -ql ${PACKAGE} | grep /usr/share/man/man8/sestatus.8"
for OPTION in b v ; do
rlRun "sestatus --help 2>&1 | grep -- -${OPTION}"
- rlRun "man sestatus | col -b | grep -- -${OPTION}"
+ if [ -e "/usr/share/man/man8/sestatus.8.gz" ]; then
+ rlRun "man sestatus | col -b | grep -- -${OPTION}"
+ fi
done
if ! rlIsRHEL 6 ; then
- rlRun "man -w sestatus.conf"
+ if [ -e "/usr/share/man/man5/sestatus.conf.5.gz" ]; then
+ rlRun "man -w sestatus.conf"
+ fi
fi
rlPhaseEnd
fi
diff --git a/selinux-policy/systemd-sysctl-and-similar/runtest.sh b/selinux-policy/systemd-sysctl-and-similar/runtest.sh
index 476f811..3cec638 100755
--- a/selinux-policy/systemd-sysctl-and-similar/runtest.sh
+++ b/selinux-policy/systemd-sysctl-and-similar/runtest.sh
@@ -62,7 +62,9 @@ rlJournalStart
if ! rlIsRHEL "<9.6" ; then
rlPhaseStartTest "RHEL-56988 + RHEL-58380"
- rlRun "man sysctl.d | grep /run/sysctl"
+ if [ -e "/usr/share/man/man5/sysctl.d.5.gz" ]; then
+ rlRun "man sysctl.d | grep /run/sysctl"
+ fi
rlRun "mkdir -pZ /run/sysctl.d"
rlRun "echo 'net.ipv4.conf.eno1.rp_filter=0' > /run/sysctl.d/51-rp_filter.conf"
rlRun "restorecon -Rv /run/sysctl.d"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:22 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:22 [tests/selinux] pr775-checkpolicy-revdeps: skip man page test if no present on the system Jan Onderka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox