From 7785726e489d155340cf7d993b772fe80a1d0e43 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 3 Aug 2016 12:00:08 +0200 Subject: php-phpseclib: test sutie --- php-phpseclib.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/php-phpseclib.spec b/php-phpseclib.spec index 4d00b89..652a95e 100644 --- a/php-phpseclib.spec +++ b/php-phpseclib.spec @@ -73,11 +73,20 @@ cp -pr %{composer_vendor} %{buildroot}%{_datadir}/php %{_bindir}/phpab --output tests/bootstrap.php tests echo 'require "%{buildroot}%{_datadir}/php/%{composer_vendor}/autoload.php";' >> tests/bootstrap.php -%{_bindir}/phpunit - +ret=0 +run=0 +if which php56; then + php56 %{_bindir}/phpunit || ret=1 + run=1 +fi if which php70; then - php70 %{_bindir}/phpunit + php70 %{_bindir}/phpunit || ret=1 + run=1 +fi +if [ $run -eq 0 ]; then +%{_bindir}/phpunit --verbose fi +exit $ret %endif %clean -- cgit