public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Petr Lautrbach <lautrbach@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: Reverse-dependency checkpolicy test plan
Date: Fri, 11 Sep 2026 13:23:59 GMT	[thread overview]
Message-ID: <178913303984.1.9186242924829249515.tests-selinux-fd4fb0247df1@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : fd4fb0247df1a4b86c87ae2eb00a036df12bbbf3
            Author : Petr Lautrbach <lautrbach@redhat.com>
            Date   : 2026-09-11T14:43:48+02:00
            Stats  : +31/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/fd4fb0247df1a4b86c87ae2eb00a036df12bbbf3?branch=pr775-checkpolicy-revdeps

            Log:
            Reverse-dependency checkpolicy test plan

Rebuilds checkpolicy package from its source RPM and installs it to the system.
This is necessary for checkpolicy reverse dependecy testing - checkpolicy statically links
libsepol-static and so we need to rebuild checkpolicy and run checkpolicy tests every time
libsepol is updated.

---
diff --git a/plans/revdeps-checkpolicy.fmf b/plans/revdeps-checkpolicy.fmf
new file mode 100644
index 0000000..e1a33e2
--- /dev/null
+++ b/plans/revdeps-checkpolicy.fmf
@@ -0,0 +1,31 @@
+summary: Reverse-dependency checkpolicy tests
+
+description: |+
+    Rebuilds checkpolicy package from its source RPM and installs it to the system.
+    This is necessary for checkpolicy reverse dependecy testing - checkpolicy statically links
+    libsepol-static and so we need to rebuild checkpolicy and run checkpolicy tests every time
+    libsepol is updated.
+
+environment:
+    INSTALL_CHECKPOLICY_RPM: true
+prepare:
+    - name: Install epel-release
+      how: shell
+      script: bash -c "dnf -y install epel-release || :"
+      order: 10
+    - name: Enable CRB repo
+      how: shell
+      script: bash -c "crb enable || :"
+      order: 10
+    
+discover:
+    - name: rebuild and install checkpolicy
+      how: fmf
+      test:
+        - /libsepol/rebuild-and-install-checkpolicy
+    - name: Run checkpolicy tests
+      how: fmf
+      filter: "component: checkpolicy & tag: -tf_broken"
+      
+execute:
+    how: tmt

                 reply	other threads:[~2026-09-11 13:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178913303984.1.9186242924829249515.tests-selinux-fd4fb0247df1@fedoraproject.org \
    --to=lautrbach@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox