Add fmf gating plans

This commit is contained in:
guazhang 2024-05-14 09:41:06 +00:00
parent c8f758f8d9
commit f42791e23e
6 changed files with 73 additions and 1 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
ci.fmf Normal file
View File

@ -0,0 +1 @@
resultsdb-testcase: separate

View File

@ -3,4 +3,4 @@ product_versions:
- rhel-10 - rhel-10
decision_context: osci_compose_gate decision_context: osci_compose_gate
rules: rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/udisks2.functional}

2
plans/env.yaml Normal file
View File

@ -0,0 +1,2 @@
---
version: '2.10.1'

68
plans/udisks2.fmf Normal file
View File

@ -0,0 +1,68 @@
summary: udisks2 testing
environment-file:
- plans/env.yaml
prepare:
how: install
package:
- dbus-daemon
- python3-blivet
- python3-bytesize
- python3-systemd
- targetcli
- smartmontools
- xfsprogs
- dosfstools
- e2fsprogs
- cryptsetup
- python3-six
- sqlite
- libstoragemgmt
- python3-libstoragemgmt
- udisks2-iscsi
- udisks2-lsm
- udisks2-lvm2
- nvme-cli
discover:
how: shell
url: https://gitlab.com/redhat/centos-stream/rpms/udisks2.git
ref: c10s
dist-git-source: true
dist-git-install-builddeps: true
tests:
- name: regression tests
test: >
set -x
systemctl restart libstoragemgmt.service;
systemctl restart iscsi-init.service;
systemctl restart udisks2.service;
if [ -z "$version" ];then
#version=$(grep -E "Version" $TMT_SOURCE_DIR/udisks2.spec | head -1 |sed 's/Version: //');
echo "don't defind the version"
exit 1
fi;
pushd $TMT_SOURCE_DIR/udisks-${version};
/usr/bin/udisksctl dump;
pushd $TMT_SOURCE_DIR/udisks-${version}/src/tests/;
find -name '*.py' -or -name integration-test | while read i; do sed -e 's/time\\.sleep(/time.sleep(5*/' -i $i; done;
popd;
pushd $TMT_SOURCE_DIR/udisks-${version}/src/tests/dbus-tests/;
echo "UDISKS_MODULES_ENABLED = { 'lvm2', 'iscsi', 'lsm' }" > config_h.py;
echo "PACKAGE_SYSCONF_DIR = '/etc/'" >> config_h.py;
popd;
targetcli clearconfig confirm=True;
python3 src/tests/dbus-tests/run_tests.py --system;
targetcli clearconfig confirm=True;
pushd $TMT_SOURCE_DIR/udisks-${version}/src/tests/;
python3 ./integration-test --log-file=integration-tests.log 2>&1;
popd;
cat src/tests/integration-tests.log;
cat flight_record.log;
cat journaldump.log;
execute:
- how: tmt
adjust:
enabled: false
when: distro == fedora
because: They don't have access to internal repos.