CI Tests: Introduce FMF based test plan

This commit is contained in:
Martin Cermak 2023-04-05 13:17:15 +02:00
parent d37863f5cd
commit dfb3554b15
3 changed files with 31 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

13
plans/ci.fmf Normal file
View File

@ -0,0 +1,13 @@
summary: CI Gating Plan
discover:
how: fmf
url: https://src.fedoraproject.org/rpms/systemtap.git
ref: rawhide
directory: tests
filter: 'tier: 1'
prepare:
- name: prepare
how: shell
script: ./plans/prepare.sh
execute:
how: tmt

17
plans/prepare.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -xe
# Install needed packages
dnf -y install /usr/bin/stap-prep
stap-prep
# Report installed packages
stap-report
# Set up SELinux so that it allows for userspace probing
setsebool allow_execmod on
setsebool allow_execstack on
setsebool deny_ptrace off
set +xe