summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-07-13 07:37:50 +0200
committerRemi Collet <fedora@famillecollet.com>2016-07-13 07:37:50 +0200
commitac2b9198b732e16a9d8fd755b17a2daba8591c1f (patch)
tree4e9ddbc4cb3b11f584c1267dd9182a5edcd6204b
parent280adc4da17b653500eb279845b37aeb2d4834cb (diff)
php-horde-Horde-Date-Parser: improve %check
-rw-r--r--php-horde-Horde-Date-Parser.spec18
1 files changed, 15 insertions, 3 deletions
diff --git a/php-horde-Horde-Date-Parser.spec b/php-horde-Horde-Date-Parser.spec
index 24e7e02..00842f5 100644
--- a/php-horde-Horde-Date-Parser.spec
+++ b/php-horde-Horde-Date-Parser.spec
@@ -78,11 +78,23 @@ install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
%check
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
-%{_bindir}/phpunit .
-if which php70; then
- php70 %{_bindir}/phpunit .
+# remirepo:11
+run=0
+ret=0
+if which php56; then
+ php56 %{_bindir}/phpunit . || ret=1
+ run=1
fi
+if which php71; then
+ php71 %{_bindir}/phpunit . || ret=1
+ run=1
+fi
+if [ $run -eq 0 ]; then
+%{_bindir}/phpunit --verbose .
+# remirepo:2
+fi
+exit $ret
%post