add tests

This commit is contained in:
Gerd Hoffmann 2022-10-05 08:27:24 +02:00
parent a0d5544a2c
commit 9345425672
2 changed files with 22 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Name: python-virt-firmware
Version: %{pypi_version}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Tools for virtual machine firmware volumes
License: GPLv2
@ -72,6 +72,9 @@ cp -ar tests %{buildroot}%{_datadir}/%{name}
%{_datadir}/%{name}/tests
%changelog
* Wed Oct 05 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.4-2
- add tests
* Tue Sep 27 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.4-1
- update to version 1.4
- add man-pages

18
tests/tests.yml Normal file
View File

@ -0,0 +1,18 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- python3-pytest
- python3-virt-firmware
- python3-virt-firmware-tests
tests:
- dump:
run: /usr/share/python-virt-firmware/tests/test-dump.sh
- vars:
run: /usr/share/python-virt-firmware/tests/test-vars.sh
- sigdb:
run: /usr/share/python-virt-firmware/tests/test-sigdb.sh
- unit:
run: python3 /usr/share/python-virt-firmware/tests/tests.py