From e3a035ba6ae5202482d9512d69d74d945e3fdf13 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 4 Jan 2011 11:15:55 +0100 Subject: [PATCH] [bindings php5] remove hardcoding the php5 cli interpreter The test script did fail under Centos/Fedora because the interpreter for php5 is named php. --- bindings/php5/tests/Makefile.am | 2 +- bindings/php5/tests/binding_tests.sh | 2 +- bindings/php5/tests/profile_tests.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/php5/tests/Makefile.am b/bindings/php5/tests/Makefile.am index b2d8549e..bb20cf01 100644 --- a/bindings/php5/tests/Makefile.am +++ b/bindings/php5/tests/Makefile.am @@ -1,6 +1,6 @@ MAINTAINERCLEANFILES = Makefile.in if PHP5_ENABLED -TESTS_ENVIRONMENT=env "SRCDIR=$(srcdir)/" +TESTS_ENVIRONMENT=env "SRCDIR=$(srcdir)/" "PHP5=$(PHP5)" TESTS = profile_tests.sh binding_tests.sh endif diff --git a/bindings/php5/tests/binding_tests.sh b/bindings/php5/tests/binding_tests.sh index 3bfad5d6..0971ab2b 100755 --- a/bindings/php5/tests/binding_tests.sh +++ b/bindings/php5/tests/binding_tests.sh @@ -1,3 +1,3 @@ #!/bin/sh -php5 -n -d extension_dir=../.libs -d extension=lasso.so ${SRCDIR}binding_tests.php +${PHP5:?PHP5 variable is not defined} -n -d extension_dir=../.libs -d extension=lasso.so ${SRCDIR}binding_tests.php diff --git a/bindings/php5/tests/profile_tests.sh b/bindings/php5/tests/profile_tests.sh index 08a53fac..f7298079 100755 --- a/bindings/php5/tests/profile_tests.sh +++ b/bindings/php5/tests/profile_tests.sh @@ -1,3 +1,3 @@ #!/bin/sh -php5 -n -d extension_dir=../.libs -d extension=lasso.so ${SRCDIR}profile_tests.php +${PHP5:?PHP5 variable is not defined} -n -d extension_dir=../.libs -d extension=lasso.so ${SRCDIR}profile_tests.php