Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#310 closed defect (wontfix)

make test on xcache-3.0.1 fails

Reported by: dpalauzov Owned by: moo
Priority: major Milestone: 3.0.4
Component: build Version: 3.0.1
Keywords: Cc:
Application: PHP Version: 5.3.23
Other Exts: SAPI: Irrelevant
Probability: Blocked By:


I fresh unpacked xcache-3.0.1 directory, I do

$ phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
$ ./configure && make

$ make test

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

PHP : /usr/bin/php
PHP_SAPI : cli
PHP_VERSION : 5.3.23
PHP_OS : Linux - Linux aegeeserv 3.2.41 #1 SMP Wed Mar 20 20:37:15 GMT 2013 x86_64
INI actual : /mnt/new/src/http/xcache-3.0.1/tmp-php.ini
More .INIs :
CWD : /mnt/new/src/http/xcache-3.0.1
Extra dirs :
VALGRIND : Not used
TIME START 2013-06-07 19:30:49
PASS include absolute path [tests/xcache_include_absolute.phpt]
PASS include relative to current working dir [tests/xcache_include_relative_cwd.phpt]
PASS include relative to current file [tests/xcache_include_relative_file.phpt]
PASS xcache_is_autoglobal [tests/xcache_is_autoglobal.phpt]
FAIL xcache_set/get test [tests/xcache_var.phpt]
TIME END 2013-06-07 19:30:50


Exts skipped : 0
Exts tested : 55

Number of tests : 5 5
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 1 ( 20.0%) ( 20.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 4 ( 80.0%) ( 80.0%)

Time taken : 1 seconds


xcache_set/get test [tests/xcache_var.phpt]

Any idea why the test files, and what more information to provide, in order to fix this?

Change History (4)

comment:1 Changed 7 years ago by moo

  • Resolution set to invalid
  • Status changed from new to closed

you need to "make xcachetest" to have xcache loaded and enabled with correct ini settings

comment:2 Changed 7 years ago by dpalauzov

  • Resolution invalid deleted
  • Status changed from closed to new

When I run "make" it ends with

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

this text is misleading, as I am supposed to type 'make xcachetest'

As of 3.0.2, typing 'make xcachetest' passes all tests, however at the very end, after agreeing to submit a report and typing an email address, the make process fails with

mailinglist in plain text): my-@ddress

Posting to

Thank you for helping to make PHP better.
/src/http/xcache-3.0.2/run-xcachetest -c /src/http/xcache-3.0.2/tmp-php.ini
which: no php-cgi in (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/apache-maven-2.2.1/bin:/opt/glassfish/bin:/opt/ant/bin:/usr/sbin:/sbin:/usr/local/sbin)
XCache test running with:
TEST_PHP_SRCDIR: /mnt/new/src/http/xcache-3.0.2/php-src
Could not open input file: /mnt/new/src/http/xcache-3.0.2/php-src/run-tests.php
make: * [xcachetest] Error 1

(I have no php-cgi)

The ticked system does not allow to change the version to 3.0.2, as this version is not mentioned in the drop-down list.

comment:3 Changed 7 years ago by moo

  • Resolution set to wontfix
  • Status changed from new to closed

the note about "make test" is from php build system. it isn't easy to run "make xcachetest" as you need to symlink (or unpack in the right place) php-src which is the source of php.

"make xcachetest" is mainly for developer to verify if it break any php code by testing *.phpt from php source. it's different from "make test" which is design for running tests come from extension itself only. XCache affect the engine and "make xcachetest" make it easier to run test against large source set for XCache author

unless someone find a more easier and/or friendly way, i'll leave it as is

comment:4 Changed 7 years ago by moo

  • Milestone changed from undecided to 3.0.4
Note: See TracTickets for help on using tickets.