From 5c6ad2427c67023a67e873d2e389838394053272 Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Tue, 27 May 2014 21:18:00 +0200 Subject: [PATCH] THRIFT-847 Test Framework harmonization across all languages Patch: Chamila Dilshan Wijayarathna --- test/test.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/test/test.sh b/test/test.sh index a2610d9a..f193133d 100755 --- a/test/test.sh +++ b/test/test.sh @@ -317,6 +317,39 @@ for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do done done +######### nodejs client - java server ############## +## +for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do + for trans in $(intersection "${nodejs_transports}" "${java_server_transports}"); do + for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do + case "$sock" in + "ip" ) extraparam="";; + "ip-ssl" ) extraparam="--ssl";; + esac + do_test "nodejs-java" "${proto}" "${trans}-${sock}" \ + "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} ${extraparam}" \ + "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testserver" \ + "5" "1" + done + done +done + +######### java client - nodejs server ############## +for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do + for trans in $(intersection "${nodejs_transports}" "${java_client_transports}"); do + for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do + case "$sock" in + "ip" ) extraparam="";; + "ip-ssl" ) extraparam="--ssl";; + esac + do_test "java-nodejs" "${proto}" "${trans}-${sock}" \ + "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testclient" \ + "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} ${extraparam}" \ + "5" "2" + done + done +done + # delete Unix Domain Socket used by cpp tests rm -f /tmp/ThriftTest.thrift -- 2.17.1