Skip to content

Commit

Permalink
THRIFT-847 Test Framework harmonization across all languages
Browse files Browse the repository at this point in the history
add php TestClient to the testsuite

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1234292 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
bufferoverflow committed Jan 21, 2012
1 parent 0838bf5 commit b33967b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@
/test/perl/Makefile
/test/perl/Makefile.in
/test/php/gen-*
/test/php/Makefile
/test/php/Makefile.in
/test/py/Makefile
/test/py/Makefile.in
/test/py/gen-py
Expand All @@ -236,4 +238,4 @@
*.cache
*.user
*.ipch
*.sdf
*.sdf
1 change: 1 addition & 0 deletions configure.ac
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ AC_CONFIG_FILES([
test/cpp/Makefile
test/hs/Makefile
test/nodejs/Makefile
test/php/Makefile
test/perl/Makefile
test/py/Makefile
test/py.twisted/Makefile
Expand Down
4 changes: 4 additions & 0 deletions test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ if WITH_PERL
SUBDIRS += perl
endif

if WITH_PHP
SUBDIRS += php
endif

if WITH_PYTHON
SUBDIRS += py
SUBDIRS += py.twisted
Expand Down
21 changes: 7 additions & 14 deletions test/php/Makefile → test/php/Makefile.am
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ do_test "perl-cpp" "binary" "buffered-ip" \
"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" \
Expand Down

0 comments on commit b33967b

Please sign in to comment.