|
|
|
@ -361,7 +361,6 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
|
# ARGS=-V increases output verbosity
|
|
|
|
|
#ifnarch ppc64
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
pushd build
|
|
|
|
|
cp %SOURCE5 .
|
|
|
|
|
if [ -x /usr/libexec/Xorg ]; then
|
|
|
|
|
Xorg=/usr/libexec/Xorg
|
|
|
|
@ -370,8 +369,7 @@ pushd build
|
|
|
|
|
fi
|
|
|
|
|
$Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xorg.log -config ./xorg.conf -configdir . :99 &
|
|
|
|
|
export DISPLAY=:99
|
|
|
|
|
LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build/lib:$LD_LIBARY_PATH make test ARGS=-V || :
|
|
|
|
|
popd
|
|
|
|
|
LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build/lib:$LD_LIBARY_PATH %ctest || :
|
|
|
|
|
%endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|