Bindings PHP5: rewire php5 tests to the makefiles, make them pass distcheck
This commit is contained in:
parent
c719916fca
commit
fca7999dba
|
@ -1,6 +1,6 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
MOSTLYCLEANFILES = __init__.pyc lang.pyc php_code.pyc wrapper_header.pyc wrapper_top.pyc
|
||||
SUBDIRS = examples
|
||||
SUBDIRS = examples tests
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_builddir) \
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
if PHP5_ENABLED
|
||||
TESTS_ENVIRONMENT=env "SRCDIR=$(srcdir)/"
|
||||
TESTS = profile_tests.sh binding_tests.sh
|
||||
endif
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
require("../lasso.php");
|
||||
|
||||
define("DATA_DIR", "../../../tests/data/");
|
||||
define("DATA_DIR", getenv("SRCDIR") . "../../../tests/data/");
|
||||
|
||||
function test01() {
|
||||
echo "Get an xmlNode* from a Lasso function... ";
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
php5 -n -d extension_dir=../.libs binding_tests.php
|
||||
php5 -n -d extension_dir=../.libs -d extension=lasso.so ${SRCDIR}binding_tests.php
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
require("../lasso.php");
|
||||
|
||||
define("DATA_DIR", "../../../tests/data/");
|
||||
define(DATA_DIR, getenv('SRCDIR') . '../../../tests/data/');
|
||||
|
||||
function test01() {
|
||||
echo "Server construction, dump & newFromDump... ";
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
php5 -n -d extension_dir=../.libs profile_tests.php
|
||||
php5 -n -d extension_dir=../.libs -d extension=lasso.so ${SRCDIR}profile_tests.php
|
||||
|
|
|
@ -946,6 +946,7 @@ bindings/python/Makefile
|
|||
bindings/python/tests/Makefile
|
||||
bindings/php5/Makefile
|
||||
bindings/php5/examples/Makefile
|
||||
bindings/php5/tests/Makefile
|
||||
])
|
||||
|
||||
languages_available=`echo $languages_available | sed -e "s/^ //" `
|
||||
|
|
Loading…
Reference in New Issue