cleanup %check/tests

This commit is contained in:
Rex Dieter 2013-12-06 20:46:05 -06:00
parent 351f1953e4
commit 7e41e741bd
1 changed files with 7 additions and 4 deletions

View File

@ -27,9 +27,6 @@
%endif
# enable tests (disabled by default)
#global tests 1
%if 0%{?tests}
%global _kde4_build_tests -DKDE4_BUILD_TESTS:BOOL=ON
%endif
%global phonon_version %(pkg-config --modversion phonon 2>/dev/null || echo %{phonon_ver})
%global shared_desktop_ontologies_version %(pkg-config --modversion shared-desktop-ontologies 2>/dev/null || echo %{shared_desktop_ontologies_ver})
@ -259,6 +256,12 @@ BuildRequires: graphviz
BuildRequires: qt4-doc
%endif
%if 0%{?tests}
%global _kde4_build_tests -DKDE4_BUILD_TESTS:BOOL=ON
# %%%check
BuildRequires: dbus-x11 xorg-x11-server-Xvfb
%endif
Provides: katepart = %{version}-%{release}
Provides: katepart%{?_isa} = %{version}-%{release}
Provides: kross(javascript) = %{version}-%{release}
@ -484,7 +487,7 @@ rm -fv %{buildroot}%{_mandir}/man1/kdecmake.1*
%check
%if 0%{?tests}
time make -C %{_target_platform}/ test ||:
time xvfb-run -a dbus-launch --exit-with-session make -C %{_target_platform}/ test ARGS="--verbose" ||:
%endif