|
Tomas Bzatek |
056fee |
---
|
|
Tomas Bzatek |
056fee |
- hosts: localhost
|
|
Tomas Bzatek |
056fee |
roles:
|
|
Tomas Bzatek |
056fee |
- role: standard-test-source # Fetch source tarball and unpack it into the test environment
|
|
Tomas Bzatek |
056fee |
tags:
|
|
Tomas Bzatek |
056fee |
- always
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
- role: standard-test-basic
|
|
Tomas Bzatek |
056fee |
tags:
|
|
Tomas Bzatek |
056fee |
- classic
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
required_packages: # Install test dependencies
|
|
Tomas Bzatek |
056fee |
- dbus-daemon
|
|
Tomas Bzatek |
056fee |
- python3-blivet
|
|
Tomas Bzatek |
056fee |
- python3-bytesize
|
|
Tomas Bzatek |
056fee |
- python3-systemd
|
|
Tomas Bzatek |
056fee |
- targetcli
|
|
Tomas Bzatek |
056fee |
- smartmontools
|
|
Tomas Bzatek |
056fee |
- genisoimage
|
|
Tomas Bzatek |
056fee |
- xfsprogs
|
|
Tomas Bzatek |
056fee |
- dosfstools
|
|
Tomas Bzatek |
056fee |
- e2fsprogs
|
|
Tomas Bzatek |
056fee |
- cryptsetup
|
|
Tomas Bzatek |
056fee |
- python3-six
|
|
Tomas Bzatek |
056fee |
- kmod-kvdo
|
|
Tomas Bzatek |
056fee |
- sqlite
|
|
Tomas Bzatek |
056fee |
- libstoragemgmt
|
|
Tomas Bzatek |
056fee |
- python3-libstoragemgmt
|
|
Tomas Bzatek |
056fee |
- udisks2-iscsi
|
|
Tomas Bzatek |
056fee |
- udisks2-lsm
|
|
Tomas Bzatek |
056fee |
- udisks2-lvm2
|
|
Tomas Bzatek |
056fee |
- udisks2-zram
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
tests:
|
|
Tomas Bzatek |
056fee |
- start-lsmd:
|
|
Tomas Bzatek |
056fee |
dir: .
|
|
Tomas Bzatek |
056fee |
run: "systemctl start libstoragemgmt.service"
|
|
Tomas Bzatek |
056fee |
- udisksctl-dump:
|
|
Tomas Bzatek |
056fee |
dir: .
|
|
Tomas Bzatek |
056fee |
run: "/usr/bin/udisksctl dump"
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
- increase-timeouts:
|
|
Tomas Bzatek |
056fee |
dir: ./source/src/tests/
|
|
Tomas Bzatek |
056fee |
run: "find -name '*.py' -or -name integration-test | while read i; do sed -e 's/time\\.sleep(/time.sleep(5*/' -i $i; done"
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
- dbus-tests-start:
|
|
Tomas Bzatek |
056fee |
dir: .
|
|
Tomas Bzatek |
056fee |
run: "targetcli clearconfig confirm=True"
|
|
Tomas Bzatek |
056fee |
- dbus-tests-disable-vdo:
|
|
Tomas Bzatek |
056fee |
dir: ./source/src/tests/dbus-tests/
|
|
Tomas Bzatek |
056fee |
run: "sed -i test_10_basic.py -e 's/find_executable(\"vdo\")/find_executable(\"vdo-disabled\")/'"
|
|
Tomas Bzatek |
056fee |
- dbus-tests:
|
|
Tomas Bzatek |
056fee |
dir: ./source/
|
|
Tomas Bzatek |
056fee |
run: "python3 src/tests/dbus-tests/run_tests.py --system"
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
- integration-tests-start:
|
|
Tomas Bzatek |
056fee |
dir: .
|
|
Tomas Bzatek |
056fee |
run: "targetcli clearconfig confirm=True"
|
|
Tomas Bzatek |
056fee |
- integration-tests:
|
|
Tomas Bzatek |
056fee |
dir: ./source/src/tests/
|
|
Tomas Bzatek |
056fee |
run: "python3 ./integration-test --log-file=integration-tests.log 2>&1"
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
|
|
Tomas Bzatek |
056fee |
- dump-integration-tests-log:
|
|
Tomas Bzatek |
056fee |
dir: ./source/src/tests/
|
|
Tomas Bzatek |
056fee |
run: "cat integration-tests.log"
|
|
Tomas Bzatek |
056fee |
- dump-flight_record:
|
|
Tomas Bzatek |
056fee |
dir: ./source/
|
|
Tomas Bzatek |
056fee |
run: "cat flight_record.log"
|
|
Tomas Bzatek |
056fee |
- dump-journal-dbus_tests:
|
|
Tomas Bzatek |
056fee |
dir: ./source/
|
|
Tomas Bzatek |
056fee |
run: "cat journaldump.log"
|
|
Tomas Bzatek |
056fee |
- dump-journal-system:
|
|
Tomas Bzatek |
056fee |
dir: .
|
|
Tomas Bzatek |
056fee |
run: "journalctl --all --no-pager"
|
|
Tomas Bzatek |
056fee |
- dump-dmesg:
|
|
Tomas Bzatek |
056fee |
dir: .
|
|
Tomas Bzatek |
056fee |
run: "dmesg"
|