Add fmf gating plans
This commit is contained in:
parent
c8f758f8d9
commit
f42791e23e
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
@ -3,4 +3,4 @@ product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
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
2
plans/env.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
version: '2.10.1'
|
68
plans/udisks2.fmf
Normal file
68
plans/udisks2.fmf
Normal 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.
|
Loading…
Reference in New Issue
Block a user