run upstream tests for both curl-minimal and curl-full
As we made libcurl-minimal more minimal, it differs more from libcurl-full and it should be tested separately. On the other hand, the test-suite for libcurl-minimal runs faster now because more tests are skipped.
This commit is contained in:
parent
5ebead952b
commit
d4c5b54bf3
25
curl.spec
25
curl.spec
@ -305,24 +305,33 @@ sed -e 's/^runpath_var=.*/runpath_var=/' \
|
|||||||
%make_build V=1 -C build-full
|
%make_build V=1 -C build-full
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# we have to override LD_LIBRARY_PATH because we eliminated rpath
|
|
||||||
LD_LIBRARY_PATH="${PWD}/build-full/lib/.libs"
|
|
||||||
export LD_LIBRARY_PATH
|
|
||||||
|
|
||||||
# compile upstream test-cases
|
# compile upstream test-cases
|
||||||
cd build-full/tests
|
%make_build V=1 -C build-minimal/tests
|
||||||
%make_build V=1
|
%make_build V=1 -C build-full/tests
|
||||||
|
|
||||||
# relax crypto policy for the test-suite to make it pass again (#1610888)
|
# relax crypto policy for the test-suite to make it pass again (#1610888)
|
||||||
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=XXX
|
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=XXX
|
||||||
export OPENSSL_CONF=
|
export OPENSSL_CONF=
|
||||||
|
|
||||||
|
# make runtests.pl work for out-of-tree builds
|
||||||
|
export srcdir=../../tests
|
||||||
|
|
||||||
# prevent valgrind from being extremely slow (#1662656)
|
# prevent valgrind from being extremely slow (#1662656)
|
||||||
# https://fedoraproject.org/wiki/Changes/DebuginfodByDefault
|
# https://fedoraproject.org/wiki/Changes/DebuginfodByDefault
|
||||||
unset DEBUGINFOD_URLS
|
unset DEBUGINFOD_URLS
|
||||||
|
|
||||||
# run the upstream test-suite
|
# run the upstream test-suite for both curl-minimal and curl-full
|
||||||
srcdir=../../tests perl -I../../tests ../../tests/runtests.pl -a -p -v '!flaky'
|
for size in minimal full; do (
|
||||||
|
cd build-${size}
|
||||||
|
|
||||||
|
# we have to override LD_LIBRARY_PATH because we eliminated rpath
|
||||||
|
export LD_LIBRARY_PATH="${PWD}/lib/.libs"
|
||||||
|
|
||||||
|
cd tests
|
||||||
|
perl -I../../tests ../../tests/runtests.pl -a -p -v '!flaky'
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# install and rename the library that will be packaged as libcurl-minimal
|
# install and rename the library that will be packaged as libcurl-minimal
|
||||||
|
Loading…
Reference in New Issue
Block a user