diff options
author | valmat <ufabiz@gmail.com> | 2014-03-18 15:18:11 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-03-18 15:18:11 +0600 |
commit | e8334afd7f2920b706a3d28250a3e2b6dbd49538 (patch) | |
tree | a92e2b1b67c22eaad7eb84a2138ede2dae12e873 /Makefile | |
parent | bfaed88493de0a3ebd7f2619cb11291cd09252b1 (diff) |
Unit tests. For description see https://github.com/CopernicaMarketingSoftware/PHP-CPP/pull/25#issuecomment-37882236
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -20,6 +20,17 @@ PHP_DIR = /usr/include/php5 # +# PHP binary file +# +# The path to the executable PHP binary file. +# Need to run tests. +# You can see the command "whereis php" +# + +PHP_BIN = /usr/bin/php + + +# # Installation directory # # When you install the PHP-CPP library, it will place a number of C++ *.h @@ -126,6 +137,10 @@ OBJECTS = $(SOURCES:%.cpp=%.o) # all: ${OBJECTS} ${RESULT} + @echo + @echo "Build complete." + @echo "Don't forget to run 'make test'." + @echo ${RESULT}: ${OBJECTS} ${LINKER} ${LINKER_FLAGS} -o $@ ${OBJECTS} @@ -141,4 +156,6 @@ install: ${CP} phpcpp.h ${INSTALL_HEADERS} ${CP} include/*.h ${INSTALL_HEADERS}/phpcpp ${CP} ${RESULT} ${INSTALL_LIB} +test: + cd tests && ./test.sh ${PHP_BIN} |