Skip to content

Commit

Permalink
THRIFT-847 Test Framework harmonization across all languages
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bufferoverflow committed Jan 10, 2012
1 parent 4d5157d commit 01b568c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 6 additions & 7 deletions test/perl/Makefile → test/perl/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 01b568c

Please sign in to comment.