From af89e2dce1310731e9f8e45cf50c8538ad48fa2a Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Fri, 25 Oct 2024 19:54:41 +0530 Subject: [PATCH] [skip-ci] [IGNORE] tmt for downstream gating sync Signed-off-by: Lokesh Mandvekar --- .packit.yaml | 22 ++++++++++++++++++++++ plans/main.fmf | 13 +++++++++++++ test/tmt/main.fmf | 2 ++ test/tmt/smoke.fmf | 2 ++ test/tmt/tmt.fmf | 10 ++++++++++ 5 files changed, 49 insertions(+) create mode 100644 plans/main.fmf create mode 100644 test/tmt/main.fmf create mode 100644 test/tmt/smoke.fmf create mode 100644 test/tmt/tmt.fmf 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..fa045baf48 --- /dev/null +++ b/plans/main.fmf @@ -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 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..97f2de4a4a --- /dev/null +++ b/test/tmt/smoke.fmf @@ -0,0 +1,2 @@ +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