38 lines
941 B
Plaintext
38 lines
941 B
Plaintext
summary: libblockdev gating tests
|
|
|
|
prepare:
|
|
how: install
|
|
package:
|
|
- python3
|
|
- python3-dbus
|
|
- libblockdev-plugins-all
|
|
- python3-yaml
|
|
- targetcli
|
|
- stratis-cli
|
|
- stratisd
|
|
|
|
discover:
|
|
how: shell
|
|
url: https://gitlab.com/redhat/centos-stream/rpms/python-blivet.git
|
|
ref: c10s
|
|
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}" python-blivet.spec`
|
|
fi
|
|
if [ -z "$PKG_VER" ]; then
|
|
echo "Error: Unable to extract package version"
|
|
exit 1
|
|
fi
|
|
pushd $TMT_SOURCE_DIR/blivet-${PKG_VER}
|
|
|
|
blivet_path=$(find /usr/ -path */site-packages | tr '\n' ':')
|
|
PYTHONPATH=$blivet_path python3 tests/run_tests.py
|
|
|
|
execute:
|
|
- how: tmt
|