From 01b568cb5dd144470aee2cc638cc935792363b1c Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Tue, 10 Jan 2012 21:30:02 +0000 Subject: [PATCH] THRIFT-847 Test Framework harmonization across all languages perl fixes: - generate Makfile for perl tests - add inc path to test git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1229745 13f79535-47bb-0310-9956-ffa450edef68 --- .gitignore | 2 ++ configure.ac | 1 + test/perl/{Makefile => Makefile.am} | 13 ++++++------- test/test.sh | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) rename test/perl/{Makefile => Makefile.am} (87%) diff --git a/.gitignore b/.gitignore index 77d215b9b6d..cfe1185d73e 100644 --- a/.gitignore +++ b/.gitignore @@ -211,6 +211,8 @@ /test/log/ /test/test.log /test/perl/gen-* +/test/perl/Makefile +/test/perl/Makefile.in /test/php/gen-* /test/py/Makefile /test/py/Makefile.in diff --git a/configure.ac b/configure.ac index 8943cdb83fd..0bbf4f2acbe 100644 --- a/configure.ac +++ b/configure.ac @@ -492,6 +492,7 @@ AC_CONFIG_FILES([ test/Makefile test/cpp/Makefile test/hs/Makefile + test/perl/Makefile test/py/Makefile test/py.twisted/Makefile test/rb/Makefile diff --git a/test/perl/Makefile b/test/perl/Makefile.am similarity index 87% rename from test/perl/Makefile rename to test/perl/Makefile.am index e2d81d4527c..291106b5c8b 100644 --- a/test/perl/Makefile +++ b/test/perl/Makefile.am @@ -17,14 +17,13 @@ # under the License. # -# Default target is everything -target: all +THRIFT = $(top_srcdir)/compiler/cpp/thrift -# Tools -THRIFT = ../../compiler/cpp/thrift - -all: ../ThriftTest.thrift +stubs: ../ThriftTest.thrift $(THRIFT) --gen perl ../ThriftTest.thrift -clean: +check: stubs + +clean-local: $(RM) -r gen-perl + diff --git a/test/test.sh b/test/test.sh index b5bd308c159..ee74e7543ce 100755 --- a/test/test.sh +++ b/test/test.sh @@ -114,6 +114,6 @@ do_test "java-cpp" "binary" "buffered-ip" \ "cpp/TestServer" \ "10" do_test "perl-cpp" "binary" "buffered-ip" \ - "perl -I perl/gen-perl/ perl/TestClient.pl" \ + "perl -I perl/gen-perl/ -I../lib/perl/lib/ perl/TestClient.pl" \ "cpp/TestServer" \ "10"