diff options
author | Remi Collet <remi@remirepo.net> | 2018-02-02 11:06:00 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-02-02 11:06:00 +0100 |
commit | 3ba823023c3c6328c75ebc5324cc79ab9df02fdd (patch) | |
tree | 373c4cb44dac4ea165c5f3a51d063029ddb9124f | |
parent | f805f57739116053377e854678e70d8dcf450c6d (diff) |
fix test suite
-rw-r--r-- | php-sebastian-diff3.spec | 9 |
1 files 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 |