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
commit6c88da393d795d4f5d2242d16662d36cb9060996 (patch)
tree0582f6f453243adf965ad30009b44a8c4eb03a4c
parentc3dd8ac31ae78216a07669a4c4e8312e8576fee5 (diff)
php-nette: cleanup test suite
-rw-r--r--php-tracy-dev.spec13
1 files changed, 5 insertions, 8 deletions
diff --git a/php-tracy-dev.spec b/php-tracy-dev.spec
index 1f7bcba..2c9676e 100644
--- a/php-tracy-dev.spec
+++ b/php-tracy-dev.spec
@@ -106,8 +106,6 @@ cp -pr src/* %{buildroot}%{php_home}/
%check
%if %{with_tests}
-: Generate configuration
-cat /etc/php.ini /etc/php.d/*ini >php.ini
export LANG=fr_FR.utf8
: Generate autoloader
@@ -120,21 +118,20 @@ require_once '%{buildroot}%{php_home}/%{ns_vendor}/autoload.php';
EOF
: Run test suite in sources tree
-# remirepo:13
+# remirepo:12
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
+ rm tests/Tracy/Dumper.to*phpt
+ 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