Migrate libblockdev gating tests from STI to TMT
This commit is contained in:
parent
35282d5a11
commit
65eef9a8b4
@ -3,4 +3,4 @@ product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tests.functional}
|
||||
|
53
plans/tests.fmf
Normal file
53
plans/tests.fmf
Normal file
@ -0,0 +1,53 @@
|
||||
summary: libblockdev gating tests
|
||||
|
||||
prepare:
|
||||
how: install
|
||||
package:
|
||||
- cryptsetup
|
||||
- device-mapper-multipath
|
||||
- dosfstools
|
||||
- e2fsprogs
|
||||
- glibc-all-langpacks
|
||||
- lvm2-dbusd
|
||||
- mdadm
|
||||
- ndctl
|
||||
- nss-tools
|
||||
- nvme-cli
|
||||
- nvmetcli
|
||||
- python3-bytesize
|
||||
- python3-dbus
|
||||
- python3-packaging
|
||||
- python3-yaml
|
||||
- smartmontools
|
||||
- targetcli
|
||||
- vdo
|
||||
- volume_key
|
||||
- xfsprogs
|
||||
|
||||
discover:
|
||||
how: shell
|
||||
url: https://gitlab.com/redhat/centos-stream/rpms/libblockdev.git
|
||||
ref: c9s
|
||||
dist-git-source: true
|
||||
dist-git-install-builddeps: true
|
||||
tests:
|
||||
- name: upstream test suite
|
||||
test: |
|
||||
set -x
|
||||
if [ -z "$PKG_VER" ]; then
|
||||
PKG_VER=`rpmspec -q --srpm --qf "%{version}" libblockdev.spec`
|
||||
fi
|
||||
if [ -z "$PKG_VER" ]; then
|
||||
echo "Error: Unable to extract package version"
|
||||
exit 1
|
||||
fi
|
||||
pushd $TMT_SOURCE_DIR/libblockdev-${PKG_VER}
|
||||
|
||||
python3 tests/run_tests.py --installed
|
||||
|
||||
execute:
|
||||
- how: tmt
|
||||
|
||||
provision:
|
||||
- hardware:
|
||||
memory: ">= 3 GB"
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
|
||||
standard-inventory-qcow2:
|
||||
qemu:
|
||||
m: 3G
|
@ -1,33 +0,0 @@
|
||||
---
|
||||
# No tests suitable for atomic environment
|
||||
# No tests suitable for container environment
|
||||
# Tests suitable for classic environment
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-source
|
||||
tags:
|
||||
- always
|
||||
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- upstream_test_suite:
|
||||
dir: source
|
||||
run: python3 tests/run_tests.py --installed
|
||||
|
||||
required_packages:
|
||||
- volume_key
|
||||
- nss-tools
|
||||
- targetcli
|
||||
- xfsprogs
|
||||
- dosfstools
|
||||
- e2fsprogs
|
||||
- cryptsetup
|
||||
- glibc-all-langpacks
|
||||
- python3-six
|
||||
- python3-dbus
|
||||
- python3-yaml
|
||||
- python3-bytesize
|
||||
- nvme-cli
|
||||
- nvmetcli
|
Loading…
Reference in New Issue
Block a user