From 3ba823023c3c6328c75ebc5324cc79ab9df02fdd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 2 Feb 2018 11:06:00 +0100 Subject: fix test suite --- php-sebastian-diff3.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/php-sebastian-diff3.spec b/php-sebastian-diff3.spec index c1c6cc8..53fc4a2 100644 --- a/php-sebastian-diff3.spec +++ b/php-sebastian-diff3.spec @@ -84,14 +84,17 @@ cp -pr src %{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major} %check %if %{with_tests} mkdir vendor -touch vendor/autoload.php +%{_bindir}/phpab --output vendor/autoload.php tests +cat << 'EOF' | tee -a vendor/autoload.php +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Process', '%{php_home}/Symfony4/Component/Process'); +EOF : Run upstream test suite ret=0 -for cmd in php php70 php71 php72; do +for cmd in php php71 php72; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit6 --verbose || ret=1 + %{_bindir}/phpunit7 --verbose || ret=1 fi done exit $ret -- cgit