Enable upstream test-suite
Related: RHEL-122724
This commit is contained in:
parent
77e157a640
commit
099631cae7
@ -1,8 +1,4 @@
|
||||
%if 0%{?rhel}
|
||||
%bcond_with check
|
||||
%else
|
||||
%bcond_without check
|
||||
%endif
|
||||
|
||||
%global pypi_name zstandard
|
||||
%if 0%{!?pytest:1}
|
||||
@ -37,9 +33,7 @@ BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-cffi
|
||||
%if %{with check}
|
||||
BuildRequires: python3-hypothesis
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-pytest-xdist
|
||||
%endif
|
||||
Requires: libzstd%{?_isa} = 1.5.5
|
||||
|
||||
@ -60,8 +54,10 @@ rm -r %{pypi_name}.egg-info
|
||||
%check
|
||||
mv zstandard{,.src}
|
||||
export ZSTD_SLOW_TESTS=1
|
||||
%pytest -v\
|
||||
--numprocesses=auto
|
||||
# The multi_compress_to_buffer and multi_decompress_to_buffer features are not
|
||||
# avaliable when building against system libzstd.
|
||||
# See https://github.com/indygreg/python-zstandard/blob/0.22.0/docs/installing.rst#building-against-external-libzstd
|
||||
%pytest -v -k 'not test_features'
|
||||
mv zstandard{.src,}
|
||||
%endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user