summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-27 01:19:12 +0600
committervalmat <ufabiz@gmail.com>2014-03-27 01:19:12 +0600
commitd0d062b4a05a9eb64b8d2e6d038af96ac532e4b3 (patch)
tree4fc4026b988ca6da18a88d2e34dd1d88c28d24ae /Makefile
parent702c95cf779226550af6b33255a8e1b28ccca428 (diff)
Added new tests.
Due to support zts broke the ability to run tests without installation - fixed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7941dc8..497beb8 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,8 @@ PHP_CONFIG = php-config
#
# The path to the executable PHP binary file.
# Need to run tests.
-# You can see the command "whereis php"
+# You can see the command "whereis -b php"
+# Usually /usr/bin/php
#
PHP_BIN = $(shell ${PHP_CONFIG} --php-binary)
@@ -170,5 +171,7 @@ install:
${CONFIG_UTILITY} > ${INSTALL_HEADERS}/phpcpp/config.h
test:
- cd tests && ./test.sh -p ${PHP_BIN}
+ mkdir -p ./tests/cpp/zts/phpcpp
+ ${CONFIG_UTILITY} > ./tests/cpp/zts/phpcpp/config.h
+ cd tests && ./test.sh -p "${PHP_BIN}"