Skip to content

Commit 314c8db

Browse files
committed
Add tests subpackage
1 parent b220027 commit 314c8db

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

qubes-ansible.spec.in

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ to manage QubesOS virtual machines. The files are installed into the Ansible mod
1616
Ansible can automatically discover and use them. This package is intended to be installed in dom0
1717
(or a management qube).
1818

19+
%package tests
20+
Summary: Tests for the module and the connection.
21+
Requires: %{name}
22+
Requires: pytest
23+
1924
%prep
2025
%autosetup
2126

@@ -25,15 +30,21 @@ Ansible can automatically discover and use them. This package is intended to be
2530
rm -rf %{buildroot}
2631
%{__mkdir} -p %{buildroot}%{_datadir}/ansible/plugins/modules
2732
%{__mkdir} -p %{buildroot}%{_datadir}/ansible/plugins/connection
33+
%{__mkdir} -p %{buildroot}%{_datadir}/ansible/tests
2834

2935
# Install the qubesos module and qubes connection plugin
3036
install -m 644 plugins/modules/qubesos.py %{buildroot}%{_datadir}/ansible/plugins/modules/qubesos.py
3137
install -m 644 plugins/connection/qubes.py %{buildroot}%{_datadir}/ansible/plugins/connection/qubes.py
3238

39+
install -m 644 tests/*.py %{buildroot}%{_datadir}/ansible/tests/
40+
3341
%files
3442
%doc README.md LICENSE EXAMPLES.md
3543
%{_datadir}/ansible/plugins/modules/qubesos.py
3644
%{_datadir}/ansible/plugins/connection/qubes.py
3745

46+
%files tests
47+
%{_datadir}/ansible/tests/*.py
48+
3849
%changelog
39-
@CHANGELOG@
50+
@CHANGELOG@

0 commit comments

Comments
 (0)