Skip to content

Commit

Permalink
[skip-ci] [IGNORE] tmt for downstream gating sync
Browse files Browse the repository at this point in the history
Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Nov 25, 2024
1 parent aba98ad commit ab31b4b
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,28 @@ jobs:
project: podman-next
enable_net: true

- job: tests
trigger: pull_request
packages: [podman-fedora]
targets:
- fedora-rawhide-x86_64
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo

- job: tests
trigger: pull_request
packages: [podman-centos]
targets:
- centos-stream-10-x86_64
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/centos-stream-$releasever/rhcontainerbot-podman-next-centos-stream-$releasever.repo

- job: tests
identifier: cockpit-revdeps
trigger: pull_request
Expand Down
25 changes: 25 additions & 0 deletions plans/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
summary: Check basic functionality
discover:
how: fmf
execute:
how: tmt
prepare:
how: feature
epel: enabled


/fedora:
summary: Run only on Fedora environments
discover+:
filter: tag:fedora
adjust+:
enabled: false
when: distro == centos-stream or distro == rhel

/centos:
summary: Run only on CentOS environments
discover+:
filter: tag:centos
adjust+:
enabled: false
when: distro == fedora
2 changes: 2 additions & 0 deletions test/tmt/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require:
- podman
4 changes: 4 additions & 0 deletions test/tmt/smoke.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/basic:
tag: [ centos, fedora ]
summary: Execute a simple command
test: podman run -t --rm fedora cat /etc/os-release | grep 'Fedora Linux'
10 changes: 10 additions & 0 deletions test/tmt/tmt.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/tmt-on-centos:
tag: [centos]
summary: Make sure that container provision works
require:
- tmt+provision-container
test:
tmt run --verbose --remove
provision --how container --image fedora
login --command 'cat /etc/os-release'
finish

0 comments on commit ab31b4b

Please sign in to comment.