summary: Standard tests for dasbus prepare: how: install package: - python3 - python3-dasbus - dbus-daemon discover: how: shell 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-dasbus.spec` fi if [ -z "$PKG_VER" ]; then echo "Error: Unable to extract package version" exit 1 fi pushd $TMT_SOURCE_DIR/dasbus-${PKG_VER} dasbus_path=$(find /usr/ -path */site-packages | tr '\n' ':') PYTHONPATH=$dasbus_path python3 -m unittest discover -v -s ./tests/ execute: - how: tmt