summaryrefslogtreecommitdiffstats
path: root/php-nette-neon-dev.spec
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
commit43d0d3518811b2e2cc84e59735919c50ef9203e2 (patch)
treeada6032c8704f8fb301831df5f320832d96d58c6 /php-nette-neon-dev.spec
parent3f6cca9052e08217eb71b53113af98134685a2b7 (diff)
php-nette: cleanup test suite
Diffstat (limited to 'php-nette-neon-dev.spec')
-rw-r--r--php-nette-neon-dev.spec12
1 files changed, 4 insertions, 8 deletions
diff --git a/php-nette-neon-dev.spec b/php-nette-neon-dev.spec
index 67eb85f..9b56444 100644
--- a/php-nette-neon-dev.spec
+++ b/php-nette-neon-dev.spec
@@ -84,8 +84,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
@@ -97,21 +95,19 @@ require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php';
EOF
: Run test suite in sources tree
-# remirepo:13
+# remirepo:11
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
+ php56 %{_bindir}/nette-tester --colors 0 -p php56 -C 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
+ php71 %{_bindir}/nette-tester --colors 0 -p php71 -C tests -s || ret=1
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