[packages/python-IPy] - run tests; fuzzy test catches bad things now
arekm
arekm at pld-linux.org
Tue Mar 12 21:34:49 CET 2019
commit 7842667396d630dc5616ef4c3a780c6fffc73664
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Mar 12 21:34:41 2019 +0100
- run tests; fuzzy test catches bad things now
python-IPy.spec | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/python-IPy.spec b/python-IPy.spec
index 41fd4cf..2d1671b 100644
--- a/python-IPy.spec
+++ b/python-IPy.spec
@@ -1,4 +1,5 @@
# Conditional build:
+%bcond_without tests # unit tests
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
@@ -69,10 +70,20 @@ więc zabawne rzeczy typu maska 0xffffff0f są tutaj niewykonalne.
%build
%if %{with python2}
%py_build
+%if %{with tests}
+for test in test/*.py; do
+ PYTHONPATH=build-2 %{__python} "$test"
+done
+%endif
%endif
%if %{with python3}
%py3_build
+%if %{with tests}
+for test in test/*.py; do
+ PYTHONPATH=build-3 %{__python3} "$test"
+done
+%endif
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-IPy.git/commitdiff/7842667396d630dc5616ef4c3a780c6fffc73664
More information about the pld-cvs-commit
mailing list