php-git icon indicating copy to clipboard operation
php-git copied to clipboard

make test error

Open Petrov-Dmitry opened this issue 8 years ago • 2 comments

Hi @garvins!

We are want to use php-git with php version 7.1 and later. I found your repo and try to build it for 64-bit system but i have errors in "make test" command - see log below ` $ sudo make test

Build complete. Don't forget to run 'make test'.

===================================================================== PHP : /usr/bin/php7.1 PHP_SAPI : cli PHP_VERSION : 7.1.1-1+deb.sury.org~xenial+1 ZEND_VERSION: 3.1.0 PHP_OS : Linux - Linux unicenter-HP-350-G1 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 INI actual : /usr/lib/php-git-php7/tmp-php.ini More .INIs :
CWD : /usr/lib/php-git-php7 Extra dirs : VALGRIND : Not used

TIME START 2017-03-15 10:13:13

FAIL Check for git_blob_create_frombuffer presence [tests/blob/git_blob_create_frombuffer.phpt] FAIL Check for git_tree_lookup [tests/tree/git_tree_lookup.phpt]

TIME END 2017-03-15 10:13:13

===================================================================== TEST RESULT SUMMARY

Exts skipped : 0 Exts tested : 14

Number of tests : 2 2 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 2 (100.0%) (100.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 0 ( 0.0%) ( 0.0%)

Time taken : 0 seconds

===================================================================== FAILED TEST SUMMARY

Check for git_blob_create_frombuffer presence [tests/blob/git_blob_create_frombuffer.phpt] Check for git_tree_lookup [tests/tree/git_tree_lookup.phpt]

You may have found a problem in PHP. This report can be automatically sent to the PHP QA team at http://qa.php.net/reports and http://news.php.net/php.qa.reports This gives us a better understanding of PHP's behavior. If you don't want to send the report immediately you can choose option "s" to save it. You can then email it to [email protected] later. Do you want to send this report now? [Yns]: n `

However, the command "make install" is executed without any errors and creates a file git2.so in my php-extensions directory. Now I will try to use it in our project and write about errors or success later.

PS: Sorry about my english - this is not my native language

Petrov-Dmitry avatar Mar 15 '17 10:03 Petrov-Dmitry

Hello again.

I tried to run different examples and on some of them (for example on this https://github.com/garvins/php-git/blob/php7/example/status.php) I received error 502. Perhaps this is due to errors in the make test.

Petrov-Dmitry avatar Mar 15 '17 17:03 Petrov-Dmitry

Hi Petrov,

sorry for my late repsone. Yeah I need to rework the tests.

I had stopped my work on php-git for some weeks. There will be a status of the actual progess next week.

thx for your report

garvins avatar Mar 30 '17 09:03 garvins