add testing for containers-common

Signed-off-by: Yuhui Jiang <yujiang@redhat.com>
This commit is contained in:
Yuhui Jiang 2024-12-17 21:59:43 +08:00
parent 2aff8e2cf3
commit 9e467539ea
4 changed files with 53 additions and 3 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -1,6 +1,14 @@
# recipients: jnovy, lsm5, santiago
--- !Policy
product_versions:
- rhel-9
- fedora-*
decision_context: bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules: []
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -0,0 +1,27 @@
---
summary: Run containers-common tests
description: Test plan for containers-common
contact: Yuhui Jiang <yujiang@redhat.com>
provision:
how: container
prepare:
- name: Install packages
how: install
package: [crun, podman, podman-tests, git]
- name: Prepare bats
how: shell
script:
- rm -rf /tmp/bats-core-1.11.0
- curl -s -L https://github.com/bats-core/bats-core/archive/refs/tags/v1.11.0.tar.gz | tar xvz -C /tmp
- /tmp/bats-core-1.11.0/install.sh /usr
discover:
how: fmf
filter: 'tag: gate'
url: https://gitlab.com/yujiang1/containers-common.git
ref: c9s
execute:
how: tmt

14
tests/main.fmf Normal file
View File

@ -0,0 +1,14 @@
---
summary: containers-common tests
description: Using podman system tests to test containers-common
contact: Yuhui Jiang <yujiang@redhat.com>
framework: shell
require: [podman,containers-common]
tag: 'gate'
test: |
/usr/bin/bats -t /usr/share/podman/test/system/030-run.bats
/usr/bin/bats -t /usr/share/podman/test/system/075-exec.bats
duration: 15m