THRIFT-847 Test Framework harmonization across all languages
add php TestClient to the testsuite
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1234292 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/Makefile.am b/test/Makefile.am
index f45424a..2b3b8a9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -27,6 +27,10 @@
SUBDIRS += perl
endif
+if WITH_PHP
+SUBDIRS += php
+endif
+
if WITH_PYTHON
SUBDIRS += py
SUBDIRS += py.twisted
diff --git a/test/php/Makefile b/test/php/Makefile.am
old mode 100644
new mode 100755
similarity index 83%
rename from test/php/Makefile
rename to test/php/Makefile.am
index aa35c6e..1625903
--- a/test/php/Makefile
+++ b/test/php/Makefile.am
@@ -17,23 +17,16 @@
# under the License.
#
-# Default target is everything
-target: all
-
-# Tools
-THRIFT = ../../compiler/cpp/thrift
-
-all: normal inline
-
-normal: stubs
-
-inline: stubs-inline
+THRIFT = $(top_srcdir)/compiler/cpp/thrift
stubs: ../ThriftTest.thrift
$(THRIFT) --gen php ../ThriftTest.thrift
-
-stubs-inline: ../ThriftTest.thrift
$(THRIFT) --gen php:inlined ../ThriftTest.thrift
-clean:
+check: stubs
+
+clean-local:
$(RM) -r gen-php gen-phpi
+
+client: stubs
+ php TestClient.php
diff --git a/test/test.sh b/test/test.sh
index 071b5e5..30a3709 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -118,6 +118,10 @@
"perl -I perl/gen-perl/ -I../lib/perl/lib/ perl/TestClient.pl" \
"cpp/TestServer" \
"10"
+do_test "php-cpp" "binary" "buffered-ip" \
+ "make -C php/ client" \
+ "cpp/TestServer" \
+ "10"
do_test "nodejs-nodejs" "binary" "framed-ip" \
"make -C nodejs/ client" \
"make -C nodejs/ server" \