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 | |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 204 | nodejs_protocols="binary compact json" |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 205 | nodejs_transports="buffered framed" |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 206 | nodejs_sockets="ip ip-ssl" |
Roger Meier | eaa61d8 | 2012-01-12 21:38:29 +0000 | [diff] [blame] | 207 | |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 208 | csharp_protocols="binary compact json" |
| 209 | csharp_transports="buffered framed" |
| 210 | csharp_sockets="ip ip-ssl" |
| 211 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 212 | py_protocols="binary compact json accel" |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 213 | py_transports="buffered framed" |
| 214 | py_sockets="ip ip-ssl" |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 215 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 216 | ruby_protocols="binary compact json accel" |
| 217 | ruby_transports="buffered framed" |
| 218 | ruby_sockets="ip" |
| 219 | |
Noam Zilberstein | af5d64a | 2014-07-31 15:44:13 -0700 | [diff] [blame] | 220 | hs_protocols="binary compact json" |
| 221 | hs_transports="buffered" |
| 222 | hs_sockets="ip" |
| 223 | |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 224 | ######### java client - java server ############# |
| 225 | for proto in $java_protocols; do |
| 226 | for trans in $java_server_transports; do |
| 227 | for sock in $java_sockets; do |
| 228 | case "$sock" in |
| 229 | "ip" ) extraparam="";; |
| 230 | "ip-ssl" ) extraparam="--ssl";; |
| 231 | esac |
| 232 | do_test "java-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 233 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 234 | "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] | 235 | "5" "1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 236 | done |
| 237 | done |
| 238 | done |
| 239 | |
| 240 | ######### cpp client - cpp server ############### |
| 241 | for proto in $cpp_protocols; do |
| 242 | for trans in $cpp_transports; do |
| 243 | for sock in $cpp_sockets; do |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 244 | case "$sock" in |
| 245 | "ip" ) extraparam="";; |
| 246 | "ip-ssl" ) extraparam="--ssl";; |
| 247 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 248 | esac |
| 249 | do_test "cpp-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 250 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 251 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 252 | "2" "0.1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 253 | done |
| 254 | done |
| 255 | done |
| 256 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 257 | |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 258 | ######### java client - cpp server ############## |
| 259 | # warning: ssl over http is not supported in java client! |
| 260 | for proto in $(intersection "${java_protocols}" "${cpp_protocols}"); do |
| 261 | for trans in $(intersection "${java_client_transports}" "${cpp_transports}"); do |
| 262 | for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do |
| 263 | case "$sock" in |
| 264 | "ip" ) extraparam="";; |
| 265 | "ip-ssl" ) extraparam="--ssl";; |
| 266 | esac |
Roger Meier | 188024e | 2014-04-17 21:53:45 +0200 | [diff] [blame] | 267 | do_test "java-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 268 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 269 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 270 | "5" "0.1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 271 | done |
| 272 | done |
| 273 | done |
| 274 | |
| 275 | ######### cpp client - java server ############## |
| 276 | for proto in $(intersection "${cpp_protocols}" "${java_protocols}"); do |
| 277 | for trans in $(intersection "${cpp_transports}" "${java_server_transports}"); do |
| 278 | for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do |
| 279 | case "$sock" in |
| 280 | "ip" ) extraparam="";; |
| 281 | "ip-ssl" ) extraparam="--ssl";; |
| 282 | esac |
Roger Meier | 188024e | 2014-04-17 21:53:45 +0200 | [diff] [blame] | 283 | do_test "cpp-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 284 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 285 | "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] | 286 | "5" "1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 287 | done |
| 288 | done |
| 289 | done |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 290 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 291 | ######### c_glib client - c_glib server ############## |
| 292 | for proto in ${c_glib_protocols}; do |
| 293 | for trans in ${c_glib_transports}; do |
| 294 | for sock in ${c_glib_sockets}; do |
| 295 | case "$sock" in |
| 296 | "ip" ) extraparam="";; |
| 297 | "ip-ssl" ) extraparam="--ssl";; |
| 298 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 299 | esac |
| 300 | do_test "c_glib-c_glib" "${proto}" "${trans}-${sock}" \ |
| 301 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 302 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 303 | "2" "0.1" |
| 304 | done |
| 305 | done |
| 306 | done |
| 307 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 308 | ######### c_glib client - cpp server ############## |
| 309 | for proto in $(intersection "${c_glib_protocols}" "${cpp_protocols}"); do |
| 310 | for trans in $(intersection "${c_glib_transports}" "${cpp_transports}"); do |
| 311 | for sock in $(intersection "${c_glib_sockets}" "${cpp_sockets}"); do |
| 312 | case "$sock" in |
| 313 | "ip" ) extraparam="";; |
| 314 | "ip-ssl" ) extraparam="--ssl";; |
| 315 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 316 | esac |
| 317 | do_test "c_glib-cpp" "${proto}" "${trans}-${sock}" \ |
| 318 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 319 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\ |
| 320 | "2" "0.1" |
| 321 | done |
| 322 | done |
| 323 | done |
| 324 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 325 | ######### cpp client - c_glib server ############## |
| 326 | for proto in $(intersection "${cpp_protocols}" "${c_glib_protocols}"); do |
| 327 | for trans in $(intersection "${cpp_transports}" "${c_glib_transports}"); do |
| 328 | for sock in $(intersection "${cpp_sockets}" "${c_glib_sockets}"); do |
| 329 | case "$sock" in |
| 330 | "ip" ) extraparam="";; |
| 331 | "ip-ssl" ) extraparam="--ssl";; |
| 332 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 333 | esac |
| 334 | do_test "cpp-c_glib" "${proto}" "${trans}-${sock}" \ |
| 335 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\ |
| 336 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 337 | "2" "0.1" |
| 338 | done |
| 339 | done |
| 340 | done |
| 341 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 342 | ######### c_glib client - java server ############## |
| 343 | for proto in $(intersection "${c_glib_protocols}" "${java_protocols}"); do |
| 344 | for trans in $(intersection "${c_glib_transports}" "${java_server_transports}"); do |
| 345 | for sock in $(intersection "${c_glib_sockets}" "${java_sockets}"); do |
| 346 | case "$sock" in |
| 347 | "ip" ) extraparam="";; |
| 348 | "ip-ssl" ) extraparam="--ssl";; |
| 349 | esac |
| 350 | do_test "c_glib-java" "${proto}" "${trans}-${sock}" \ |
| 351 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 352 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
| 353 | "2" "2" |
| 354 | done |
| 355 | done |
| 356 | done |
| 357 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 358 | ######### java client - c_glib server ############## |
| 359 | for proto in $(intersection "${java_protocols}" "${c_glib_protocols}"); do |
| 360 | for trans in $(intersection "${java_client_transports}" "${c_glib_transports}"); do |
| 361 | for sock in $(intersection "${java_sockets}" "${c_glib_sockets}"); do |
| 362 | case "$sock" in |
| 363 | "ip" ) extraparam="";; |
| 364 | "ip-ssl" ) extraparam="--ssl";; |
| 365 | esac |
| 366 | do_test "java-c_glib" "${proto}" "${trans}-${sock}" \ |
| 367 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 368 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 369 | "5" "0.1" |
| 370 | done |
| 371 | done |
| 372 | done |
| 373 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 374 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 375 | NODE_TEST_DIR=${BASEDIR}/../lib/nodejs/test |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 376 | export NODE_PATH=${NODE_TEST_DIR}:${NODE_TEST_DIR}/../lib:${NODE_PATH} |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 377 | ######### nodejs client - nodejs server ############## |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 378 | for proto in ${nodejs_protocols}; do |
| 379 | for trans in ${nodejs_transports}; do |
| 380 | for sock in ${nodejs_sockets}; do |
| 381 | case "$sock" in |
| 382 | "ip" ) extraparam="";; |
| 383 | "ip-ssl" ) extraparam="--ssl";; |
| 384 | esac |
| 385 | do_test "nodejs-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 386 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 387 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 388 | "5" "0.2" |
| 389 | done |
| 390 | done |
| 391 | done |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 392 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 393 | ######### nodejs client - cpp server ############## |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 394 | for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do |
| 395 | for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do |
| 396 | for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 397 | case "$sock" in |
| 398 | "ip" ) extraparam="";; |
| 399 | "ip-ssl" ) extraparam="--ssl";; |
| 400 | esac |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 401 | do_test "nodejs-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 402 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 403 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 404 | "5" "0.2" |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 405 | done |
| 406 | done |
| 407 | done |
| 408 | |
| 409 | ######### cpp client - nodejs server ############## |
| 410 | for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do |
| 411 | for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do |
| 412 | for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 413 | case "$sock" in |
| 414 | "ip" ) extraparam="";; |
| 415 | "ip-ssl" ) extraparam="--ssl";; |
| 416 | esac |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 417 | do_test "cpp-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 418 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 419 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 420 | "5" "2" |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 421 | done |
| 422 | done |
| 423 | done |
| 424 | |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 425 | ######### nodejs client - java server ############## |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 426 | for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do |
| 427 | for trans in $(intersection "${nodejs_transports}" "${java_server_transports}"); do |
| 428 | for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do |
| 429 | case "$sock" in |
| 430 | "ip" ) extraparam="";; |
| 431 | "ip-ssl" ) extraparam="--ssl";; |
| 432 | esac |
| 433 | do_test "nodejs-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 434 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 435 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 436 | "5" "1" |
| 437 | done |
| 438 | done |
| 439 | done |
| 440 | |
| 441 | ######### java client - nodejs server ############## |
| 442 | for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do |
| 443 | for trans in $(intersection "${nodejs_transports}" "${java_client_transports}"); do |
| 444 | for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do |
| 445 | case "$sock" in |
| 446 | "ip" ) extraparam="";; |
| 447 | "ip-ssl" ) extraparam="--ssl";; |
| 448 | esac |
| 449 | do_test "java-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 450 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 451 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 452 | "5" "2" |
| 453 | done |
| 454 | done |
| 455 | done |
| 456 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 457 | ######### nodejs client - c_glib server ############## |
| 458 | for proto in $(intersection "${nodejs_protocols}" "${c_glib_protocols}"); do |
| 459 | for trans in $(intersection "${nodejs_transports}" "${c_glib_transports}"); do |
| 460 | for sock in $(intersection "${nodejs_sockets}" "${c_glib_sockets}"); do |
| 461 | case "$sock" in |
| 462 | "ip" ) extraparam="";; |
| 463 | "ip-ssl" ) extraparam="--ssl";; |
| 464 | esac |
| 465 | do_test "nodejs-c_glib" "${proto}" "${trans}-${sock}" \ |
| 466 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 467 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 468 | "5" "0.1" |
| 469 | done |
| 470 | done |
| 471 | done |
| 472 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 473 | ######### c_glib client - nodejs server ############## |
| 474 | for proto in $(intersection "${c_glib_protocols}" "${nodejs_protocols}"); do |
| 475 | for trans in $(intersection "${c_glib_transports}" "${nodejs_transports}"); do |
| 476 | for sock in $(intersection "${c_glib_sockets}" "${nodejs_sockets}"); do |
| 477 | case "$sock" in |
| 478 | "ip" ) extraparam="";; |
| 479 | "ip-ssl" ) extraparam="--ssl";; |
| 480 | esac |
| 481 | do_test "c_glib-nodejs" "${proto}" "${trans}-${sock}" \ |
| 482 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 483 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 484 | "2" "2" |
| 485 | done |
| 486 | done |
| 487 | done |
| 488 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 489 | ######### py client - py server ############## |
| 490 | for proto in ${py_protocols}; do |
| 491 | for trans in ${py_transports}; do |
| 492 | for sock in ${py_sockets}; do |
| 493 | case "$sock" in |
| 494 | "ip" ) extraparam="";; |
| 495 | "ip-ssl" ) extraparam="--ssl";; |
| 496 | esac |
| 497 | do_test "py-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 498 | "py/TestClient.py --protocol=${proto} --transport={trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 499 | "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] | 500 | "10" "2" |
| 501 | done |
| 502 | done |
| 503 | done |
| 504 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 505 | for trans in ${py_transports}; do |
| 506 | for sock in ${py_sockets}; do |
| 507 | case "$sock" in |
| 508 | "ip" ) extraparam="";; |
| 509 | "ip-ssl" ) extraparam="--ssl";; |
| 510 | esac |
| 511 | do_test "py-py" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 512 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 513 | "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] | 514 | "10" "2" |
| 515 | do_test "py-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 516 | "py/TestClient.py --protocol=binary --transport={trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 517 | "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] | 518 | "10" "2" |
| 519 | done |
| 520 | done |
| 521 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 522 | ######### py client - cpp server ############## |
| 523 | for proto in $(intersection "${cpp_protocols}" "${py_protocols}"); do |
| 524 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 525 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 526 | case "$sock" in |
| 527 | "ip" ) extraparam="";; |
| 528 | "ip-ssl" ) extraparam="--ssl";; |
| 529 | esac |
| 530 | do_test "py-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 531 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 532 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 533 | "10" "2" |
| 534 | done |
| 535 | done |
| 536 | done |
| 537 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 538 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 539 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 540 | case "$sock" in |
| 541 | "ip" ) extraparam="";; |
| 542 | "ip-ssl" ) extraparam="--ssl";; |
| 543 | esac |
| 544 | do_test "py-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 545 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 546 | "cpp/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 547 | "10" "2" |
| 548 | done |
| 549 | done |
| 550 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 551 | ######### cpp client - py server ############## |
| 552 | for proto in $(intersection "${cpp_protocols}" "${py_protocols}"); do |
| 553 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 554 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 555 | case "$sock" in |
| 556 | "ip" ) extraparam="";; |
| 557 | "ip-ssl" ) extraparam="--ssl";; |
| 558 | esac |
| 559 | do_test "cpp-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 560 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 561 | "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] | 562 | "10" "2" |
| 563 | done |
| 564 | done |
| 565 | done |
| 566 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 567 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 568 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 569 | case "$sock" in |
| 570 | "ip" ) extraparam="";; |
| 571 | "ip-ssl" ) extraparam="--ssl";; |
| 572 | esac |
| 573 | do_test "cpp-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 574 | "cpp/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 575 | "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] | 576 | "10" "2" |
| 577 | done |
| 578 | done |
| 579 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 580 | ######### py client - java server ############## |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 581 | for proto in $(intersection "${py_protocols}" "${java_protocols}"); do |
| 582 | for trans in $(intersection "${py_transports}" "${java_server_transports}"); do |
| 583 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 584 | case "$sock" in |
| 585 | "ip" ) extraparam="";; |
| 586 | "ip-ssl" ) extraparam="--ssl";; |
| 587 | esac |
| 588 | do_test "py-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 589 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 590 | "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] | 591 | "15" "2" |
| 592 | done |
| 593 | done |
| 594 | done |
| 595 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 596 | for trans in $(intersection "${py_transports}" "${java_server_transports}"); do |
| 597 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 598 | case "$sock" in |
| 599 | "ip" ) extraparam="";; |
| 600 | "ip-ssl" ) extraparam="--ssl";; |
| 601 | esac |
| 602 | do_test "py-java" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 603 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 604 | "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] | 605 | "15" "2" |
| 606 | done |
| 607 | done |
| 608 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 609 | ######### java client - py server ############## |
| 610 | for proto in $(intersection "${py_protocols}" "${java_protocols}"); do |
| 611 | for trans in $(intersection "${py_transports}" "${java_client_transports}"); do |
| 612 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 613 | case "$sock" in |
| 614 | "ip" ) extraparam="";; |
| 615 | "ip-ssl" ) extraparam="--ssl";; |
| 616 | esac |
| 617 | do_test "java-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 618 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 619 | "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] | 620 | "10" "5" |
| 621 | done |
| 622 | done |
| 623 | done |
| 624 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 625 | for trans in $(intersection "${py_transports}" "${java_client_transports}"); do |
| 626 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 627 | case "$sock" in |
| 628 | "ip" ) extraparam="";; |
| 629 | "ip-ssl" ) extraparam="--ssl";; |
| 630 | esac |
| 631 | do_test "java-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 632 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 633 | "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] | 634 | "10" "5" |
| 635 | done |
| 636 | done |
| 637 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 638 | ######### py client - c_glib server ############## |
| 639 | for proto in $(intersection "${py_protocols}" "${c_glib_protocols}"); do |
| 640 | for trans in $(intersection "${py_transports}" "${c_glib_transports}"); do |
| 641 | for sock in $(intersection "${py_sockets}" "${c_glib_sockets}"); do |
| 642 | case "$sock" in |
| 643 | "ip" ) extraparam="";; |
| 644 | "ip-ssl" ) extraparam="--ssl";; |
| 645 | esac |
| 646 | do_test "py-c_glib" "${proto}" "${trans}-${sock}" \ |
| 647 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 648 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 649 | "10" "0.1" |
| 650 | done |
| 651 | done |
| 652 | done |
| 653 | |
| 654 | for trans in $(intersection "${py_transports}" "${c_glib_transports}"); do |
| 655 | for sock in $(intersection "${py_sockets}" "${c_glib_sockets}"); do |
| 656 | case "$sock" in |
| 657 | "ip" ) extraparam="";; |
| 658 | "ip-ssl" ) extraparam="--ssl";; |
| 659 | esac |
| 660 | do_test "py-c_glib" "accel-binary" "${trans}-${sock}" \ |
| 661 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 662 | "c_glib/test_server --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 663 | "10" "0.1" |
| 664 | done |
| 665 | done |
| 666 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 667 | ######### c_glib client - py server ############## |
| 668 | for proto in $(intersection "${c_glib_protocols}" "${py_protocols}"); do |
| 669 | for trans in $(intersection "${c_glib_transports}" "${py_transports}"); do |
| 670 | for sock in $(intersection "${c_glib_sockets}" "${py_sockets}"); do |
| 671 | case "$sock" in |
| 672 | "ip" ) extraparam="";; |
| 673 | "ip-ssl" ) extraparam="--ssl";; |
| 674 | esac |
| 675 | do_test "c_glib-py" "${proto}" "${trans}-${sock}" \ |
| 676 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 677 | "py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
| 678 | "2" "2" |
| 679 | done |
| 680 | done |
| 681 | done |
| 682 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 683 | for trans in $(intersection "${c_glib_transports}" "${py_transports}"); do |
| 684 | for sock in $(intersection "${c_glib_sockets}" "${py_sockets}"); do |
| 685 | case "$sock" in |
| 686 | "ip" ) extraparam="";; |
| 687 | "ip-ssl" ) extraparam="--ssl";; |
| 688 | esac |
| 689 | do_test "c_glib-py" "binary-accel" "${trans}-${sock}" \ |
| 690 | "c_glib/test_client --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 691 | "py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
| 692 | "10" "2" |
| 693 | done |
| 694 | done |
| 695 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 696 | ######### py client - nodejs server ############## |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 697 | for proto in $(intersection "${py_protocols}" "${nodejs_protocols}"); do |
| 698 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 699 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 700 | case "$sock" in |
| 701 | "ip" ) extraparam="";; |
| 702 | "ip-ssl" ) extraparam="--ssl";; |
| 703 | esac |
| 704 | do_test "py-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 705 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 706 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 707 | "15" "2" |
| 708 | done |
| 709 | done |
| 710 | done |
| 711 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 712 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 713 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 714 | case "$sock" in |
| 715 | "ip" ) extraparam="";; |
| 716 | "ip-ssl" ) extraparam="--ssl";; |
| 717 | esac |
| 718 | do_test "py-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 719 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 720 | "node ${NODE_TEST_DIR}/server.js -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 721 | "15" "2" |
| 722 | done |
| 723 | done |
| 724 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 725 | ######### nodejs client - py server ############## |
| 726 | for proto in $(intersection "${py_protocols}" "${nodejs_protocols}"); do |
| 727 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 728 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 729 | case "$sock" in |
| 730 | "ip" ) extraparam="";; |
| 731 | "ip-ssl" ) extraparam="--ssl";; |
| 732 | esac |
| 733 | do_test "nodejs-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 734 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 735 | "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] | 736 | "10" "2" |
| 737 | done |
| 738 | done |
| 739 | done |
| 740 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 741 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 742 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 743 | case "$sock" in |
| 744 | "ip" ) extraparam="";; |
| 745 | "ip-ssl" ) extraparam="--ssl";; |
| 746 | esac |
| 747 | do_test "nodejs-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 748 | "node ${NODE_TEST_DIR}/client.js -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 749 | "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] | 750 | "10" "2" |
| 751 | done |
| 752 | done |
| 753 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 754 | ######### ruby client - ruby server ############## |
| 755 | for proto in ${ruby_protocols}; do |
| 756 | for trans in ${ruby_transports}; do |
| 757 | for sock in ${ruby_sockets}; do |
| 758 | case "$sock" in |
| 759 | "ip" ) extraparam="";; |
| 760 | "ip-ssl" ) extraparam="--ssl";; |
| 761 | esac |
| 762 | do_test "ruby-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 763 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 764 | "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] | 765 | "5" "5" |
| 766 | done |
| 767 | done |
| 768 | done |
| 769 | |
| 770 | for trans in ${ruby_transports}; do |
| 771 | for sock in ${ruby_sockets}; do |
| 772 | case "$sock" in |
| 773 | "ip" ) extraparam="";; |
| 774 | "ip-ssl" ) extraparam="--ssl";; |
| 775 | esac |
| 776 | do_test "ruby-ruby" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 777 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 778 | "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] | 779 | "5" "5" |
| 780 | do_test "ruby-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 781 | "ruby rb/integration/TestClient.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 782 | "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] | 783 | "5" "5" |
| 784 | done |
| 785 | done |
| 786 | |
| 787 | ######### ruby client - cpp server ############## |
| 788 | for proto in $(intersection "${cpp_protocols}" "${ruby_protocols}"); do |
| 789 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 790 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 791 | case "$sock" in |
| 792 | "ip" ) extraparam="";; |
| 793 | "ip-ssl" ) extraparam="--ssl";; |
| 794 | esac |
| 795 | do_test "ruby-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 796 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 797 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 798 | "5" "5" |
| 799 | done |
| 800 | done |
| 801 | done |
| 802 | |
| 803 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 804 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 805 | case "$sock" in |
| 806 | "ip" ) extraparam="";; |
| 807 | "ip-ssl" ) extraparam="--ssl";; |
| 808 | esac |
| 809 | do_test "ruby-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 810 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 811 | "cpp/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 812 | "5" "5" |
| 813 | done |
| 814 | done |
| 815 | |
| 816 | ######### cpp client - ruby server ############## |
| 817 | for proto in $(intersection "${cpp_protocols}" "${ruby_protocols}"); do |
| 818 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 819 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 820 | case "$sock" in |
| 821 | "ip" ) extraparam="";; |
| 822 | "ip-ssl" ) extraparam="--ssl";; |
| 823 | esac |
| 824 | do_test "cpp-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 825 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 826 | "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] | 827 | "5" "5" |
| 828 | done |
| 829 | done |
| 830 | done |
| 831 | |
| 832 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 833 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 834 | case "$sock" in |
| 835 | "ip" ) extraparam="";; |
| 836 | "ip-ssl" ) extraparam="--ssl";; |
| 837 | esac |
| 838 | do_test "cpp-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 839 | "cpp/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 840 | "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] | 841 | "5" "5" |
| 842 | done |
| 843 | done |
| 844 | |
| 845 | ######### ruby client - java server ############## |
| 846 | for proto in $(intersection "${ruby_protocols}" "${java_protocols}"); do |
| 847 | for trans in $(intersection "${ruby_transports}" "${java_server_transports}"); do |
| 848 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 849 | case "$sock" in |
| 850 | "ip" ) extraparam="";; |
| 851 | "ip-ssl" ) extraparam="--ssl";; |
| 852 | esac |
| 853 | do_test "ruby-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 854 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 855 | "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] | 856 | "15" "5" |
| 857 | done |
| 858 | done |
| 859 | done |
| 860 | |
| 861 | for trans in $(intersection "${ruby_transports}" "${java_server_transports}"); do |
| 862 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 863 | case "$sock" in |
| 864 | "ip" ) extraparam="";; |
| 865 | "ip-ssl" ) extraparam="--ssl";; |
| 866 | esac |
| 867 | do_test "ruby-java" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 868 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 869 | "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] | 870 | "15" "5" |
| 871 | done |
| 872 | done |
| 873 | |
| 874 | ######### java client - ruby server ############## |
| 875 | for proto in $(intersection "${ruby_protocols}" "${java_protocols}"); do |
| 876 | for trans in $(intersection "${ruby_transports}" "${java_client_transports}"); do |
| 877 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 878 | case "$sock" in |
| 879 | "ip" ) extraparam="";; |
| 880 | "ip-ssl" ) extraparam="--ssl";; |
| 881 | esac |
| 882 | do_test "java-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 883 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 884 | "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] | 885 | "10" "5" |
| 886 | done |
| 887 | done |
| 888 | done |
| 889 | |
| 890 | for trans in $(intersection "${ruby_transports}" "${java_client_transports}"); do |
| 891 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 892 | case "$sock" in |
| 893 | "ip" ) extraparam="";; |
| 894 | "ip-ssl" ) extraparam="--ssl";; |
| 895 | esac |
| 896 | do_test "java-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 897 | "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" \ |
| 898 | "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] | 899 | "10" "5" |
| 900 | done |
| 901 | done |
| 902 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 903 | ######### ruby client - c_glib server ############## |
| 904 | for proto in $(intersection "${ruby_protocols}" "${c_glib_protocols}"); do |
| 905 | for trans in $(intersection "${ruby_transports}" "${c_glib_transports}"); do |
| 906 | for sock in $(intersection "${ruby_sockets}" "${c_glib_sockets}"); do |
| 907 | case "$sock" in |
| 908 | "ip" ) extraparam="";; |
| 909 | "ip-ssl" ) extraparam="--ssl";; |
| 910 | esac |
| 911 | do_test "ruby-c_glib" "${proto}" "${trans}-${sock}" \ |
| 912 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 913 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 914 | "5" "0.1" |
| 915 | done |
| 916 | done |
| 917 | done |
| 918 | |
| 919 | for trans in $(intersection "${ruby_transports}" "${c_glib_transports}"); do |
| 920 | for sock in $(intersection "${ruby_sockets}" "${c_glib_sockets}"); do |
| 921 | case "$sock" in |
| 922 | "ip" ) extraparam="";; |
| 923 | "ip-ssl" ) extraparam="--ssl";; |
| 924 | esac |
| 925 | do_test "ruby-c_glib" "accel-binary" "${trans}-${sock}" \ |
| 926 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 927 | "c_glib/test_server --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 928 | "5" "0.1" |
| 929 | done |
| 930 | done |
| 931 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 932 | ######### c_glib client - ruby server ############## |
| 933 | for proto in $(intersection "${c_glib_protocols}" "${ruby_protocols}"); do |
| 934 | for trans in $(intersection "${c_glib_transports}" "${ruby_transports}"); do |
| 935 | for sock in $(intersection "${c_glib_sockets}" "${ruby_sockets}"); do |
| 936 | case "$sock" in |
| 937 | "ip" ) extraparam="";; |
| 938 | "ip-ssl" ) extraparam="--ssl";; |
| 939 | esac |
| 940 | do_test "c_glib-ruby" "${proto}" "${trans}-${sock}" \ |
| 941 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 942 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 943 | "2" "2" |
| 944 | done |
| 945 | done |
| 946 | done |
| 947 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 948 | for trans in $(intersection "${c_glib_transports}" "${ruby_transports}"); do |
| 949 | for sock in $(intersection "${c_glib_sockets}" "${ruby_sockets}"); do |
| 950 | case "$sock" in |
| 951 | "ip" ) extraparam="";; |
| 952 | "ip-ssl" ) extraparam="--ssl";; |
| 953 | esac |
| 954 | do_test "c_glib-ruby" "binary-accel" "${trans}-${sock}" \ |
| 955 | "c_glib/test_client --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 956 | "ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 957 | "5" "5" |
| 958 | done |
| 959 | done |
| 960 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 961 | ######### ruby client - nodejs server ############## |
| 962 | for proto in $(intersection "${ruby_protocols}" "${nodejs_protocols}"); do |
| 963 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 964 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 965 | case "$sock" in |
| 966 | "ip" ) extraparam="";; |
| 967 | "ip-ssl" ) extraparam="--ssl";; |
| 968 | esac |
| 969 | do_test "ruby-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 970 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 971 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 972 | "5" "2" |
| 973 | done |
| 974 | done |
| 975 | done |
| 976 | |
| 977 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 978 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 979 | case "$sock" in |
| 980 | "ip" ) extraparam="";; |
| 981 | "ip-ssl" ) extraparam="--ssl";; |
| 982 | esac |
| 983 | do_test "ruby-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 984 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 985 | "node ${NODE_TEST_DIR}/server.js -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 986 | "5" "2" |
| 987 | done |
| 988 | done |
| 989 | |
| 990 | ######### nodejs client - ruby server ############## |
| 991 | for proto in $(intersection "${ruby_protocols}" "${nodejs_protocols}"); do |
| 992 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 993 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 994 | case "$sock" in |
| 995 | "ip" ) extraparam="";; |
| 996 | "ip-ssl" ) extraparam="--ssl";; |
| 997 | esac |
| 998 | do_test "nodejs-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 999 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1000 | "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] | 1001 | "10" "5" |
| 1002 | done |
| 1003 | done |
| 1004 | done |
| 1005 | |
| 1006 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 1007 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 1008 | case "$sock" in |
| 1009 | "ip" ) extraparam="";; |
| 1010 | "ip-ssl" ) extraparam="--ssl";; |
| 1011 | esac |
| 1012 | do_test "nodejs-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1013 | "node ${NODE_TEST_DIR}/client.js -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1014 | "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] | 1015 | "10" "2" |
| 1016 | done |
| 1017 | done |
| 1018 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1019 | ######### py client - ruby server ############## |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1020 | for proto in $(intersection "${py_protocols}" "${ruby_protocols}"); do |
| 1021 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 1022 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 1023 | case "$sock" in |
| 1024 | "ip" ) extraparam="";; |
| 1025 | "ip-ssl" ) extraparam="--ssl";; |
| 1026 | esac |
| 1027 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1028 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1029 | "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] | 1030 | "15" "5" |
| 1031 | done |
| 1032 | done |
| 1033 | done |
| 1034 | |
| 1035 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 1036 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 1037 | case "$sock" in |
| 1038 | "ip" ) extraparam="";; |
| 1039 | "ip-ssl" ) extraparam="--ssl";; |
| 1040 | esac |
| 1041 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1042 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1043 | "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] | 1044 | "15" "5" |
| 1045 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1046 | "py/TestClient.py --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1047 | "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] | 1048 | "15" "5" |
| 1049 | done |
| 1050 | done |
| 1051 | |
| 1052 | ######### ruby client - py server ############## |
| 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 "ruby-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1061 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1062 | "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] | 1063 | "5" "2" |
| 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 "ruby-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1075 | "ruby rb/integration/TestClient.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1076 | "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] | 1077 | "5" "2" |
| 1078 | do_test "ruby-py" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1079 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1080 | "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] | 1081 | "5" "2" |
| 1082 | done |
| 1083 | done |
| 1084 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1085 | ######### hs client - hs server ############### |
| 1086 | for proto in $hs_protocols; do |
| 1087 | for trans in $hs_transports; do |
| 1088 | for sock in $hs_sockets; do |
| 1089 | case "$sock" in |
| 1090 | "ip" ) extraparam="";; |
| 1091 | "ip-ssl" ) extraparam="--ssl";; |
| 1092 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1093 | esac |
| 1094 | do_test "hs-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1095 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1096 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1097 | "2" "0.1" |
| 1098 | done |
| 1099 | done |
| 1100 | done |
| 1101 | |
| 1102 | ######### hs client - cpp server ############### |
| 1103 | for proto in $(intersection "${hs_protocols}" "${cpp_protocols}"); do |
| 1104 | for trans in $(intersection "${hs_transports}" "${cpp_transports}"); do |
| 1105 | for sock in $(intersection "${hs_sockets}" "${cpp_sockets}"); do |
| 1106 | case "$sock" in |
| 1107 | "ip" ) extraparam="";; |
| 1108 | "ip-ssl" ) extraparam="--ssl";; |
| 1109 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1110 | esac |
| 1111 | do_test "hs-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1112 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1113 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1114 | "2" "0.1" |
| 1115 | done |
| 1116 | done |
| 1117 | done |
| 1118 | |
| 1119 | ######### cpp client - hs server ############### |
| 1120 | for proto in $(intersection "${hs_protocols}" "${cpp_protocols}"); do |
| 1121 | for trans in $(intersection "${hs_transports}" "${cpp_transports}"); do |
| 1122 | for sock in $(intersection "${hs_sockets}" "${cpp_sockets}"); do |
| 1123 | case "$sock" in |
| 1124 | "ip" ) extraparam="";; |
| 1125 | "ip-ssl" ) extraparam="--ssl";; |
| 1126 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1127 | esac |
| 1128 | do_test "cpp-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1129 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1130 | "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] | 1131 | "2" "0.1" |
| 1132 | done |
| 1133 | done |
| 1134 | done |
| 1135 | |
| 1136 | ######### hs client - java server ############### |
| 1137 | for proto in $(intersection "${hs_protocols}" "${java_protocols}"); do |
| 1138 | for trans in $(intersection "${hs_transports}" "${java_transports}"); do |
| 1139 | for sock in $(intersection "${hs_sockets}" "${java_sockets}"); do |
| 1140 | case "$sock" in |
| 1141 | "ip" ) extraparam="";; |
| 1142 | "ip-ssl" ) extraparam="--ssl";; |
| 1143 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1144 | esac |
| 1145 | do_test "hs-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1146 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1147 | "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] | 1148 | "5" "1" |
| 1149 | done |
| 1150 | done |
| 1151 | done |
| 1152 | |
| 1153 | ######### java client - hs server ############### |
| 1154 | for proto in $(intersection "${hs_protocols}" "${java_protocols}"); do |
| 1155 | for trans in $(intersection "${hs_transports}" "${java_transports}"); do |
| 1156 | for sock in $(intersection "${hs_sockets}" "${java_sockets}"); do |
| 1157 | case "$sock" in |
| 1158 | "ip" ) extraparam="";; |
| 1159 | "ip-ssl" ) extraparam="--ssl";; |
| 1160 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1161 | esac |
| 1162 | do_test "java-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1163 | "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" \ |
| 1164 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1165 | "5" "1" |
| 1166 | done |
| 1167 | done |
| 1168 | done |
| 1169 | |
Roger Meier | 15df076 | 2014-09-29 20:50:56 +0200 | [diff] [blame] | 1170 | ######### hs client - c_glib server ############### |
| 1171 | for proto in $(intersection "${hs_protocols}" "${c_glib_protocols}"); do |
| 1172 | for trans in $(intersection "${hs_transports}" "${c_glib_transports}"); do |
| 1173 | for sock in $(intersection "${hs_sockets}" "${c_glib_sockets}"); do |
| 1174 | case "$sock" in |
| 1175 | "ip" ) extraparam="";; |
| 1176 | "ip-ssl" ) extraparam="--ssl";; |
| 1177 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1178 | esac |
| 1179 | do_test "hs-c_glib" "${proto}" "${trans}-${sock}" \ |
| 1180 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1181 | "c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1182 | "2" "0.1" |
| 1183 | done |
| 1184 | done |
| 1185 | done |
| 1186 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 1187 | ######### c_glib client - hs server ############### |
| 1188 | for proto in $(intersection "${c_glib_protocols}" "${hs_protocols}"); do |
| 1189 | for trans in $(intersection "${c_glib_transports}" "${hs_transports}"); do |
| 1190 | for sock in $(intersection "${c_glib_sockets}" "${hs_sockets}"); do |
| 1191 | case "$sock" in |
| 1192 | "ip" ) extraparam="";; |
| 1193 | "ip-ssl" ) extraparam="--ssl";; |
| 1194 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1195 | esac |
| 1196 | do_test "c_glib-hs" "${proto}" "${trans}-${sock}" \ |
| 1197 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1198 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1199 | "2" "0.1" |
| 1200 | done |
| 1201 | done |
| 1202 | done |
| 1203 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1204 | ######### py client -hs server ############## |
| 1205 | for proto in $(intersection "${hs_protocols}" "${py_protocols}"); do |
| 1206 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1207 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1208 | case "$sock" in |
| 1209 | "ip" ) extraparam="";; |
| 1210 | "ip-ssl" ) extraparam="--ssl";; |
| 1211 | esac |
| 1212 | do_test "py-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1213 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1214 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1215 | "10" "2" |
| 1216 | done |
| 1217 | done |
| 1218 | done |
| 1219 | |
| 1220 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1221 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1222 | case "$sock" in |
| 1223 | "ip" ) extraparam="";; |
| 1224 | "ip-ssl" ) extraparam="--ssl";; |
| 1225 | esac |
| 1226 | do_test "py-hs" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1227 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1228 | "hs/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1229 | "10" "2" |
| 1230 | done |
| 1231 | done |
| 1232 | |
| 1233 | ######### hs client - py server ############## |
| 1234 | for proto in $(intersection "${hs_protocols}" "${py_protocols}"); do |
| 1235 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1236 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1237 | case "$sock" in |
| 1238 | "ip" ) extraparam="";; |
| 1239 | "ip-ssl" ) extraparam="--ssl";; |
| 1240 | esac |
| 1241 | do_test "hs-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1242 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1243 | "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] | 1244 | "10" "2" |
| 1245 | done |
| 1246 | done |
| 1247 | done |
| 1248 | |
| 1249 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1250 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1251 | case "$sock" in |
| 1252 | "ip" ) extraparam="";; |
| 1253 | "ip-ssl" ) extraparam="--ssl";; |
| 1254 | esac |
| 1255 | do_test "hs-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1256 | "hs/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1257 | "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] | 1258 | "10" "2" |
| 1259 | done |
| 1260 | done |
| 1261 | |
| 1262 | ######### nodejs client - hs server ############## |
| 1263 | for proto in $(intersection "${nodejs_protocols}" "${hs_protocols}"); do |
| 1264 | for trans in $(intersection "${nodejs_transports}" "${hs_transports}"); do |
| 1265 | for sock in $(intersection "${nodejs_sockets}" "${hs_sockets}"); do |
| 1266 | case "$sock" in |
| 1267 | "ip" ) extraparam="";; |
| 1268 | "ip-ssl" ) extraparam="--ssl";; |
| 1269 | esac |
| 1270 | do_test "nodejs-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1271 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1272 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1273 | "5" "0.2" |
| 1274 | done |
| 1275 | done |
| 1276 | done |
| 1277 | |
| 1278 | ######### hs client - nodejs server ############## |
| 1279 | for proto in $(intersection "${nodejs_protocols}" "${hs_protocols}"); do |
| 1280 | for trans in $(intersection "${nodejs_transports}" "${hs_transports}"); do |
| 1281 | for sock in $(intersection "${nodejs_sockets}" "${hs_sockets}"); do |
| 1282 | case "$sock" in |
| 1283 | "ip" ) extraparam="";; |
| 1284 | "ip-ssl" ) extraparam="--ssl";; |
| 1285 | esac |
| 1286 | do_test "hs-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1287 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1288 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1289 | "5" "2" |
| 1290 | done |
| 1291 | done |
| 1292 | done |
| 1293 | |
| 1294 | ######### ruby client - hs server ############## |
| 1295 | for proto in $(intersection "${hs_protocols}" "${ruby_protocols}"); do |
| 1296 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1297 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1298 | case "$sock" in |
| 1299 | "ip" ) extraparam="";; |
| 1300 | "ip-ssl" ) extraparam="--ssl";; |
| 1301 | esac |
| 1302 | do_test "ruby-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1303 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1304 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1305 | "5" "5" |
| 1306 | done |
| 1307 | done |
| 1308 | done |
| 1309 | |
| 1310 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1311 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1312 | case "$sock" in |
| 1313 | "ip" ) extraparam="";; |
| 1314 | "ip-ssl" ) extraparam="--ssl";; |
| 1315 | esac |
| 1316 | do_test "ruby-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1317 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam} ${extraparam}" \ |
| 1318 | "hs/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1319 | "5" "5" |
| 1320 | done |
| 1321 | done |
| 1322 | |
| 1323 | ######### hs client - ruby server ############## |
| 1324 | for proto in $(intersection "${hs_protocols}" "${ruby_protocols}"); do |
| 1325 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1326 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1327 | case "$sock" in |
| 1328 | "ip" ) extraparam="";; |
| 1329 | "ip-ssl" ) extraparam="--ssl";; |
| 1330 | esac |
| 1331 | do_test "hs-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1332 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1333 | "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] | 1334 | "5" "5" |
| 1335 | done |
| 1336 | done |
| 1337 | done |
| 1338 | |
| 1339 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1340 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1341 | case "$sock" in |
| 1342 | "ip" ) extraparam="";; |
| 1343 | "ip-ssl" ) extraparam="--ssl";; |
| 1344 | esac |
| 1345 | do_test "hs-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1346 | "hs/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1347 | "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] | 1348 | "5" "5" |
| 1349 | done |
| 1350 | done |
| 1351 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1352 | |
Roger Meier | 691ec00 | 2012-11-02 07:50:24 +0000 | [diff] [blame] | 1353 | # delete Unix Domain Socket used by cpp tests |
| 1354 | rm -f /tmp/ThriftTest.thrift |
| 1355 | |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 1356 | ######### csharp client - csharp server ############# |
| 1357 | export MONO_PATH=../lib/csharp |
| 1358 | for proto in $csharp_protocols; do |
| 1359 | for trans in $csharp_transports; do |
| 1360 | for sock in $csharp_sockets; do |
| 1361 | case "$sock" in |
| 1362 | "ip" ) extraparam="";; |
| 1363 | "ip-ssl" ) extraparam="--ssl";; |
| 1364 | esac |
| 1365 | do_test "csharp-csharp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1366 | "../lib/csharp/test/ThriftTest/TestClientServer.exe client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1367 | "../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] | 1368 | "5" "1" |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 1369 | done |
| 1370 | done |
| 1371 | done |
| 1372 | |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1373 | do_test "js-java" "json" "http-ip" \ |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 1374 | "" \ |
| 1375 | "ant -f ../lib/js/test/build.xml unittest" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 1376 | "2" "2" |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 1377 | do_test "perl-cpp" "binary" "buffered-ip" \ |
Roger Meier | 01b568c | 2012-01-10 21:30:02 +0000 | [diff] [blame] | 1378 | "perl -I perl/gen-perl/ -I../lib/perl/lib/ perl/TestClient.pl" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1379 | "cpp/TestServer --port=${THRIFT_TEST_PORT}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 1380 | "10" "2" |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 1381 | do_test "php-cpp" "binary" "buffered-ip" \ |
| 1382 | "make -C php/ client" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1383 | "cpp/TestServer --port=${THRIFT_TEST_PORT}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 1384 | "10" "2" |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1385 | |
| 1386 | echo " failed tests are logged to test/log/error.log" |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 1387 | echo " full log is here test/log/client_server_protocol_transport_client.log" |
| 1388 | echo " full log is here test/log/client_server_protocol_transport_server.log" |
| 1389 | echo " or look at file://$BASEDIR/$STATUS_HTML" |
| 1390 | |
henrique | ad4df16 | 2014-05-20 13:18:45 +0200 | [diff] [blame] | 1391 | ELAPSED_TIME=$(echo "(${SECONDS} - ${START_TIME})" | bc) |
| 1392 | DURATION="${ELAPSED_TIME} seconds" |
Roger Meier | bea2734 | 2014-08-08 00:30:50 +0200 | [diff] [blame] | 1393 | |
| 1394 | echo $FAILED failed of $TESTCOUNT tests in total |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 1395 | echo "test an took" $DURATION |
| 1396 | print_html_footer "$DURATION" |
| 1397 | |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1398 | date |
Roger Meier | 8252577 | 2012-11-16 00:38:27 +0000 | [diff] [blame] | 1399 | cd - |