diff options
author | Roger Meier <roger@apache.org> | 2015-03-24 22:30:40 +0100 |
---|---|---|
committer | Roger Meier <roger@apache.org> | 2015-03-24 22:30:40 +0100 |
commit | 41ad4342c5a0389ab2cf2dbf098086413ac01204 (patch) | |
tree | 1ce9c7d4e70a7370f132ce5d4fd245a20a68e45e /test/perl | |
parent | a2d12b6ee3d9aa66f2c16dc6a5ee6eef5f1eba92 (diff) | |
download | thrift-41ad4342c5a0389ab2cf2dbf098086413ac01204.tar.gz |
THRIFT-847 Test Framework harmonization across all languages
THRIFT-2946 Enhance usability of cross test framework
Patch: Nobuaki Sukegawa
This closes: #358
Diffstat (limited to 'test/perl')
-rw-r--r-- | test/perl/Makefile.am | 4 | ||||
-rw-r--r-- | test/perl/TestClient.pl | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/perl/Makefile.am b/test/perl/Makefile.am index 291106b5c..d975f693c 100644 --- a/test/perl/Makefile.am +++ b/test/perl/Makefile.am @@ -17,11 +17,13 @@ # under the License. # -THRIFT = $(top_srcdir)/compiler/cpp/thrift +THRIFT = $(top_builddir)/compiler/cpp/thrift stubs: ../ThriftTest.thrift $(THRIFT) --gen perl ../ThriftTest.thrift +precross: stubs + check: stubs clean-local: diff --git a/test/perl/TestClient.pl b/test/perl/TestClient.pl index ca1d47e28..5a9a6f1c7 100644 --- a/test/perl/TestClient.pl +++ b/test/perl/TestClient.pl @@ -41,6 +41,11 @@ $|++; my $host = 'localhost'; my $port = 9090; +foreach my $arg (@ARGV) { + if($arg =~ /^--port=([0-9]+)/) { + $port = $1; + } +} my $socket = new Thrift::Socket($host, $port); |