Bindings PHP5: rewire php5 tests to the makefiles, make them pass distcheck

This commit is contained in:
Benjamin Dauvergne 2010-01-18 13:50:15 +00:00
parent c719916fca
commit fca7999dba
7 changed files with 7 additions and 5 deletions

View File

@ -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) \

View File

@ -1,5 +1,6 @@
MAINTAINERCLEANFILES = Makefile.in
if PHP5_ENABLED
TESTS_ENVIRONMENT=env "SRCDIR=$(srcdir)/"
TESTS = profile_tests.sh binding_tests.sh
endif

View File

@ -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... ";

View File

@ -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

View File

@ -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... ";

View File

@ -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

View File

@ -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/^ //" `