python-simpleline/plans/tests.fmf
Katerina Koukiou ce899054a0 Migrate STI tests to tmt
Related to: RHEL-58212
2025-09-17 09:43:32 +02:00

32 lines
750 B
Plaintext

summary: Standard tests for python-simpleline
prepare:
how: install
package:
- python3
- python3-simpleline
discover:
how: shell
dist-git-source: true
dist-git-install-builddeps: true
tests:
- name: smoke import test
test: |
set -euo pipefail
python3 -c "import simpleline"
- name: upstream test suite
test: |
set -euxo pipefail
if [ -z "${PKG_VER:-}" ]; then
PKG_VER=$(rpmspec -q --srpm --qf "%{version}" python-simpleline.spec)
fi
if [ -z "$PKG_VER" ]; then
echo "Error: Unable to extract package version" >&2
exit 1
fi
pushd "$TMT_SOURCE_DIR/simpleline-${PKG_VER}"
make test
execute:
- how: tmt