public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: add the Tier test plans
@ 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 : 61ef9e61853e9b3a3b3713817cd71915e3673c7b
Author : Milos Malik <mmalik@redhat.com>
Date : 2022-11-02T08:10:34+00:00
Stats : +97/-0 in 4 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/61ef9e61853e9b3a3b3713817cd71915e3673c7b?branch=pr775-checkpolicy-revdeps
Log:
add the Tier test plans
Purpose of the Tier1 test plan is to gather all Tier1 tests in this
repository.
Purpose of the Tier2 test plan is to gather all Tier2 tests in this
repository.
Purpose of the Tier3 test plan is to gather all Tier3 tests in this
repository.
---
diff --git a/libsepol/user-declaration-in-module/Makefile b/libsepol/user-declaration-in-module/Makefile
new file mode 100644
index 0000000..5bb9656
--- /dev/null
+++ b/libsepol/user-declaration-in-module/Makefile
@@ -0,0 +1,64 @@
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Makefile of /CoreOS/libsepol/Sanity/user-declaration-in-module
+# Description: Can libsepol handle users declared in modules?
+# Author: Petr Lautrbach <plautrba@redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2022 Red Hat, Inc.
+#
+# This copyrighted material is made available to anyone wishing
+# to use, modify, copy, or redistribute it subject to the terms
+# and conditions of the GNU General Public License version 2.
+#
+# This program is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this program; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+export TEST=/CoreOS/libsepol/Sanity/user-declaration-in-module
+export TESTVERSION=1.0
+
+BUILT_FILES=
+
+FILES=$(METADATA) test.sh foo.te Makefile
+
+.PHONY: all install download clean
+
+run: $(FILES) build
+ ./runtest.sh
+
+build: $(BUILT_FILES)
+ test -x test.sh || chmod a+x test.sh
+
+clean:
+ rm -f *~ $(BUILT_FILES)
+
+include /usr/share/rhts/lib/rhts-make.include
+
+$(METADATA): Makefile
+ @echo "Owner: Petr Lautrbach <plautrba@redhat.com>" > $(METADATA)
+ @echo "Name: $(TEST)" >> $(METADATA)
+ @echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
+ @echo "Path: $(TEST_DIR)" >> $(METADATA)
+ @echo "Description: Can libsepol handle users declared in modules?" >> $(METADATA)
+ @echo "Type: Sanity" >> $(METADATA)
+ @echo "TestTime: 5m" >> $(METADATA)
+ @echo "RunFor: libsepol" >> $(METADATA)
+ @echo "Requires: libsepol-devel selinux-policy-devel" >> $(METADATA)
+ @echo "Priority: Normal" >> $(METADATA)
+ @echo "License: GPLv2" >> $(METADATA)
+ @echo "Confidential: no" >> $(METADATA)
+ @echo "Destructive: no" >> $(METADATA)
+ @echo "Bug: 2136212" >> $(METADATA) # RHEL-9
+
+ rhts-lint $(METADATA)
+
diff --git a/plans/tier1.fmf b/plans/tier1.fmf
new file mode 100644
index 0000000..f311437
--- /dev/null
+++ b/plans/tier1.fmf
@@ -0,0 +1,11 @@
+summary: Tier1 test plan
+adjust:
+- when: trigger == commit
+ enabled: false
+ because: do not run this plan on changes caused by a PR/MR
+discover:
+ how: fmf
+ filter: tier:1 | tag:CI-Tier-1
+execute:
+ how: tmt
+
diff --git a/plans/tier2.fmf b/plans/tier2.fmf
new file mode 100644
index 0000000..f424e5c
--- /dev/null
+++ b/plans/tier2.fmf
@@ -0,0 +1,11 @@
+summary: Tier2 test plan
+adjust:
+- when: trigger == commit
+ enabled: false
+ because: do not run this plan on changes caused by a PR/MR
+discover:
+ how: fmf
+ filter: tier:2
+execute:
+ how: tmt
+
diff --git a/plans/tier3.fmf b/plans/tier3.fmf
new file mode 100644
index 0000000..8ee071d
--- /dev/null
+++ b/plans/tier3.fmf
@@ -0,0 +1,11 @@
+summary: Tier3 test plan
+adjust:
+- when: trigger == commit
+ enabled: false
+ because: do not run this plan on changes caused by a PR/MR
+discover:
+ how: fmf
+ filter: tier:3
+execute:
+ how: tmt
+
^ 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: add the Tier test plans Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox