Tomáš Chvátal 2019-02-19 12:53:12 +00:00 committed by Git OBS Bridge
parent 76b54386b3
commit 657c0bc1ce
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 19 12:52:51 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Enable testsuite
-------------------------------------------------------------------
Tue Feb 5 22:14:25 UTC 2019 - Todd R <toddrme2178@gmail.com>

View File

@ -200,7 +200,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%if %{without hpc}
%python_expand rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite
#%%python_expand rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite
%else
@ -245,6 +245,12 @@ EOF
}
%endif
%check
pushd doc &> /dev/null
export PYTHONDONTWRITEBYTECODE=1
%python_expand PYTHONPATH="%{buildroot}%{$python_sitearch}" PATH="%{buildroot}%{_bindir}:$PATH" $python -m pytest -v --pyargs numpy
popd &> /dev/null
%files %{python_files}
%defattr(-,root,root)
%doc *.txt