Add packit test plans

Signed-off-by: Nikola Forró <nforro@redhat.com>
This commit is contained in:
Nikola Forró 2026-02-26 17:47:00 +01:00
commit df525cc0e1
3 changed files with 42 additions and 0 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

35
plans/full.fmf Normal file
View file

@ -0,0 +1,35 @@
summary: Unit, integration & functional tests.
discover+:
filter: tag:full
adjust:
- when: "initiator == packit"
because: "have the latest builds of ogr and specfile available for upstream test jobs"
prepare+:
# enable packit-dev Copr repo to get the latest builds of ogr and specfile
- how: install
copr: packit/packit-dev
# make sure the Copr repo has higher priority than TF Tag Repository
- how: shell
script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo
# upgrade or install ogr, if needed
- how: shell
script: dnf -y upgrade python3-ogr || dnf -y install python3-ogr
# upgrade or install specfile, if needed
- how: shell
script: dnf -y upgrade python3-specfile || dnf -y install python3-specfile
- when: "distro == rhel-9 or distro == centos-9 or distro == centos-stream-9"
because: "build and deepdiff are not in EPEL 9"
prepare+:
- how: install
package: python3-pip
- how: shell
script: pip3 install build deepdiff
- when: "distro == rhel-10 or distro == centos-10 or distro == centos-stream-10"
because: "We are missing dependencies in EL10 that prohibit us from building."
enabled: false

6
plans/main.fmf Normal file
View file

@ -0,0 +1,6 @@
discover:
how: fmf
url: https://github.com/packit/packit.git
ref: main
execute:
how: tmt