Accepting request 750686 from graphics

- Fix build with older cmake package (Leap 15.0 up to 15.2), the
  included ctest macro does not accept extra parameters. (forwarded request 750562 from StefanBruens)

OBS-URL: https://build.opensuse.org/request/show/750686
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openexr?expand=0&rev=34
This commit is contained in:
Dominique Leuenberger 2019-12-02 10:29:04 +00:00 committed by Git OBS Bridge
commit 8b3224071f
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Nov 24 13:47:08 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Fix build with older cmake package (Leap 15.0 up to 15.2), the
included ctest macro does not accept extra parameters.
-------------------------------------------------------------------
Thu Nov 14 17:57:37 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -149,10 +149,15 @@ popd
%check
%ifarch x86_64
pushd OpenEXR
# tests takes LOONG, e. g. 20 min, in obs even more that
# exceed timeout limit 25 min
export LD_LIBRARY_PATH="$PWD/build/IlmImf:$PWD/build/IlmImfUtil:$LD_LIBRARY_PATH"
%ctest --timeout 3000
# tests can take longer than the default timeout of 25 minutes
%if 0%{?suse_version} < 1550
# HACK - older versions of the ctest macro do not allow passing additional parameters
%global __ctest %{__ctest} --timeout 3600
%ctest
%else
%ctest --timeout 3600
%endif
popd
%endif