THRIFT-847 Test Framework harmonization across all languages
authorRoger Meier <roger@apache.org>
Tue, 10 Jan 2012 21:30:02 +0000 (21:30 +0000)
committerRoger Meier <roger@apache.org>
Tue, 10 Jan 2012 21:30:02 +0000 (21:30 +0000)
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
configure.ac
test/perl/Makefile.am [moved from test/perl/Makefile with 87% similarity]
test/test.sh

index 77d215b..cfe1185 100644 (file)
 /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
index 8943cdb..0bbf4f2 100644 (file)
@@ -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
similarity index 87%
rename from test/perl/Makefile
rename to test/perl/Makefile.am
index e2d81d4..291106b 100644 (file)
 # 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
+
index b5bd308..ee74e75 100755 (executable)
@@ -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"