diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-08-02 15:25:31 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-08-02 15:25:31 +0200 |
commit | fe87460e4c07a117496c3ab3497562359330976d (patch) | |
tree | 957e6e42c172cd1aad9841d63926977e8463eb75 | |
parent | a81f5320b5472e00c1465809cfcc5171dcb8d683 (diff) |
php-nette-tokenizer: test suite
-rw-r--r-- | php-nette-tokenizer.spec | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/php-nette-tokenizer.spec b/php-nette-tokenizer.spec index 656bcd3..f6105d7 100644 --- a/php-nette-tokenizer.spec +++ b/php-nette-tokenizer.spec @@ -90,13 +90,24 @@ require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php'; EOF : Run test suite in sources tree -nette-tester --colors 0 -p php -c ./php.ini tests -s - -# remirepo:4 -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: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 php -c ./php.ini tests -s || ret=1 + run=1 +fi +if which php71; then + cat /etc/opt/remi/php71/php.ini /etc/opt/remi/php70/php.d/*ini >php.ini + php71 %{_bindir}/nette-tester --colors 0 -p php -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 +# remirepo:2 fi +exit $ret %else : Test suite disabled %endif |