udisks2/plans/udisks2.fmf
2024-05-14 13:28:04 +00:00

69 lines
2.2 KiB
Plaintext

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.