summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-08-02 16:35:08 +0200
committerRemi Collet <fedora@famillecollet.com>2016-08-02 16:35:08 +0200
commitd3e840d0635d1a2532a2f7c773d5f65618de7567 (patch)
treea1c21de1f76590eefd7e8adc5b86709777e9b0a1
parent047eac552399a27ad59ca8cfaaa0cecfc4327760 (diff)
php-nette-safe-stream: test sutie
-rw-r--r--php-nette-safe-stream.spec20
1 files changed, 16 insertions, 4 deletions
diff --git a/php-nette-safe-stream.spec b/php-nette-safe-stream.spec
index 8f6aab3..bc4dc18 100644
--- a/php-nette-safe-stream.spec
+++ b/php-nette-safe-stream.spec
@@ -96,12 +96,24 @@ require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php';
EOF
: Run test suite in sources tree
+# remirepo:13
+ret=0
+run=0
+if which php56; then
+ cat /opt/remi/php56/root/etc/php.ini /opt/remi/php56/root/etc/php.d/*ini >php.ini
+ php56 %{_bindir}/nette-tester --colors 0 -p php56 -c ./php.ini tests -s || ret=1
+ run=1
+fi
+if which php71; then
+ cat /etc/opt/remi/php71/php.ini /etc/opt/remi/php71/php.d/*ini >php.ini
+ php71 %{_bindir}/nette-tester --colors 0 -p php71 -c ./php.ini tests -s || ret=1
+ run=1
+fi
+if [ $run -eq 0 ]; then
%{_bindir}/nette-tester --colors 0 -p php -c ./php.ini tests -s
-
-if which php70; then
- cat /etc/opt/remi/php70/php.ini /etc/opt/remi/php70/php.d/*ini >php.ini
- php70 %{_bindir}/nette-tester --colors 0 -p php70 -c ./php.ini tests -s
+# remirepo:2
fi
+exit $ret
%else
: Test suite disabled
%endif