Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # Licensed to the Apache Software Foundation (ASF) under one |
| 4 | # or more contributor license agreements. See the NOTICE file |
| 5 | # distributed with this work for additional information |
| 6 | # regarding copyright ownership. The ASF licenses this file |
| 7 | # to you under the Apache License, Version 2.0 (the |
| 8 | # "License"); you may not use this file except in compliance |
| 9 | # with the License. You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, |
| 14 | # software distributed under the License is distributed on an |
| 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | # KIND, either express or implied. See the License for the |
| 17 | # specific language governing permissions and limitations |
| 18 | # under the License. |
| 19 | # |
| 20 | |
| 21 | # Apache Thrift - integration test suite |
| 22 | # |
| 23 | # tests different client-server, protocol and transport combinations |
| 24 | |
| 25 | # related issues: |
| 26 | # THRIFT-847 Test Framework harmonization across all languages |
| 27 | # THRIFT-819 add Enumeration for protocol, transport and server types |
| 28 | |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 29 | START_TIME=$SECONDS |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 30 | cd "$( dirname "$0" )" |
| 31 | BASEDIR=$(pwd) |
| 32 | |
Roger Meier | bea2734 | 2014-08-08 00:30:50 +0200 | [diff] [blame] | 33 | TESTCOUNT=0 |
| 34 | FAILED=0 |
| 35 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 36 | print_header() { |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 37 | printf "%-16s %-13s %-17s %-s\n" "client-server:" "protocol:" "transport:" "result:" |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 38 | } |
| 39 | |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 40 | STATUS_HTML="status.html" |
| 41 | |
| 42 | print_html_header() { |
| 43 | cat << EOF > $STATUS_HTML |
| 44 | <!DOCTYPE HTML> |
| 45 | <html> |
| 46 | <head> |
| 47 | <meta charset="utf-8"> |
| 48 | <title>Apache Thrift - integration test suite</title> |
| 49 | <link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.0/css/jquery.dataTables.css"> |
| 50 | <script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> |
| 51 | <script type="text/javascript" charset="utf-8" src="http://cdn.datatables.net/1.10.0/js/jquery.dataTables.js"></script> |
| 52 | <script> |
| 53 | var test_data; |
| 54 | \$(document).ready( function () { |
| 55 | testTable = \$('#test_results').DataTable( { |
| 56 | data: test_data |
| 57 | }); |
| 58 | \$('#test_results_filter label input') |
| 59 | .focus() |
| 60 | .val('failure'); |
| 61 | }); |
| 62 | </script> |
| 63 | </head> |
| 64 | <body> |
| 65 | <h2>Apache Thrift - integration test suite: Results</h2> |
| 66 | <table id="test_results" class="display"> |
| 67 | <thead> |
| 68 | <tr> |
| 69 | <th>Server</th> |
| 70 | <th>Client</th> |
| 71 | <th>Protocol</th> |
| 72 | <th>Transport</th> |
| 73 | <th>Result (log)</th> |
| 74 | </tr> |
| 75 | </thead> |
| 76 | </table> |
| 77 | <script> |
| 78 | test_data = [ |
| 79 | EOF |
| 80 | } |
| 81 | |
| 82 | print_html_footer() { |
| 83 | duration=$1 |
| 84 | cat << EOF >> $STATUS_HTML |
| 85 | ] |
| 86 | </script> |
| 87 | <h2>Test Information</h2> |
| 88 | <pre> |
| 89 | Test Date: `date --iso-8601=seconds` |
| 90 | Revision: `git rev-parse --short HEAD` |
| 91 | OS: `uname -a` |
| 92 | Test duration: $duration |
| 93 | </pre> |
| 94 | </body> |
| 95 | </html> |
| 96 | EOF |
| 97 | } |
| 98 | |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 99 | intersection() { |
| 100 | return_value="" |
| 101 | for one in $1; do |
| 102 | for two in $2; do |
| 103 | if [ ${one} = ${two} ]; then |
| 104 | return_value=${return_value}" "${one} |
| 105 | fi |
| 106 | done; |
| 107 | done; |
| 108 | echo ${return_value}; |
| 109 | } |
| 110 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 111 | do_test () { |
| 112 | client_server=$1 |
| 113 | protocol=$2 |
| 114 | transport=$3 |
| 115 | client_exec=$4 |
| 116 | server_exec=$5 |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 117 | client_timeout=$6 |
| 118 | server_startup_time=$7 |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 119 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 120 | testname=${client_server}_${protocol}_${transport} |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 121 | server_timeout=$(echo "(${server_startup_time}+${client_timeout})" | bc) |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 122 | printf "%-16s %-13s %-17s" ${client_server} ${protocol} ${transport} |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 123 | |
Roger Meier | 284101c | 2014-03-11 21:20:35 +0100 | [diff] [blame] | 124 | timeout $server_timeout $server_exec > log/${testname}_server.log 2>&1 & |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 125 | server_pid=$! |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 126 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 127 | sleep $server_startup_time |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 128 | timeout $client_timeout $client_exec > log/${testname}_client.log 2>&1 |
Ben Craig | f41d79d | 2014-01-08 15:15:48 -0600 | [diff] [blame] | 129 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 130 | if [ "$?" -eq "0" ]; then |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 131 | result="success($?)" |
| 132 | echo " $result" |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 133 | else |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 134 | result="failure($?)" |
| 135 | echo " $result" |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 136 | # add details to the error.log |
| 137 | print_header >> log/error.log |
| 138 | printf "%-16s %-11s %-17s\n" ${client_server} ${protocol} ${transport} >> log/error.log |
| 139 | echo "=================== server message ===================" >> log/error.log |
| 140 | tail log/${testname}_server.log >> log/error.log |
| 141 | echo "=================== client message ===================" >> log/error.log |
| 142 | tail log/${testname}_client.log >> log/error.log |
| 143 | echo "======================================================" >> log/error.log |
| 144 | echo "" >> log/error.log |
Roger Meier | bea2734 | 2014-08-08 00:30:50 +0200 | [diff] [blame] | 145 | FAILED=$(($FAILED + 1)) |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 146 | fi |
Roger Meier | bea2734 | 2014-08-08 00:30:50 +0200 | [diff] [blame] | 147 | TESTCOUNT=$(($TESTCOUNT + 1)) |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 148 | |
henrique | ad4df16 | 2014-05-20 13:18:45 +0200 | [diff] [blame] | 149 | # split client-server string |
| 150 | client=${client_server%-*} |
| 151 | server=${client_server#*-} |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 152 | |
| 153 | cat << EOF >> $STATUS_HTML |
| 154 | [ |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 155 | "${server}", |
Roger Meier | c62798b | 2014-05-23 12:54:08 +0200 | [diff] [blame] | 156 | "${client}", |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 157 | "${protocol}", |
| 158 | "${transport}", |
| 159 | "${result} (<a href=\"log/${testname}_client.log\">client</a>, <a href=\"log/${testname}_server.log\">server</a>)" |
| 160 | ], |
| 161 | EOF |
| 162 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 163 | # silently kill server |
| 164 | kill ${server_pid} 2>/dev/null && wait ${server_pid} 2>/dev/null |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 165 | } |
| 166 | |
| 167 | echo "Apache Thrift - integration test suite" |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 168 | if [ "$#" -eq "0" ]; then |
| 169 | THRIFT_TEST_PORT=9090 |
| 170 | else |
| 171 | THRIFT_TEST_PORT=$1 |
| 172 | fi |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 173 | date |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 174 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 175 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 176 | echo "======================================================" |
| 177 | |
| 178 | rm -rf log |
| 179 | mkdir -p log |
| 180 | |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 181 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 182 | print_header |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 183 | print_html_header |
| 184 | |
| 185 | ant -f ../lib/java/build.xml compile-test 1>/dev/null |
| 186 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 187 | |
Roger Meier | 8252577 | 2012-11-16 00:38:27 +0000 | [diff] [blame] | 188 | #TODO add enum for parameters |
| 189 | #TODO align program arguments across languages |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 190 | |
Roger Meier | 023192f | 2014-02-12 09:35:12 +0100 | [diff] [blame] | 191 | cpp_protocols="binary compact json" |
| 192 | java_protocols="binary compact json" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 193 | cpp_transports="buffered framed http" |
| 194 | java_server_transports="buffered framed fastframed" |
| 195 | java_client_transports=${java_server_transports}" http" |
Roger Meier | 5829a2c | 2014-04-08 00:28:17 +0200 | [diff] [blame] | 196 | cpp_sockets="ip domain ip-ssl" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 197 | java_sockets="ip ip-ssl" |
| 198 | # TODO fastframed java transport is another implementation of framed transport |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 199 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 200 | c_glib_protocols="binary" |
| 201 | c_glib_transports="buffered framed" |
| 202 | c_glib_sockets="ip" |
| 203 | |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 204 | # only test tcp type for now like the original cross test. |
| 205 | # other nodejs types can be enabled in a separate patch. |
| 206 | nodejs_types="tcp" # "tcp multiplex http websocket" |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 207 | nodejs_protocols="binary compact json" |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 208 | nodejs_transports="buffered framed" |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 209 | nodejs_sockets="ip ip-ssl" |
Roger Meier | eaa61d8 | 2012-01-12 21:38:29 +0000 | [diff] [blame] | 210 | |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 211 | csharp_protocols="binary compact json" |
| 212 | csharp_transports="buffered framed" |
| 213 | csharp_sockets="ip ip-ssl" |
| 214 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 215 | py_protocols="binary compact json accel" |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 216 | py_transports="buffered framed" |
| 217 | py_sockets="ip ip-ssl" |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 218 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 219 | ruby_protocols="binary compact json accel" |
| 220 | ruby_transports="buffered framed" |
| 221 | ruby_sockets="ip" |
| 222 | |
Noam Zilberstein | af5d64a | 2014-07-31 15:44:13 -0700 | [diff] [blame] | 223 | hs_protocols="binary compact json" |
| 224 | hs_transports="buffered" |
| 225 | hs_sockets="ip" |
| 226 | |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 227 | ######### java client - java server ############# |
| 228 | for proto in $java_protocols; do |
| 229 | for trans in $java_server_transports; do |
| 230 | for sock in $java_sockets; do |
| 231 | case "$sock" in |
| 232 | "ip" ) extraparam="";; |
| 233 | "ip-ssl" ) extraparam="--ssl";; |
| 234 | esac |
| 235 | do_test "java-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 236 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 237 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 238 | "5" "1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 239 | done |
| 240 | done |
| 241 | done |
| 242 | |
| 243 | ######### cpp client - cpp server ############### |
| 244 | for proto in $cpp_protocols; do |
| 245 | for trans in $cpp_transports; do |
| 246 | for sock in $cpp_sockets; do |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 247 | case "$sock" in |
| 248 | "ip" ) extraparam="";; |
| 249 | "ip-ssl" ) extraparam="--ssl";; |
| 250 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 251 | esac |
| 252 | do_test "cpp-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 253 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 254 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 255 | "2" "0.1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 256 | done |
| 257 | done |
| 258 | done |
| 259 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 260 | |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 261 | ######### java client - cpp server ############## |
| 262 | # warning: ssl over http is not supported in java client! |
| 263 | for proto in $(intersection "${java_protocols}" "${cpp_protocols}"); do |
| 264 | for trans in $(intersection "${java_client_transports}" "${cpp_transports}"); do |
| 265 | for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do |
| 266 | case "$sock" in |
| 267 | "ip" ) extraparam="";; |
| 268 | "ip-ssl" ) extraparam="--ssl";; |
| 269 | esac |
Roger Meier | 188024e | 2014-04-17 21:53:45 +0200 | [diff] [blame] | 270 | do_test "java-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 271 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 272 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 273 | "5" "0.1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 274 | done |
| 275 | done |
| 276 | done |
| 277 | |
| 278 | ######### cpp client - java server ############## |
| 279 | for proto in $(intersection "${cpp_protocols}" "${java_protocols}"); do |
| 280 | for trans in $(intersection "${cpp_transports}" "${java_server_transports}"); do |
| 281 | for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do |
| 282 | case "$sock" in |
| 283 | "ip" ) extraparam="";; |
| 284 | "ip-ssl" ) extraparam="--ssl";; |
| 285 | esac |
Roger Meier | 188024e | 2014-04-17 21:53:45 +0200 | [diff] [blame] | 286 | do_test "cpp-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 287 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 288 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 289 | "5" "1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 290 | done |
| 291 | done |
| 292 | done |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 293 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 294 | ######### c_glib client - c_glib server ############## |
| 295 | for proto in ${c_glib_protocols}; do |
| 296 | for trans in ${c_glib_transports}; do |
| 297 | for sock in ${c_glib_sockets}; do |
| 298 | case "$sock" in |
| 299 | "ip" ) extraparam="";; |
| 300 | "ip-ssl" ) extraparam="--ssl";; |
| 301 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 302 | esac |
| 303 | do_test "c_glib-c_glib" "${proto}" "${trans}-${sock}" \ |
| 304 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 305 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 306 | "2" "0.1" |
| 307 | done |
| 308 | done |
| 309 | done |
| 310 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 311 | ######### c_glib client - cpp server ############## |
| 312 | for proto in $(intersection "${c_glib_protocols}" "${cpp_protocols}"); do |
| 313 | for trans in $(intersection "${c_glib_transports}" "${cpp_transports}"); do |
| 314 | for sock in $(intersection "${c_glib_sockets}" "${cpp_sockets}"); do |
| 315 | case "$sock" in |
| 316 | "ip" ) extraparam="";; |
| 317 | "ip-ssl" ) extraparam="--ssl";; |
| 318 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 319 | esac |
| 320 | do_test "c_glib-cpp" "${proto}" "${trans}-${sock}" \ |
| 321 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 322 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\ |
| 323 | "2" "0.1" |
| 324 | done |
| 325 | done |
| 326 | done |
| 327 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 328 | ######### cpp client - c_glib server ############## |
| 329 | for proto in $(intersection "${cpp_protocols}" "${c_glib_protocols}"); do |
| 330 | for trans in $(intersection "${cpp_transports}" "${c_glib_transports}"); do |
| 331 | for sock in $(intersection "${cpp_sockets}" "${c_glib_sockets}"); do |
| 332 | case "$sock" in |
| 333 | "ip" ) extraparam="";; |
| 334 | "ip-ssl" ) extraparam="--ssl";; |
| 335 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 336 | esac |
| 337 | do_test "cpp-c_glib" "${proto}" "${trans}-${sock}" \ |
| 338 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\ |
| 339 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 340 | "2" "0.1" |
| 341 | done |
| 342 | done |
| 343 | done |
| 344 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 345 | ######### c_glib client - java server ############## |
| 346 | for proto in $(intersection "${c_glib_protocols}" "${java_protocols}"); do |
| 347 | for trans in $(intersection "${c_glib_transports}" "${java_server_transports}"); do |
| 348 | for sock in $(intersection "${c_glib_sockets}" "${java_sockets}"); do |
| 349 | case "$sock" in |
| 350 | "ip" ) extraparam="";; |
| 351 | "ip-ssl" ) extraparam="--ssl";; |
| 352 | esac |
| 353 | do_test "c_glib-java" "${proto}" "${trans}-${sock}" \ |
| 354 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 355 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
| 356 | "2" "2" |
| 357 | done |
| 358 | done |
| 359 | done |
| 360 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 361 | ######### java client - c_glib server ############## |
| 362 | for proto in $(intersection "${java_protocols}" "${c_glib_protocols}"); do |
| 363 | for trans in $(intersection "${java_client_transports}" "${c_glib_transports}"); do |
| 364 | for sock in $(intersection "${java_sockets}" "${c_glib_sockets}"); do |
| 365 | case "$sock" in |
| 366 | "ip" ) extraparam="";; |
| 367 | "ip-ssl" ) extraparam="--ssl";; |
| 368 | esac |
| 369 | do_test "java-c_glib" "${proto}" "${trans}-${sock}" \ |
| 370 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 371 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 372 | "5" "0.1" |
| 373 | done |
| 374 | done |
| 375 | done |
| 376 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 377 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 378 | NODE_TEST_DIR=${BASEDIR}/../lib/nodejs/test |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 379 | export NODE_PATH=${NODE_TEST_DIR}:${NODE_TEST_DIR}/../lib:${NODE_PATH} |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 380 | ######### nodejs client - nodejs server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 381 | for type in ${nodejs_types}; do |
| 382 | for proto in ${nodejs_protocols}; do |
| 383 | for trans in ${nodejs_transports}; do |
| 384 | for sock in ${nodejs_sockets}; do |
| 385 | case "$sock" in |
| 386 | "ip" ) extraparam="";; |
| 387 | "ip-ssl" ) extraparam="--ssl";; |
| 388 | esac |
| 389 | do_test "nodejs-nodejs" "${proto}" "${trans}-${sock}" \ |
| 390 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 391 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 392 | "5" "0.2" |
| 393 | done |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 394 | done |
| 395 | done |
| 396 | done |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 397 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 398 | ######### nodejs client - cpp server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 399 | for type in ${nodejs_types}; do |
| 400 | for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do |
| 401 | for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do |
| 402 | for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do |
| 403 | case "$sock" in |
| 404 | "ip" ) extraparam="";; |
| 405 | "ip-ssl" ) extraparam="--ssl";; |
| 406 | esac |
| 407 | do_test "nodejs-cpp" "${proto}" "${trans}-${sock}" \ |
| 408 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 409 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 410 | "5" "0.2" |
| 411 | done |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 412 | done |
| 413 | done |
| 414 | done |
| 415 | |
| 416 | ######### cpp client - nodejs server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 417 | for type in ${nodejs_types}; do |
| 418 | for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do |
| 419 | for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do |
| 420 | for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do |
| 421 | case "$sock" in |
| 422 | "ip" ) extraparam="";; |
| 423 | "ip-ssl" ) extraparam="--ssl";; |
| 424 | esac |
| 425 | do_test "cpp-nodejs" "${proto}" "${trans}-${sock}" \ |
| 426 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 427 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 428 | "5" "2" |
| 429 | done |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 430 | done |
| 431 | done |
| 432 | done |
| 433 | |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 434 | ######### nodejs client - java server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 435 | for type in ${nodejs_types}; do |
| 436 | for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do |
| 437 | for trans in $(intersection "${nodejs_transports}" "${java_server_transports}"); do |
| 438 | for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do |
| 439 | case "$sock" in |
| 440 | "ip" ) extraparam="";; |
| 441 | "ip-ssl" ) extraparam="--ssl";; |
| 442 | esac |
| 443 | do_test "nodejs-java" "${proto}" "${trans}-${sock}" \ |
| 444 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 445 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
| 446 | "5" "1" |
| 447 | done |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 448 | done |
| 449 | done |
| 450 | done |
| 451 | |
| 452 | ######### java client - nodejs server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 453 | for type in ${nodejs_types}; do |
| 454 | for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do |
| 455 | for trans in $(intersection "${nodejs_transports}" "${java_client_transports}"); do |
| 456 | for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do |
| 457 | case "$sock" in |
| 458 | "ip" ) extraparam="";; |
| 459 | "ip-ssl" ) extraparam="--ssl";; |
| 460 | esac |
| 461 | do_test "java-nodejs" "${proto}" "${trans}-${sock}" \ |
| 462 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 463 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 464 | "5" "2" |
| 465 | done |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 466 | done |
| 467 | done |
| 468 | done |
| 469 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 470 | ######### nodejs client - c_glib server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 471 | for type in ${nodejs_types}; do |
| 472 | for proto in $(intersection "${nodejs_protocols}" "${c_glib_protocols}"); do |
| 473 | for trans in $(intersection "${nodejs_transports}" "${c_glib_transports}"); do |
| 474 | for sock in $(intersection "${nodejs_sockets}" "${c_glib_sockets}"); do |
| 475 | case "$sock" in |
| 476 | "ip" ) extraparam="";; |
| 477 | "ip-ssl" ) extraparam="--ssl";; |
| 478 | esac |
| 479 | do_test "nodejs-c_glib" "${proto}" "${trans}-${sock}" \ |
| 480 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 481 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 482 | "5" "0.1" |
| 483 | done |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 484 | done |
| 485 | done |
| 486 | done |
| 487 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 488 | ######### c_glib client - nodejs server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 489 | for type in ${nodejs_types}; do |
| 490 | for proto in $(intersection "${c_glib_protocols}" "${nodejs_protocols}"); do |
| 491 | for trans in $(intersection "${c_glib_transports}" "${nodejs_transports}"); do |
| 492 | for sock in $(intersection "${c_glib_sockets}" "${nodejs_sockets}"); do |
| 493 | case "$sock" in |
| 494 | "ip" ) extraparam="";; |
| 495 | "ip-ssl" ) extraparam="--ssl";; |
| 496 | esac |
| 497 | do_test "c_glib-nodejs" "${proto}" "${trans}-${sock}" \ |
| 498 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 499 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 500 | "2" "2" |
| 501 | done |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 502 | done |
| 503 | done |
| 504 | done |
| 505 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 506 | ######### py client - py server ############## |
| 507 | for proto in ${py_protocols}; do |
| 508 | for trans in ${py_transports}; do |
| 509 | for sock in ${py_sockets}; do |
| 510 | case "$sock" in |
| 511 | "ip" ) extraparam="";; |
| 512 | "ip-ssl" ) extraparam="--ssl";; |
| 513 | esac |
| 514 | do_test "py-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 515 | "py/TestClient.py --protocol=${proto} --transport={trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 516 | "py/TestServer.py --protocol=${proto} --transport={trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 517 | "10" "2" |
| 518 | done |
| 519 | done |
| 520 | done |
| 521 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 522 | for trans in ${py_transports}; do |
| 523 | for sock in ${py_sockets}; do |
| 524 | case "$sock" in |
| 525 | "ip" ) extraparam="";; |
| 526 | "ip-ssl" ) extraparam="--ssl";; |
| 527 | esac |
| 528 | do_test "py-py" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 529 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 530 | "py/TestServer.py --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 531 | "10" "2" |
| 532 | do_test "py-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 533 | "py/TestClient.py --protocol=binary --transport={trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 534 | "py/TestServer.py --protocol=accel --transport={trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 535 | "10" "2" |
| 536 | done |
| 537 | done |
| 538 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 539 | ######### py client - cpp server ############## |
| 540 | for proto in $(intersection "${cpp_protocols}" "${py_protocols}"); do |
| 541 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 542 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 543 | case "$sock" in |
| 544 | "ip" ) extraparam="";; |
| 545 | "ip-ssl" ) extraparam="--ssl";; |
| 546 | esac |
| 547 | do_test "py-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 548 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 549 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 550 | "10" "2" |
| 551 | done |
| 552 | done |
| 553 | done |
| 554 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 555 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 556 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 557 | case "$sock" in |
| 558 | "ip" ) extraparam="";; |
| 559 | "ip-ssl" ) extraparam="--ssl";; |
| 560 | esac |
| 561 | do_test "py-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 562 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 563 | "cpp/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 564 | "10" "2" |
| 565 | done |
| 566 | done |
| 567 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 568 | ######### cpp client - py server ############## |
| 569 | for proto in $(intersection "${cpp_protocols}" "${py_protocols}"); do |
| 570 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 571 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 572 | case "$sock" in |
| 573 | "ip" ) extraparam="";; |
| 574 | "ip-ssl" ) extraparam="--ssl";; |
| 575 | esac |
| 576 | do_test "cpp-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 577 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 578 | "py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 579 | "10" "2" |
| 580 | done |
| 581 | done |
| 582 | done |
| 583 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 584 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 585 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 586 | case "$sock" in |
| 587 | "ip" ) extraparam="";; |
| 588 | "ip-ssl" ) extraparam="--ssl";; |
| 589 | esac |
| 590 | do_test "cpp-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 591 | "cpp/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 592 | "py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 593 | "10" "2" |
| 594 | done |
| 595 | done |
| 596 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 597 | ######### py client - java server ############## |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 598 | for proto in $(intersection "${py_protocols}" "${java_protocols}"); do |
| 599 | for trans in $(intersection "${py_transports}" "${java_server_transports}"); do |
| 600 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 601 | case "$sock" in |
| 602 | "ip" ) extraparam="";; |
| 603 | "ip-ssl" ) extraparam="--ssl";; |
| 604 | esac |
| 605 | do_test "py-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 606 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 607 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 608 | "15" "2" |
| 609 | done |
| 610 | done |
| 611 | done |
| 612 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 613 | for trans in $(intersection "${py_transports}" "${java_server_transports}"); do |
| 614 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 615 | case "$sock" in |
| 616 | "ip" ) extraparam="";; |
| 617 | "ip-ssl" ) extraparam="--ssl";; |
| 618 | esac |
| 619 | do_test "py-java" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 620 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 621 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 622 | "15" "2" |
| 623 | done |
| 624 | done |
| 625 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 626 | ######### java client - py server ############## |
| 627 | for proto in $(intersection "${py_protocols}" "${java_protocols}"); do |
| 628 | for trans in $(intersection "${py_transports}" "${java_client_transports}"); do |
| 629 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 630 | case "$sock" in |
| 631 | "ip" ) extraparam="";; |
| 632 | "ip-ssl" ) extraparam="--ssl";; |
| 633 | esac |
| 634 | do_test "java-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 635 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 636 | "py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 637 | "10" "5" |
| 638 | done |
| 639 | done |
| 640 | done |
| 641 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 642 | for trans in $(intersection "${py_transports}" "${java_client_transports}"); do |
| 643 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 644 | case "$sock" in |
| 645 | "ip" ) extraparam="";; |
| 646 | "ip-ssl" ) extraparam="--ssl";; |
| 647 | esac |
| 648 | do_test "java-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 649 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 650 | "py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 651 | "10" "5" |
| 652 | done |
| 653 | done |
| 654 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 655 | ######### py client - c_glib server ############## |
| 656 | for proto in $(intersection "${py_protocols}" "${c_glib_protocols}"); do |
| 657 | for trans in $(intersection "${py_transports}" "${c_glib_transports}"); do |
| 658 | for sock in $(intersection "${py_sockets}" "${c_glib_sockets}"); do |
| 659 | case "$sock" in |
| 660 | "ip" ) extraparam="";; |
| 661 | "ip-ssl" ) extraparam="--ssl";; |
| 662 | esac |
| 663 | do_test "py-c_glib" "${proto}" "${trans}-${sock}" \ |
| 664 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 665 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 666 | "10" "0.1" |
| 667 | done |
| 668 | done |
| 669 | done |
| 670 | |
| 671 | for trans in $(intersection "${py_transports}" "${c_glib_transports}"); do |
| 672 | for sock in $(intersection "${py_sockets}" "${c_glib_sockets}"); do |
| 673 | case "$sock" in |
| 674 | "ip" ) extraparam="";; |
| 675 | "ip-ssl" ) extraparam="--ssl";; |
| 676 | esac |
| 677 | do_test "py-c_glib" "accel-binary" "${trans}-${sock}" \ |
| 678 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 679 | "c_glib/test_server --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 680 | "10" "0.1" |
| 681 | done |
| 682 | done |
| 683 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 684 | ######### c_glib client - py server ############## |
| 685 | for proto in $(intersection "${c_glib_protocols}" "${py_protocols}"); do |
| 686 | for trans in $(intersection "${c_glib_transports}" "${py_transports}"); do |
| 687 | for sock in $(intersection "${c_glib_sockets}" "${py_sockets}"); do |
| 688 | case "$sock" in |
| 689 | "ip" ) extraparam="";; |
| 690 | "ip-ssl" ) extraparam="--ssl";; |
| 691 | esac |
| 692 | do_test "c_glib-py" "${proto}" "${trans}-${sock}" \ |
| 693 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 694 | "py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
| 695 | "2" "2" |
| 696 | done |
| 697 | done |
| 698 | done |
| 699 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 700 | for trans in $(intersection "${c_glib_transports}" "${py_transports}"); do |
| 701 | for sock in $(intersection "${c_glib_sockets}" "${py_sockets}"); do |
| 702 | case "$sock" in |
| 703 | "ip" ) extraparam="";; |
| 704 | "ip-ssl" ) extraparam="--ssl";; |
| 705 | esac |
| 706 | do_test "c_glib-py" "binary-accel" "${trans}-${sock}" \ |
| 707 | "c_glib/test_client --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 708 | "py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
| 709 | "10" "2" |
| 710 | done |
| 711 | done |
| 712 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 713 | ######### py client - nodejs server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 714 | for type in ${nodejs_types}; do |
| 715 | for proto in $(intersection "${py_protocols}" "${nodejs_protocols}"); do |
| 716 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 717 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 718 | case "$sock" in |
| 719 | "ip" ) extraparam="";; |
| 720 | "ip-ssl" ) extraparam="--ssl";; |
| 721 | esac |
| 722 | do_test "py-nodejs" "${proto}" "${trans}-${sock}" \ |
| 723 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 724 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 725 | "15" "2" |
| 726 | done |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 727 | done |
| 728 | done |
| 729 | done |
| 730 | |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 731 | for type in ${nodejs_types}; do |
| 732 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 733 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 734 | case "$sock" in |
| 735 | "ip" ) extraparam="";; |
| 736 | "ip-ssl" ) extraparam="--ssl";; |
| 737 | esac |
| 738 | do_test "py-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 739 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 740 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 741 | "15" "2" |
| 742 | done |
| 743 | done |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 744 | done |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 745 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 746 | ######### nodejs client - py server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 747 | for type in ${nodejs_types}; do |
| 748 | for proto in $(intersection "${py_protocols}" "${nodejs_protocols}"); do |
| 749 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 750 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 751 | case "$sock" in |
| 752 | "ip" ) extraparam="";; |
| 753 | "ip-ssl" ) extraparam="--ssl";; |
| 754 | esac |
| 755 | do_test "nodejs-py" "${proto}" "${trans}-${sock}" \ |
| 756 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 757 | "py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
| 758 | "10" "2" |
| 759 | done |
| 760 | done |
| 761 | done |
| 762 | done |
| 763 | |
| 764 | for type in ${nodejs_types}; do |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 765 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 766 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 767 | case "$sock" in |
| 768 | "ip" ) extraparam="";; |
| 769 | "ip-ssl" ) extraparam="--ssl";; |
| 770 | esac |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 771 | do_test "nodejs-py" "binary-accel" "${trans}-${sock}" \ |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 772 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 773 | "py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 774 | "10" "2" |
| 775 | done |
| 776 | done |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 777 | done |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 778 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 779 | ######### ruby client - ruby server ############## |
| 780 | for proto in ${ruby_protocols}; do |
| 781 | for trans in ${ruby_transports}; do |
| 782 | for sock in ${ruby_sockets}; do |
| 783 | case "$sock" in |
| 784 | "ip" ) extraparam="";; |
| 785 | "ip-ssl" ) extraparam="--ssl";; |
| 786 | esac |
| 787 | do_test "ruby-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 788 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 789 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 790 | "5" "5" |
| 791 | done |
| 792 | done |
| 793 | done |
| 794 | |
| 795 | for trans in ${ruby_transports}; do |
| 796 | for sock in ${ruby_sockets}; do |
| 797 | case "$sock" in |
| 798 | "ip" ) extraparam="";; |
| 799 | "ip-ssl" ) extraparam="--ssl";; |
| 800 | esac |
| 801 | do_test "ruby-ruby" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 802 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 803 | "ruby rb/integration/TestServer.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 804 | "5" "5" |
| 805 | do_test "ruby-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 806 | "ruby rb/integration/TestClient.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 807 | "ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 808 | "5" "5" |
| 809 | done |
| 810 | done |
| 811 | |
| 812 | ######### ruby client - cpp server ############## |
| 813 | for proto in $(intersection "${cpp_protocols}" "${ruby_protocols}"); do |
| 814 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 815 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 816 | case "$sock" in |
| 817 | "ip" ) extraparam="";; |
| 818 | "ip-ssl" ) extraparam="--ssl";; |
| 819 | esac |
| 820 | do_test "ruby-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 821 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 822 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 823 | "5" "5" |
| 824 | done |
| 825 | done |
| 826 | done |
| 827 | |
| 828 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 829 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 830 | case "$sock" in |
| 831 | "ip" ) extraparam="";; |
| 832 | "ip-ssl" ) extraparam="--ssl";; |
| 833 | esac |
| 834 | do_test "ruby-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 835 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 836 | "cpp/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 837 | "5" "5" |
| 838 | done |
| 839 | done |
| 840 | |
| 841 | ######### cpp client - ruby server ############## |
| 842 | for proto in $(intersection "${cpp_protocols}" "${ruby_protocols}"); do |
| 843 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 844 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 845 | case "$sock" in |
| 846 | "ip" ) extraparam="";; |
| 847 | "ip-ssl" ) extraparam="--ssl";; |
| 848 | esac |
| 849 | do_test "cpp-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 850 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 851 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 852 | "5" "5" |
| 853 | done |
| 854 | done |
| 855 | done |
| 856 | |
| 857 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 858 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 859 | case "$sock" in |
| 860 | "ip" ) extraparam="";; |
| 861 | "ip-ssl" ) extraparam="--ssl";; |
| 862 | esac |
| 863 | do_test "cpp-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 864 | "cpp/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 865 | "ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 866 | "5" "5" |
| 867 | done |
| 868 | done |
| 869 | |
| 870 | ######### ruby client - java server ############## |
| 871 | for proto in $(intersection "${ruby_protocols}" "${java_protocols}"); do |
| 872 | for trans in $(intersection "${ruby_transports}" "${java_server_transports}"); do |
| 873 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 874 | case "$sock" in |
| 875 | "ip" ) extraparam="";; |
| 876 | "ip-ssl" ) extraparam="--ssl";; |
| 877 | esac |
| 878 | do_test "ruby-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 879 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 880 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 881 | "15" "5" |
| 882 | done |
| 883 | done |
| 884 | done |
| 885 | |
| 886 | for trans in $(intersection "${ruby_transports}" "${java_server_transports}"); do |
| 887 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 888 | case "$sock" in |
| 889 | "ip" ) extraparam="";; |
| 890 | "ip-ssl" ) extraparam="--ssl";; |
| 891 | esac |
| 892 | do_test "ruby-java" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 893 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 894 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 895 | "15" "5" |
| 896 | done |
| 897 | done |
| 898 | |
| 899 | ######### java client - ruby server ############## |
| 900 | for proto in $(intersection "${ruby_protocols}" "${java_protocols}"); do |
| 901 | for trans in $(intersection "${ruby_transports}" "${java_client_transports}"); do |
| 902 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 903 | case "$sock" in |
| 904 | "ip" ) extraparam="";; |
| 905 | "ip-ssl" ) extraparam="--ssl";; |
| 906 | esac |
| 907 | do_test "java-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 908 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 909 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 910 | "10" "5" |
| 911 | done |
| 912 | done |
| 913 | done |
| 914 | |
| 915 | for trans in $(intersection "${ruby_transports}" "${java_client_transports}"); do |
| 916 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 917 | case "$sock" in |
| 918 | "ip" ) extraparam="";; |
| 919 | "ip-ssl" ) extraparam="--ssl";; |
| 920 | esac |
| 921 | do_test "java-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 922 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 923 | "ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 924 | "10" "5" |
| 925 | done |
| 926 | done |
| 927 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 928 | ######### ruby client - c_glib server ############## |
| 929 | for proto in $(intersection "${ruby_protocols}" "${c_glib_protocols}"); do |
| 930 | for trans in $(intersection "${ruby_transports}" "${c_glib_transports}"); do |
| 931 | for sock in $(intersection "${ruby_sockets}" "${c_glib_sockets}"); do |
| 932 | case "$sock" in |
| 933 | "ip" ) extraparam="";; |
| 934 | "ip-ssl" ) extraparam="--ssl";; |
| 935 | esac |
| 936 | do_test "ruby-c_glib" "${proto}" "${trans}-${sock}" \ |
| 937 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 938 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 939 | "5" "0.1" |
| 940 | done |
| 941 | done |
| 942 | done |
| 943 | |
| 944 | for trans in $(intersection "${ruby_transports}" "${c_glib_transports}"); do |
| 945 | for sock in $(intersection "${ruby_sockets}" "${c_glib_sockets}"); do |
| 946 | case "$sock" in |
| 947 | "ip" ) extraparam="";; |
| 948 | "ip-ssl" ) extraparam="--ssl";; |
| 949 | esac |
| 950 | do_test "ruby-c_glib" "accel-binary" "${trans}-${sock}" \ |
| 951 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 952 | "c_glib/test_server --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 953 | "5" "0.1" |
| 954 | done |
| 955 | done |
| 956 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 957 | ######### c_glib client - ruby server ############## |
| 958 | for proto in $(intersection "${c_glib_protocols}" "${ruby_protocols}"); do |
| 959 | for trans in $(intersection "${c_glib_transports}" "${ruby_transports}"); do |
| 960 | for sock in $(intersection "${c_glib_sockets}" "${ruby_sockets}"); do |
| 961 | case "$sock" in |
| 962 | "ip" ) extraparam="";; |
| 963 | "ip-ssl" ) extraparam="--ssl";; |
| 964 | esac |
| 965 | do_test "c_glib-ruby" "${proto}" "${trans}-${sock}" \ |
| 966 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 967 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 968 | "2" "2" |
| 969 | done |
| 970 | done |
| 971 | done |
| 972 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 973 | for trans in $(intersection "${c_glib_transports}" "${ruby_transports}"); do |
| 974 | for sock in $(intersection "${c_glib_sockets}" "${ruby_sockets}"); do |
| 975 | case "$sock" in |
| 976 | "ip" ) extraparam="";; |
| 977 | "ip-ssl" ) extraparam="--ssl";; |
| 978 | esac |
| 979 | do_test "c_glib-ruby" "binary-accel" "${trans}-${sock}" \ |
| 980 | "c_glib/test_client --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 981 | "ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 982 | "5" "5" |
| 983 | done |
| 984 | done |
| 985 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 986 | ######### ruby client - nodejs server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 987 | for type in ${nodejs_types}; do |
| 988 | for proto in $(intersection "${ruby_protocols}" "${nodejs_protocols}"); do |
| 989 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 990 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 991 | case "$sock" in |
| 992 | "ip" ) extraparam="";; |
| 993 | "ip-ssl" ) extraparam="--ssl";; |
| 994 | esac |
| 995 | do_test "ruby-nodejs" "${proto}" "${trans}-${sock}" \ |
| 996 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 997 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 998 | "5" "2" |
| 999 | done |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1000 | done |
| 1001 | done |
| 1002 | done |
| 1003 | |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 1004 | for type in ${nodejs_types}; do |
| 1005 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1006 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 1007 | case "$sock" in |
| 1008 | "ip" ) extraparam="";; |
| 1009 | "ip-ssl" ) extraparam="--ssl";; |
| 1010 | esac |
| 1011 | do_test "ruby-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1012 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 1013 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1014 | "5" "2" |
| 1015 | done |
| 1016 | done |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 1017 | done |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1018 | |
| 1019 | ######### nodejs client - ruby server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 1020 | for type in ${nodejs_types}; do |
| 1021 | for proto in $(intersection "${ruby_protocols}" "${nodejs_protocols}"); do |
| 1022 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 1023 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 1024 | case "$sock" in |
| 1025 | "ip" ) extraparam="";; |
| 1026 | "ip-ssl" ) extraparam="--ssl";; |
| 1027 | esac |
| 1028 | do_test "nodejs-ruby" "${proto}" "${trans}-${sock}" \ |
| 1029 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1030 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1031 | "10" "5" |
| 1032 | done |
| 1033 | done |
| 1034 | done |
| 1035 | done |
| 1036 | |
| 1037 | for type in ${nodejs_types}; do |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1038 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 1039 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 1040 | case "$sock" in |
| 1041 | "ip" ) extraparam="";; |
| 1042 | "ip-ssl" ) extraparam="--ssl";; |
| 1043 | esac |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1044 | do_test "nodejs-ruby" "binary-accel" "${trans}-${sock}" \ |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 1045 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1046 | "ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1047 | "10" "2" |
| 1048 | done |
| 1049 | done |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 1050 | done |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1051 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1052 | ######### py client - ruby server ############## |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1053 | for proto in $(intersection "${py_protocols}" "${ruby_protocols}"); do |
| 1054 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 1055 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 1056 | case "$sock" in |
| 1057 | "ip" ) extraparam="";; |
| 1058 | "ip-ssl" ) extraparam="--ssl";; |
| 1059 | esac |
| 1060 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1061 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1062 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1063 | "15" "5" |
| 1064 | done |
| 1065 | done |
| 1066 | done |
| 1067 | |
| 1068 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 1069 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 1070 | case "$sock" in |
| 1071 | "ip" ) extraparam="";; |
| 1072 | "ip-ssl" ) extraparam="--ssl";; |
| 1073 | esac |
| 1074 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1075 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1076 | "ruby rb/integration/TestServer.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1077 | "15" "5" |
| 1078 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1079 | "py/TestClient.py --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1080 | "ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1081 | "15" "5" |
| 1082 | done |
| 1083 | done |
| 1084 | |
| 1085 | ######### ruby client - py server ############## |
| 1086 | for proto in $(intersection "${py_protocols}" "${ruby_protocols}"); do |
| 1087 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 1088 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 1089 | case "$sock" in |
| 1090 | "ip" ) extraparam="";; |
| 1091 | "ip-ssl" ) extraparam="--ssl";; |
| 1092 | esac |
| 1093 | do_test "ruby-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1094 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1095 | "py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1096 | "5" "2" |
| 1097 | done |
| 1098 | done |
| 1099 | done |
| 1100 | |
| 1101 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 1102 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 1103 | case "$sock" in |
| 1104 | "ip" ) extraparam="";; |
| 1105 | "ip-ssl" ) extraparam="--ssl";; |
| 1106 | esac |
| 1107 | do_test "ruby-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1108 | "ruby rb/integration/TestClient.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1109 | "py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1110 | "5" "2" |
| 1111 | do_test "ruby-py" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1112 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1113 | "py/TestServer.py --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1114 | "5" "2" |
| 1115 | done |
| 1116 | done |
| 1117 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1118 | ######### hs client - hs server ############### |
| 1119 | for proto in $hs_protocols; do |
| 1120 | for trans in $hs_transports; do |
| 1121 | for sock in $hs_sockets; do |
| 1122 | case "$sock" in |
| 1123 | "ip" ) extraparam="";; |
| 1124 | "ip-ssl" ) extraparam="--ssl";; |
| 1125 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1126 | esac |
| 1127 | do_test "hs-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1128 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1129 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1130 | "2" "0.1" |
| 1131 | done |
| 1132 | done |
| 1133 | done |
| 1134 | |
| 1135 | ######### hs client - cpp server ############### |
| 1136 | for proto in $(intersection "${hs_protocols}" "${cpp_protocols}"); do |
| 1137 | for trans in $(intersection "${hs_transports}" "${cpp_transports}"); do |
| 1138 | for sock in $(intersection "${hs_sockets}" "${cpp_sockets}"); do |
| 1139 | case "$sock" in |
| 1140 | "ip" ) extraparam="";; |
| 1141 | "ip-ssl" ) extraparam="--ssl";; |
| 1142 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1143 | esac |
| 1144 | do_test "hs-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1145 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1146 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1147 | "2" "0.1" |
| 1148 | done |
| 1149 | done |
| 1150 | done |
| 1151 | |
| 1152 | ######### cpp client - hs server ############### |
| 1153 | for proto in $(intersection "${hs_protocols}" "${cpp_protocols}"); do |
| 1154 | for trans in $(intersection "${hs_transports}" "${cpp_transports}"); do |
| 1155 | for sock in $(intersection "${hs_sockets}" "${cpp_sockets}"); do |
| 1156 | case "$sock" in |
| 1157 | "ip" ) extraparam="";; |
| 1158 | "ip-ssl" ) extraparam="--ssl";; |
| 1159 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1160 | esac |
| 1161 | do_test "cpp-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1162 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1163 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1164 | "2" "0.1" |
| 1165 | done |
| 1166 | done |
| 1167 | done |
| 1168 | |
| 1169 | ######### hs client - java server ############### |
| 1170 | for proto in $(intersection "${hs_protocols}" "${java_protocols}"); do |
| 1171 | for trans in $(intersection "${hs_transports}" "${java_transports}"); do |
| 1172 | for sock in $(intersection "${hs_sockets}" "${java_sockets}"); do |
| 1173 | case "$sock" in |
| 1174 | "ip" ) extraparam="";; |
| 1175 | "ip-ssl" ) extraparam="--ssl";; |
| 1176 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1177 | esac |
| 1178 | do_test "hs-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1179 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1180 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1181 | "5" "1" |
| 1182 | done |
| 1183 | done |
| 1184 | done |
| 1185 | |
| 1186 | ######### java client - hs server ############### |
| 1187 | for proto in $(intersection "${hs_protocols}" "${java_protocols}"); do |
| 1188 | for trans in $(intersection "${hs_transports}" "${java_transports}"); do |
| 1189 | for sock in $(intersection "${hs_sockets}" "${java_sockets}"); do |
| 1190 | case "$sock" in |
| 1191 | "ip" ) extraparam="";; |
| 1192 | "ip-ssl" ) extraparam="--ssl";; |
| 1193 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1194 | esac |
| 1195 | do_test "java-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1196 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 1197 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1198 | "5" "1" |
| 1199 | done |
| 1200 | done |
| 1201 | done |
| 1202 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 1203 | ######### hs client - c_glib server ############### |
| 1204 | for proto in $(intersection "${hs_protocols}" "${c_glib_protocols}"); do |
| 1205 | for trans in $(intersection "${hs_transports}" "${c_glib_transports}"); do |
| 1206 | for sock in $(intersection "${hs_sockets}" "${c_glib_sockets}"); do |
| 1207 | case "$sock" in |
| 1208 | "ip" ) extraparam="";; |
| 1209 | "ip-ssl" ) extraparam="--ssl";; |
| 1210 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1211 | esac |
| 1212 | do_test "hs-c_glib" "${proto}" "${trans}-${sock}" \ |
| 1213 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1214 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1215 | "2" "0.1" |
| 1216 | done |
| 1217 | done |
| 1218 | done |
| 1219 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 1220 | ######### c_glib client - hs server ############### |
| 1221 | for proto in $(intersection "${c_glib_protocols}" "${hs_protocols}"); do |
| 1222 | for trans in $(intersection "${c_glib_transports}" "${hs_transports}"); do |
| 1223 | for sock in $(intersection "${c_glib_sockets}" "${hs_sockets}"); do |
| 1224 | case "$sock" in |
| 1225 | "ip" ) extraparam="";; |
| 1226 | "ip-ssl" ) extraparam="--ssl";; |
| 1227 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1228 | esac |
| 1229 | do_test "c_glib-hs" "${proto}" "${trans}-${sock}" \ |
| 1230 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1231 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1232 | "2" "0.1" |
| 1233 | done |
| 1234 | done |
| 1235 | done |
| 1236 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1237 | ######### py client -hs server ############## |
| 1238 | for proto in $(intersection "${hs_protocols}" "${py_protocols}"); do |
| 1239 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1240 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1241 | case "$sock" in |
| 1242 | "ip" ) extraparam="";; |
| 1243 | "ip-ssl" ) extraparam="--ssl";; |
| 1244 | esac |
| 1245 | do_test "py-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1246 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1247 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1248 | "10" "2" |
| 1249 | done |
| 1250 | done |
| 1251 | done |
| 1252 | |
| 1253 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1254 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1255 | case "$sock" in |
| 1256 | "ip" ) extraparam="";; |
| 1257 | "ip-ssl" ) extraparam="--ssl";; |
| 1258 | esac |
| 1259 | do_test "py-hs" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1260 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1261 | "hs/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1262 | "10" "2" |
| 1263 | done |
| 1264 | done |
| 1265 | |
| 1266 | ######### hs client - py server ############## |
| 1267 | for proto in $(intersection "${hs_protocols}" "${py_protocols}"); do |
| 1268 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1269 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1270 | case "$sock" in |
| 1271 | "ip" ) extraparam="";; |
| 1272 | "ip-ssl" ) extraparam="--ssl";; |
| 1273 | esac |
| 1274 | do_test "hs-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1275 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1276 | "py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1277 | "10" "2" |
| 1278 | done |
| 1279 | done |
| 1280 | done |
| 1281 | |
| 1282 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1283 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1284 | case "$sock" in |
| 1285 | "ip" ) extraparam="";; |
| 1286 | "ip-ssl" ) extraparam="--ssl";; |
| 1287 | esac |
| 1288 | do_test "hs-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1289 | "hs/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1290 | "py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1291 | "10" "2" |
| 1292 | done |
| 1293 | done |
| 1294 | |
| 1295 | ######### nodejs client - hs server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 1296 | for type in ${nodejs_types}; do |
| 1297 | for proto in $(intersection "${nodejs_protocols}" "${hs_protocols}"); do |
| 1298 | for trans in $(intersection "${nodejs_transports}" "${hs_transports}"); do |
| 1299 | for sock in $(intersection "${nodejs_sockets}" "${hs_sockets}"); do |
| 1300 | case "$sock" in |
| 1301 | "ip" ) extraparam="";; |
| 1302 | "ip-ssl" ) extraparam="--ssl";; |
| 1303 | esac |
| 1304 | do_test "nodejs-hs" "${proto}" "${trans}-${sock}" \ |
| 1305 | "node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1306 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1307 | "5" "0.2" |
| 1308 | done |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1309 | done |
| 1310 | done |
| 1311 | done |
| 1312 | |
| 1313 | ######### hs client - nodejs server ############## |
Randy Abernethy | 3b9ff4d | 2015-02-16 00:51:24 -0800 | [diff] [blame] | 1314 | for type in ${nodejs_types}; do |
| 1315 | for proto in $(intersection "${nodejs_protocols}" "${hs_protocols}"); do |
| 1316 | for trans in $(intersection "${nodejs_transports}" "${hs_transports}"); do |
| 1317 | for sock in $(intersection "${nodejs_sockets}" "${hs_sockets}"); do |
| 1318 | case "$sock" in |
| 1319 | "ip" ) extraparam="";; |
| 1320 | "ip-ssl" ) extraparam="--ssl";; |
| 1321 | esac |
| 1322 | do_test "hs-nodejs" "${proto}" "${trans}-${sock}" \ |
| 1323 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1324 | "node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1325 | "5" "2" |
| 1326 | done |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1327 | done |
| 1328 | done |
| 1329 | done |
| 1330 | |
| 1331 | ######### ruby client - hs server ############## |
| 1332 | for proto in $(intersection "${hs_protocols}" "${ruby_protocols}"); do |
| 1333 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1334 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1335 | case "$sock" in |
| 1336 | "ip" ) extraparam="";; |
| 1337 | "ip-ssl" ) extraparam="--ssl";; |
| 1338 | esac |
| 1339 | do_test "ruby-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1340 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1341 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1342 | "5" "5" |
| 1343 | done |
| 1344 | done |
| 1345 | done |
| 1346 | |
| 1347 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1348 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1349 | case "$sock" in |
| 1350 | "ip" ) extraparam="";; |
| 1351 | "ip-ssl" ) extraparam="--ssl";; |
| 1352 | esac |
| 1353 | do_test "ruby-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1354 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam} ${extraparam}" \ |
| 1355 | "hs/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1356 | "5" "5" |
| 1357 | done |
| 1358 | done |
| 1359 | |
| 1360 | ######### hs client - ruby server ############## |
| 1361 | for proto in $(intersection "${hs_protocols}" "${ruby_protocols}"); do |
| 1362 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1363 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1364 | case "$sock" in |
| 1365 | "ip" ) extraparam="";; |
| 1366 | "ip-ssl" ) extraparam="--ssl";; |
| 1367 | esac |
| 1368 | do_test "hs-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1369 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1370 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1371 | "5" "5" |
| 1372 | done |
| 1373 | done |
| 1374 | done |
| 1375 | |
| 1376 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1377 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1378 | case "$sock" in |
| 1379 | "ip" ) extraparam="";; |
| 1380 | "ip-ssl" ) extraparam="--ssl";; |
| 1381 | esac |
| 1382 | do_test "hs-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1383 | "hs/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1384 | "ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1385 | "5" "5" |
| 1386 | done |
| 1387 | done |
| 1388 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1389 | |
Roger Meier | 691ec00 | 2012-11-02 07:50:24 +0000 | [diff] [blame] | 1390 | # delete Unix Domain Socket used by cpp tests |
| 1391 | rm -f /tmp/ThriftTest.thrift |
| 1392 | |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 1393 | ######### csharp client - csharp server ############# |
| 1394 | export MONO_PATH=../lib/csharp |
| 1395 | for proto in $csharp_protocols; do |
| 1396 | for trans in $csharp_transports; do |
| 1397 | for sock in $csharp_sockets; do |
| 1398 | case "$sock" in |
| 1399 | "ip" ) extraparam="";; |
| 1400 | "ip-ssl" ) extraparam="--ssl";; |
| 1401 | esac |
| 1402 | do_test "csharp-csharp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1403 | "../lib/csharp/test/ThriftTest/TestClientServer.exe client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1404 | "../lib/csharp/test/ThriftTest/TestClientServer.exe server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 1405 | "5" "1" |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 1406 | done |
| 1407 | done |
| 1408 | done |
| 1409 | |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1410 | do_test "js-java" "json" "http-ip" \ |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 1411 | "" \ |
| 1412 | "ant -f ../lib/js/test/build.xml unittest" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 1413 | "2" "2" |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 1414 | do_test "perl-cpp" "binary" "buffered-ip" \ |
Roger Meier | 01b568c | 2012-01-10 21:30:02 +0000 | [diff] [blame] | 1415 | "perl -I perl/gen-perl/ -I../lib/perl/lib/ perl/TestClient.pl" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1416 | "cpp/TestServer --port=${THRIFT_TEST_PORT}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 1417 | "10" "2" |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 1418 | do_test "php-cpp" "binary" "buffered-ip" \ |
| 1419 | "make -C php/ client" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1420 | "cpp/TestServer --port=${THRIFT_TEST_PORT}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 1421 | "10" "2" |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1422 | |
| 1423 | echo " failed tests are logged to test/log/error.log" |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 1424 | echo " full log is here test/log/client_server_protocol_transport_client.log" |
| 1425 | echo " full log is here test/log/client_server_protocol_transport_server.log" |
| 1426 | echo " or look at file://$BASEDIR/$STATUS_HTML" |
| 1427 | |
henrique | ad4df16 | 2014-05-20 13:18:45 +0200 | [diff] [blame] | 1428 | ELAPSED_TIME=$(echo "(${SECONDS} - ${START_TIME})" | bc) |
| 1429 | DURATION="${ELAPSED_TIME} seconds" |
Roger Meier | bea2734 | 2014-08-08 00:30:50 +0200 | [diff] [blame] | 1430 | |
| 1431 | echo $FAILED failed of $TESTCOUNT tests in total |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 1432 | echo "test an took" $DURATION |
| 1433 | print_html_footer "$DURATION" |
| 1434 | |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1435 | date |
Roger Meier | 8252577 | 2012-11-16 00:38:27 +0000 | [diff] [blame] | 1436 | cd - |