public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: add a CI-for-tests plan
@ 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 : 7a1caf666f444b9595ed8eed5e721c931c5d2e67
Author : Milos Malik <mmalik@redhat.com>
Date : 2022-04-25T06:09:41+00:00
Stats : +32/-42 in 5 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/7a1caf666f444b9595ed8eed5e721c931c5d2e67?branch=pr775-checkpolicy-revdeps
Log:
add a CI-for-tests plan
This plan should run only tests that have been modified in the given
pull request.
---
diff --git a/plans/ci.fmf b/plans/ci.fmf
new file mode 100644
index 0000000..454574d
--- /dev/null
+++ b/plans/ci.fmf
@@ -0,0 +1,9 @@
+summary: CI test plan that runs only modified tests
+discover:
+ how: fmf
+ modified-only: true
+ modified-url: https://src.fedoraproject.org/tests/selinux
+ modified-ref: reference/main
+execute:
+ how: tmt
+
diff --git a/selinux-policy/rtkit-daemon-and-similar/Makefile b/selinux-policy/rtkit-daemon-and-similar/Makefile
index 4e5588f..35430d8 100644
--- a/selinux-policy/rtkit-daemon-and-similar/Makefile
+++ b/selinux-policy/rtkit-daemon-and-similar/Makefile
@@ -1,7 +1,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/selinux-policy/Regression/rtkit-daemon-and-similar
-# Description: the service was running as initrc_t, now it is confined by SELinux
+# Description: SELinux interferes with rtkit daemon and related programs
# Author: Milos Malik <mmalik@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/selinux-policy/rtkit-daemon-and-similar/main.fmf b/selinux-policy/rtkit-daemon-and-similar/main.fmf
index 358e482..1aec75d 100644
--- a/selinux-policy/rtkit-daemon-and-similar/main.fmf
+++ b/selinux-policy/rtkit-daemon-and-similar/main.fmf
@@ -2,3 +2,24 @@ path: /selinux-policy/rtkit-daemon-and-similar
summary: SELinux interferes with rtkit daemon and related programs
description: |
Test coverage for SELinux AVC issues against rtkit daemon and related programs.
+component:
+ - selinux-policy
+framework: beakerlib
+require:
+ - library(selinux-policy/common)
+recommend:
+ - audit
+ - libselinux-utils
+ - policycoreutils
+ - rtkit
+ - selinux-policy
+ - selinux-policy-targeted
+ - setools-console
+ - /usr/sbin/service
+duration: 15m
+tier: '2'
+adjust:
+ - enabled: false
+ when: distro == rhel-4, rhel-5
+ continue: false
+
diff --git a/selinux-policy/rtkit-daemon-and-similar/runtest.sh b/selinux-policy/rtkit-daemon-and-similar/runtest.sh
index b6e88e8..f7e2613 100755
--- a/selinux-policy/rtkit-daemon-and-similar/runtest.sh
+++ b/selinux-policy/rtkit-daemon-and-similar/runtest.sh
@@ -3,7 +3,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/selinux-policy/Regression/rtkit-daemon-and-similar
-# Description: the service was running as initrc_t, now it is confined by SELinux
+# Description: SELinux interferes with rtkit daemon and related programs
# Author: Milos Malik <mmalik@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -27,7 +27,6 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
-. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="selinux-policy"
diff --git a/tests-pr.yml b/tests-pr.yml
deleted file mode 100644
index f06af2b..0000000
--- a/tests-pr.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-- hosts: localhost
- tags:
- - classic
-
- pre_tasks:
- - name: Generate list of tests in this PR
- shell: |
- git fetch https://src.fedoraproject.org/tests/selinux.git main:upstream-main
- git log --format= --stat --name-only upstream-main..HEAD | sed '/\//!d;s#\(.*\)/.*#\1#' | sort -u | xargs
- delegate_to: localhost
- register: tests_list
-
- - name: Set tests
- set_fact:
- tests: "{{ tests_list.stdout.split(' ') }}"
-
- # Update to the latest kernel to allow installing kernel-* packages
- # matching the running kernel version.
- # See: https://pagure.io/fedora-ci/general/issue/162
- # May be removed once the issue above is resolved.
- - name: Update kernel packages and reboot
- block:
- - name: Update kernel-core
- shell: dnf update -y kernel-core
-
- - name: Restart host
- shell: sleep 2 && shutdown -r now "Ansible updates triggered"
- async: 1
- poll: 0
- ignore_errors: true
-
- - name: Wait for host to come back
- wait_for_connection:
- delay: 10
- timeout: 300
-
- roles:
- - role: standard-test-beakerlib
-
^ 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: add a CI-for-tests plan Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox