diff --git a/.packit.yaml b/.packit.yaml index 0d5c3a3b08..f0ba2dfd23 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -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 diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000000..346bf61e18 --- /dev/null +++ b/plans/main.fmf @@ -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 diff --git a/test/tmt/main.fmf b/test/tmt/main.fmf new file mode 100644 index 0000000000..765b81dfd6 --- /dev/null +++ b/test/tmt/main.fmf @@ -0,0 +1,2 @@ +require: + - podman diff --git a/test/tmt/smoke.fmf b/test/tmt/smoke.fmf new file mode 100644 index 0000000000..cff5ea0e5e --- /dev/null +++ b/test/tmt/smoke.fmf @@ -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' diff --git a/test/tmt/tmt.fmf b/test/tmt/tmt.fmf new file mode 100644 index 0000000000..688c2280a3 --- /dev/null +++ b/test/tmt/tmt.fmf @@ -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