Skip to content

Commit

Permalink
fmf: Run cockpit-podman tests on current Fedora
Browse files Browse the repository at this point in the history
This ensures that changes to the Python bridge don't break podman.
  • Loading branch information
martinpitt committed Aug 1, 2023
1 parent ff6f5a8 commit 64d8723
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ srpm_build_deps:
copy_upstream_release_description: true
jobs:
- job: tests
identifier: self
trigger: pull_request
targets:
- fedora-37
Expand All @@ -34,6 +35,21 @@ jobs:
- centos-stream-9-x86_64
- centos-stream-9-aarch64

# current Fedora runs reverse dependency testing against https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/
- job: tests
identifier: revdeps
trigger: pull_request
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
tmt:
context:
revdeps: "yes"

# run build/unit tests on some interesting architectures
- job: copr_build
trigger: pull_request
Expand Down
4 changes: 4 additions & 0 deletions plans/all.fmf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
adjust+:
when: revdeps == yes
enabled: false

discover:
how: fmf
execute:
Expand Down
29 changes: 29 additions & 0 deletions plans/podman.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# reverse dependency test
enabled: false

adjust+:
when: revdeps == yes
enabled: true

discover:
how: fmf
url: https://github.com/cockpit-project/cockpit-podman
ref: "main"
execute:
how: tmt

# This has to duplicate cockpit-podman's plan structure; see https://github.com/teemtee/tmt/issues/1770
/podman-system:
summary: Run cockpit-podman system tests
discover+:
test: /test/browser/system

/podman-user:
summary: Run cockpit-podman user tests
discover+:
test: /test/browser/user

/podman-misc:
summary: Run other cockpit-podman tests
discover+:
test: /test/browser/other

0 comments on commit 64d8723

Please sign in to comment.