diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-08-05 11:32:28 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-08-05 11:32:28 +0200 |
commit | 6749fb014d1c661469c1d71566e42b4ff08b3b21 (patch) | |
tree | 37c24696f912f5f79976ee9752a1a71fcb41da8e | |
parent | 86f4c730aa876b23a8ad3eb9906ef713a7768856 (diff) |
php-nette: cleanup test suite
-rw-r--r-- | php-nette-mail-dev.spec | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/php-nette-mail-dev.spec b/php-nette-mail-dev.spec index 0af80e5..53aff84 100644 --- a/php-nette-mail-dev.spec +++ b/php-nette-mail-dev.spec @@ -94,8 +94,6 @@ cp -pr src/* %{buildroot}%{php_home}/%{ns_vendor}/ %check %if %{with_tests} -: Generate configuration -cat /etc/php.ini /etc/php.d/*ini >php.ini export LANG=fr_FR.utf8 : Generate autoloader @@ -108,23 +106,19 @@ require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php'; EOF : Run test suite in sources tree -# remirepo:15 +# remirepo:11 run=0 ret=0 if which php56; then - cat /opt/remi/php56/root/etc/php.ini /opt/remi/php56/root/etc/php.d/*ini >php.ini - echo 'session.save_path = "/tmp"' >>php.ini - php56 %{_bindir}/nette-tester --colors 0 -p php56 -c ./php.ini tests -s + php56 %{_bindir}/nette-tester --colors 0 -p php56 -C tests -s run=1 fi -if which php70; then - cat /etc/opt/remi/php70/php.ini /etc/opt/remi/php70/php.d/*ini >php.ini - echo 'session.save_path = "/tmp"' >>php.ini - php70 %{_bindir}/nette-tester --colors 0 -p php70 -c ./php.ini tests -s +if which php71; then + php71 %{_bindir}/nette-tester --colors 0 -p php71 -C tests -s run=1 fi if [ $run -eq 0 ]; then -%{_bindir}/nette-tester --colors 0 -p php -c ./php.ini tests -s +%{_bindir}/nette-tester --colors 0 -p php -C tests -s # remirepo:2 fi exit $ret |