Disable version check in tests
This commit is contained in:
parent
a4e0bcdd6c
commit
39c6ecbd5c
@ -14,7 +14,7 @@
|
||||
|
||||
Name: perl-IO-Compress
|
||||
Version: 2.201
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Read and write compressed data
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/IO-Compress
|
||||
@ -161,6 +161,7 @@ DIR=$(mktemp -d)
|
||||
pushd "$DIR"
|
||||
cp -a %{_libexecdir}/%{name}/* ./
|
||||
unset PERL_CORE
|
||||
export TEST_SKIP_VERSION_CHECK=1
|
||||
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
popd
|
||||
rm -rf "$DIR"
|
||||
@ -172,6 +173,7 @@ chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
|
||||
%check
|
||||
unset PERL_CORE
|
||||
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||
export TEST_SKIP_VERSION_CHECK=1
|
||||
# Build using "--without long_tests" to avoid very long tests
|
||||
# (full suite can take nearly an hour on an i7 920)
|
||||
make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
||||
@ -208,6 +210,9 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Jul 14 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.201-2
|
||||
- Disable version check in tests
|
||||
|
||||
* Sat Jun 25 2022 Paul Howarth <paul@city-fan.org> - 2.201-1
|
||||
- 2.201 bump
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user