Repository: thrift
Updated Branches:
  refs/heads/master c62798bb6 -> d9b331d26


make cross: add nodejs-nodejs test and nodejs compact protocol


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/d9b331d2
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/d9b331d2
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/d9b331d2

Branch: refs/heads/master
Commit: d9b331d2662ff8bbd14f04800ce5de56b21ba01a
Parents: c62798b
Author: Roger Meier <[email protected]>
Authored: Sun May 25 22:59:17 2014 +0200
Committer: Roger Meier <[email protected]>
Committed: Sun May 25 22:59:17 2014 +0200

----------------------------------------------------------------------
 test/test.sh | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/d9b331d2/test/test.sh
----------------------------------------------------------------------
diff --git a/test/test.sh b/test/test.sh
index 455ca70..a2610d9 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -188,7 +188,7 @@ cpp_sockets="ip domain ip-ssl"
 java_sockets="ip ip-ssl"
 # TODO fastframed java transport is another implementation of framed transport
 
-nodejs_protocols="binary json"
+nodejs_protocols="binary compact json"
 nodejs_transports="buffered framed"
 nodejs_sockets="ip ip-ssl"
 
@@ -267,6 +267,22 @@ done
 
 NODE_TEST_DIR=${BASEDIR}/../lib/nodejs/test
 export NODE_PATH=${NODE_TEST_DIR}:${NODE_TEST_DIR}/../lib:${NODE_PATH}
+######### nodejs client - nodejs server ##############
+##
+for proto in ${nodejs_protocols}; do
+  for trans in ${nodejs_transports}; do
+    for sock in ${nodejs_sockets}; do
+      case "$sock" in
+        "ip" ) extraparam="";;
+        "ip-ssl" ) extraparam="--ssl";;
+      esac
+      do_test "nodejs-nodejs" "${proto}" "${trans}-${sock}" \
+              "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} 
${extraparam}" \
+              "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} 
${extraparam}" \
+              "5" "0.2"
+    done
+  done
+done
 
 ######### nodejs client - cpp server ##############
 ##

Reply via email to