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 Oct 25, 2024
1 parent 2da21d1 commit af89e2d
Show file tree
Hide file tree
Showing 5 changed files with 49 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
13 changes: 13 additions & 0 deletions plans/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
summary: Check basic functionality
discover:
how: fmf
execute:
how: tmt
prepare:
how: feature
epel: enabled

/centos:
summary: Run only on CentOS environments
discover+:
filter: tag:centos
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
2 changes: 2 additions & 0 deletions test/tmt/smoke.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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 af89e2d

Please sign in to comment.