summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-08-05 11:32:28 +0200
committerRemi Collet <fedora@famillecollet.com>2016-08-05 11:32:28 +0200
commite20831c84954e98a2c66a36d3a8c249d4a240a6d (patch)
treea9a2c4e083374bebfc3a767d15007171aab41173
parent1fd4f864eed512d76ab978a5b91e7a2bed53cc75 (diff)
php-nette: cleanup test suite
-rw-r--r--php-nette-forms-dev.spec15
1 files changed, 4 insertions, 11 deletions
diff --git a/php-nette-forms-dev.spec b/php-nette-forms-dev.spec
index 8078a6e..55544e5 100644
--- a/php-nette-forms-dev.spec
+++ b/php-nette-forms-dev.spec
@@ -109,9 +109,6 @@ rm -rf %{buildroot}%{php_home}/%{ns_vendor}/assets
%check
%if %{with_tests}
-: Generate configuration
-cat /etc/php.ini /etc/php.d/*ini >php.ini
-echo 'session.save_path = "/tmp"' >>php.ini
export LANG=fr_FR.utf8
: Generate autoloader
@@ -126,23 +123,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
+ php70 %{_bindir}/nette-tester --colors 0 -p php70 -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