public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: test if the checksum option is mentioned in help/manpages
@ 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 : edffc3122c7242827f2d65b07465b013d57eae42
            Author : Milos Malik <mmalik@redhat.com>
            Date   : 2022-01-12T12:01:43+00:00
            Stats  : +7/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/edffc3122c7242827f2d65b07465b013d57eae42?branch=pr775-checkpolicy-revdeps

            Log:
            test if the checksum option is mentioned in help/manpages

The test phase checks if the newly added checksum option is listed
in the help message and in the semodule man page.

---
diff --git a/policycoreutils/semodule-l-checksum/runtest.sh b/policycoreutils/semodule-l-checksum/runtest.sh
index eabd453..e5b5813 100755
--- a/policycoreutils/semodule-l-checksum/runtest.sh
+++ b/policycoreutils/semodule-l-checksum/runtest.sh
@@ -70,6 +70,13 @@ EOF"
         rlAssertEquals "Is the loaded module checksum same as the file checksum? " ${module[3]} ${sha256[0]}
     rlPhaseEnd
 
+    rlPhaseStartTest "is the checksum option listed?"
+        rlRun "man semodule | col -b | grep checksum"
+        rlRun "man semodule | col -b | grep 'SHA256.*checksum'"
+        rlRun "semodule --help | grep checksum"
+        rlRun "semodule --help | grep 'checksum.*SHA256'"
+    rlPhaseEnd
+
     rlPhaseStartCleanup
         rlRun "semodule -X 500 -r test_module"
         rlRun "popd"

^ 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: test if the checksum option is mentioned in help/manpages Milos Malik

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