summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-10-28 18:14:08 +0100
committerRemi Collet <fedora@famillecollet.com>2013-10-28 18:14:08 +0100
commit5475f68ed2ba563427bdcf058d447e3cd27e99b8 (patch)
tree4c585468b08149ee69e9f9e08d0e4887b1e7e533
parent696ce360ff7ba707dd08cc4c985204c096d57e60 (diff)
php-solarium: simpler way
-rw-r--r--php-solarium.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/php-solarium.spec b/php-solarium.spec
index 1761977..15ad3ca 100644
--- a/php-solarium.spec
+++ b/php-solarium.spec
@@ -27,7 +27,6 @@ BuildArch: noarch
%if %{with_tests}
# For tests
BuildRequires: php(language) >= 5.3.2
-BuildRequires: php-cli
BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
BuildRequires: php-pear(pear.symfony.com/EventDispatcher) > 2.1
%endif
@@ -91,11 +90,12 @@ cp -pr library/Solarium %{buildroot}%{_datadir}/php/Solarium
%check
%if %{with_tests}
+: Run upstream test suite against installed library
phpunit \
- -d include_path=%{buildroot}%{_datadir}/php:./tests:$(php -r 'echo ini_get("include_path");') \
+ --include-path=%{buildroot}%{_datadir}/php:./tests \
-d date.timezone=UTC
%else
-: Skip test suite
+: Skip upstream test suite
%endif