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 | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 291 | ######### c_glib client - cpp server ############## |
| 292 | for proto in $(intersection "${c_glib_protocols}" "${cpp_protocols}"); do |
| 293 | for trans in $(intersection "${c_glib_transports}" "${cpp_transports}"); do |
| 294 | for sock in $(intersection "${c_glib_sockets}" "${cpp_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-cpp" "${proto}" "${trans}-${sock}" \ |
| 301 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 302 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\ |
| 303 | "2" "0.1" |
| 304 | done |
| 305 | done |
| 306 | done |
| 307 | |
| 308 | ######### c_glib client - java server ############## |
| 309 | for proto in $(intersection "${c_glib_protocols}" "${java_protocols}"); do |
| 310 | for trans in $(intersection "${c_glib_transports}" "${java_server_transports}"); do |
| 311 | for sock in $(intersection "${c_glib_sockets}" "${java_sockets}"); do |
| 312 | case "$sock" in |
| 313 | "ip" ) extraparam="";; |
| 314 | "ip-ssl" ) extraparam="--ssl";; |
| 315 | esac |
| 316 | do_test "c_glib-java" "${proto}" "${trans}-${sock}" \ |
| 317 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 318 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \ |
| 319 | "2" "2" |
| 320 | done |
| 321 | done |
| 322 | done |
| 323 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 324 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 325 | NODE_TEST_DIR=${BASEDIR}/../lib/nodejs/test |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 326 | export NODE_PATH=${NODE_TEST_DIR}:${NODE_TEST_DIR}/../lib:${NODE_PATH} |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 327 | ######### nodejs client - nodejs server ############## |
Roger Meier | d9b331d | 2014-05-25 22:59:17 +0200 | [diff] [blame] | 328 | for proto in ${nodejs_protocols}; do |
| 329 | for trans in ${nodejs_transports}; do |
| 330 | for sock in ${nodejs_sockets}; do |
| 331 | case "$sock" in |
| 332 | "ip" ) extraparam="";; |
| 333 | "ip-ssl" ) extraparam="--ssl";; |
| 334 | esac |
| 335 | do_test "nodejs-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 336 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 337 | "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] | 338 | "5" "0.2" |
| 339 | done |
| 340 | done |
| 341 | done |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 342 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 343 | ######### nodejs client - cpp server ############## |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 344 | for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do |
| 345 | for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do |
| 346 | for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 347 | case "$sock" in |
| 348 | "ip" ) extraparam="";; |
| 349 | "ip-ssl" ) extraparam="--ssl";; |
| 350 | esac |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 351 | do_test "nodejs-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 352 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 353 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 354 | "5" "0.2" |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 355 | done |
| 356 | done |
| 357 | done |
| 358 | |
| 359 | ######### cpp client - nodejs server ############## |
| 360 | for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do |
| 361 | for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do |
| 362 | for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 363 | case "$sock" in |
| 364 | "ip" ) extraparam="";; |
| 365 | "ip-ssl" ) extraparam="--ssl";; |
| 366 | esac |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 367 | do_test "cpp-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 368 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 369 | "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] | 370 | "5" "2" |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 371 | done |
| 372 | done |
| 373 | done |
| 374 | |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 375 | ######### nodejs client - java server ############## |
Roger Meier | 5c6ad24 | 2014-05-27 21:18:00 +0200 | [diff] [blame] | 376 | for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do |
| 377 | for trans in $(intersection "${nodejs_transports}" "${java_server_transports}"); do |
| 378 | for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do |
| 379 | case "$sock" in |
| 380 | "ip" ) extraparam="";; |
| 381 | "ip-ssl" ) extraparam="--ssl";; |
| 382 | esac |
| 383 | do_test "nodejs-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 384 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 385 | "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] | 386 | "5" "1" |
| 387 | done |
| 388 | done |
| 389 | done |
| 390 | |
| 391 | ######### java client - nodejs server ############## |
| 392 | for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do |
| 393 | for trans in $(intersection "${nodejs_transports}" "${java_client_transports}"); do |
| 394 | for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do |
| 395 | case "$sock" in |
| 396 | "ip" ) extraparam="";; |
| 397 | "ip-ssl" ) extraparam="--ssl";; |
| 398 | esac |
| 399 | do_test "java-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 400 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 401 | "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] | 402 | "5" "2" |
| 403 | done |
| 404 | done |
| 405 | done |
| 406 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 407 | ######### c_glib client - nodejs server ############## |
| 408 | for proto in $(intersection "${c_glib_protocols}" "${nodejs_protocols}"); do |
| 409 | for trans in $(intersection "${c_glib_transports}" "${nodejs_transports}"); do |
| 410 | for sock in $(intersection "${c_glib_sockets}" "${nodejs_sockets}"); do |
| 411 | case "$sock" in |
| 412 | "ip" ) extraparam="";; |
| 413 | "ip-ssl" ) extraparam="--ssl";; |
| 414 | esac |
| 415 | do_test "c_glib-nodejs" "${proto}" "${trans}-${sock}" \ |
| 416 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 417 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 418 | "2" "2" |
| 419 | done |
| 420 | done |
| 421 | done |
| 422 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 423 | ######### py client - py server ############## |
| 424 | for proto in ${py_protocols}; do |
| 425 | for trans in ${py_transports}; do |
| 426 | for sock in ${py_sockets}; do |
| 427 | case "$sock" in |
| 428 | "ip" ) extraparam="";; |
| 429 | "ip-ssl" ) extraparam="--ssl";; |
| 430 | esac |
| 431 | do_test "py-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 432 | "py/TestClient.py --protocol=${proto} --transport={trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 433 | "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] | 434 | "10" "2" |
| 435 | done |
| 436 | done |
| 437 | done |
| 438 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 439 | for trans in ${py_transports}; do |
| 440 | for sock in ${py_sockets}; do |
| 441 | case "$sock" in |
| 442 | "ip" ) extraparam="";; |
| 443 | "ip-ssl" ) extraparam="--ssl";; |
| 444 | esac |
| 445 | do_test "py-py" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 446 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 447 | "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] | 448 | "10" "2" |
| 449 | do_test "py-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 450 | "py/TestClient.py --protocol=binary --transport={trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 451 | "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] | 452 | "10" "2" |
| 453 | done |
| 454 | done |
| 455 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 456 | ######### py client - cpp server ############## |
| 457 | for proto in $(intersection "${cpp_protocols}" "${py_protocols}"); do |
| 458 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 459 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 460 | case "$sock" in |
| 461 | "ip" ) extraparam="";; |
| 462 | "ip-ssl" ) extraparam="--ssl";; |
| 463 | esac |
| 464 | do_test "py-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 465 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 466 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 467 | "10" "2" |
| 468 | done |
| 469 | done |
| 470 | done |
| 471 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 472 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 473 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 474 | case "$sock" in |
| 475 | "ip" ) extraparam="";; |
| 476 | "ip-ssl" ) extraparam="--ssl";; |
| 477 | esac |
| 478 | do_test "py-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 479 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 480 | "cpp/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 481 | "10" "2" |
| 482 | done |
| 483 | done |
| 484 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 485 | ######### cpp client - py server ############## |
| 486 | for proto in $(intersection "${cpp_protocols}" "${py_protocols}"); do |
| 487 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 488 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 489 | case "$sock" in |
| 490 | "ip" ) extraparam="";; |
| 491 | "ip-ssl" ) extraparam="--ssl";; |
| 492 | esac |
| 493 | do_test "cpp-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 494 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 495 | "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] | 496 | "10" "2" |
| 497 | done |
| 498 | done |
| 499 | done |
| 500 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 501 | for trans in $(intersection "${cpp_transports}" "${py_transports}"); do |
| 502 | for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do |
| 503 | case "$sock" in |
| 504 | "ip" ) extraparam="";; |
| 505 | "ip-ssl" ) extraparam="--ssl";; |
| 506 | esac |
| 507 | do_test "cpp-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 508 | "cpp/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 509 | "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] | 510 | "10" "2" |
| 511 | done |
| 512 | done |
| 513 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 514 | ######### py client - java server ############## |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 515 | for proto in $(intersection "${py_protocols}" "${java_protocols}"); do |
| 516 | for trans in $(intersection "${py_transports}" "${java_server_transports}"); do |
| 517 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 518 | case "$sock" in |
| 519 | "ip" ) extraparam="";; |
| 520 | "ip-ssl" ) extraparam="--ssl";; |
| 521 | esac |
| 522 | do_test "py-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 523 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 524 | "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] | 525 | "15" "2" |
| 526 | done |
| 527 | done |
| 528 | done |
| 529 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 530 | for trans in $(intersection "${py_transports}" "${java_server_transports}"); do |
| 531 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 532 | case "$sock" in |
| 533 | "ip" ) extraparam="";; |
| 534 | "ip-ssl" ) extraparam="--ssl";; |
| 535 | esac |
| 536 | do_test "py-java" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 537 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 538 | "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] | 539 | "15" "2" |
| 540 | done |
| 541 | done |
| 542 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 543 | ######### java client - py server ############## |
| 544 | for proto in $(intersection "${py_protocols}" "${java_protocols}"); do |
| 545 | for trans in $(intersection "${py_transports}" "${java_client_transports}"); do |
| 546 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 547 | case "$sock" in |
| 548 | "ip" ) extraparam="";; |
| 549 | "ip-ssl" ) extraparam="--ssl";; |
| 550 | esac |
| 551 | do_test "java-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 552 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 553 | "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] | 554 | "10" "5" |
| 555 | done |
| 556 | done |
| 557 | done |
| 558 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 559 | for trans in $(intersection "${py_transports}" "${java_client_transports}"); do |
| 560 | for sock in $(intersection "${py_sockets}" "${java_sockets}"); do |
| 561 | case "$sock" in |
| 562 | "ip" ) extraparam="";; |
| 563 | "ip-ssl" ) extraparam="--ssl";; |
| 564 | esac |
| 565 | do_test "java-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 566 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 567 | "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] | 568 | "10" "5" |
| 569 | done |
| 570 | done |
| 571 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 572 | ######### c_glib client - py server ############## |
| 573 | for proto in $(intersection "${c_glib_protocols}" "${py_protocols}"); do |
| 574 | for trans in $(intersection "${c_glib_transports}" "${py_transports}"); do |
| 575 | for sock in $(intersection "${c_glib_sockets}" "${py_sockets}"); do |
| 576 | case "$sock" in |
| 577 | "ip" ) extraparam="";; |
| 578 | "ip-ssl" ) extraparam="--ssl";; |
| 579 | esac |
| 580 | do_test "c_glib-py" "${proto}" "${trans}-${sock}" \ |
| 581 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 582 | "py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \ |
| 583 | "2" "2" |
| 584 | done |
| 585 | done |
| 586 | done |
| 587 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 588 | ######### py client - nodejs server ############## |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 589 | for proto in $(intersection "${py_protocols}" "${nodejs_protocols}"); do |
| 590 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 591 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 592 | case "$sock" in |
| 593 | "ip" ) extraparam="";; |
| 594 | "ip-ssl" ) extraparam="--ssl";; |
| 595 | esac |
| 596 | do_test "py-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 597 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 598 | "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] | 599 | "15" "2" |
| 600 | done |
| 601 | done |
| 602 | done |
| 603 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 604 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 605 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 606 | case "$sock" in |
| 607 | "ip" ) extraparam="";; |
| 608 | "ip-ssl" ) extraparam="--ssl";; |
| 609 | esac |
| 610 | do_test "py-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 611 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 612 | "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] | 613 | "15" "2" |
| 614 | done |
| 615 | done |
| 616 | |
Roger Meier | 72268b7 | 2014-05-28 23:03:57 +0200 | [diff] [blame] | 617 | ######### nodejs client - py server ############## |
| 618 | for proto in $(intersection "${py_protocols}" "${nodejs_protocols}"); do |
| 619 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 620 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 621 | case "$sock" in |
| 622 | "ip" ) extraparam="";; |
| 623 | "ip-ssl" ) extraparam="--ssl";; |
| 624 | esac |
| 625 | do_test "nodejs-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 626 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 627 | "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] | 628 | "10" "2" |
| 629 | done |
| 630 | done |
| 631 | done |
| 632 | |
Roger Meier | 7615072 | 2014-05-31 22:22:07 +0200 | [diff] [blame] | 633 | for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do |
| 634 | for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do |
| 635 | case "$sock" in |
| 636 | "ip" ) extraparam="";; |
| 637 | "ip-ssl" ) extraparam="--ssl";; |
| 638 | esac |
| 639 | do_test "nodejs-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 640 | "node ${NODE_TEST_DIR}/client.js -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 641 | "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] | 642 | "10" "2" |
| 643 | done |
| 644 | done |
| 645 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 646 | ######### ruby client - ruby server ############## |
| 647 | for proto in ${ruby_protocols}; do |
| 648 | for trans in ${ruby_transports}; do |
| 649 | for sock in ${ruby_sockets}; do |
| 650 | case "$sock" in |
| 651 | "ip" ) extraparam="";; |
| 652 | "ip-ssl" ) extraparam="--ssl";; |
| 653 | esac |
| 654 | do_test "ruby-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 655 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 656 | "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] | 657 | "5" "5" |
| 658 | done |
| 659 | done |
| 660 | done |
| 661 | |
| 662 | for trans in ${ruby_transports}; do |
| 663 | for sock in ${ruby_sockets}; do |
| 664 | case "$sock" in |
| 665 | "ip" ) extraparam="";; |
| 666 | "ip-ssl" ) extraparam="--ssl";; |
| 667 | esac |
| 668 | do_test "ruby-ruby" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 669 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 670 | "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] | 671 | "5" "5" |
| 672 | do_test "ruby-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 673 | "ruby rb/integration/TestClient.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 674 | "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] | 675 | "5" "5" |
| 676 | done |
| 677 | done |
| 678 | |
| 679 | ######### ruby client - cpp server ############## |
| 680 | for proto in $(intersection "${cpp_protocols}" "${ruby_protocols}"); do |
| 681 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 682 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 683 | case "$sock" in |
| 684 | "ip" ) extraparam="";; |
| 685 | "ip-ssl" ) extraparam="--ssl";; |
| 686 | esac |
| 687 | do_test "ruby-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 688 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 689 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 690 | "5" "5" |
| 691 | done |
| 692 | done |
| 693 | done |
| 694 | |
| 695 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 696 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 697 | case "$sock" in |
| 698 | "ip" ) extraparam="";; |
| 699 | "ip-ssl" ) extraparam="--ssl";; |
| 700 | esac |
| 701 | do_test "ruby-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 702 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 703 | "cpp/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 704 | "5" "5" |
| 705 | done |
| 706 | done |
| 707 | |
| 708 | ######### cpp client - ruby server ############## |
| 709 | for proto in $(intersection "${cpp_protocols}" "${ruby_protocols}"); do |
| 710 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 711 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 712 | case "$sock" in |
| 713 | "ip" ) extraparam="";; |
| 714 | "ip-ssl" ) extraparam="--ssl";; |
| 715 | esac |
| 716 | do_test "cpp-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 717 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 718 | "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] | 719 | "5" "5" |
| 720 | done |
| 721 | done |
| 722 | done |
| 723 | |
| 724 | for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do |
| 725 | for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do |
| 726 | case "$sock" in |
| 727 | "ip" ) extraparam="";; |
| 728 | "ip-ssl" ) extraparam="--ssl";; |
| 729 | esac |
| 730 | do_test "cpp-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 731 | "cpp/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 732 | "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] | 733 | "5" "5" |
| 734 | done |
| 735 | done |
| 736 | |
| 737 | ######### ruby client - java server ############## |
| 738 | for proto in $(intersection "${ruby_protocols}" "${java_protocols}"); do |
| 739 | for trans in $(intersection "${ruby_transports}" "${java_server_transports}"); do |
| 740 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 741 | case "$sock" in |
| 742 | "ip" ) extraparam="";; |
| 743 | "ip-ssl" ) extraparam="--ssl";; |
| 744 | esac |
| 745 | do_test "ruby-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 746 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 747 | "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] | 748 | "15" "5" |
| 749 | done |
| 750 | done |
| 751 | done |
| 752 | |
| 753 | for trans in $(intersection "${ruby_transports}" "${java_server_transports}"); do |
| 754 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 755 | case "$sock" in |
| 756 | "ip" ) extraparam="";; |
| 757 | "ip-ssl" ) extraparam="--ssl";; |
| 758 | esac |
| 759 | do_test "ruby-java" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 760 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 761 | "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] | 762 | "15" "5" |
| 763 | done |
| 764 | done |
| 765 | |
| 766 | ######### java client - ruby server ############## |
| 767 | for proto in $(intersection "${ruby_protocols}" "${java_protocols}"); do |
| 768 | for trans in $(intersection "${ruby_transports}" "${java_client_transports}"); do |
| 769 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 770 | case "$sock" in |
| 771 | "ip" ) extraparam="";; |
| 772 | "ip-ssl" ) extraparam="--ssl";; |
| 773 | esac |
| 774 | do_test "java-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 775 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \ |
| 776 | "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] | 777 | "10" "5" |
| 778 | done |
| 779 | done |
| 780 | done |
| 781 | |
| 782 | for trans in $(intersection "${ruby_transports}" "${java_client_transports}"); do |
| 783 | for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do |
| 784 | case "$sock" in |
| 785 | "ip" ) extraparam="";; |
| 786 | "ip-ssl" ) extraparam="--ssl";; |
| 787 | esac |
| 788 | do_test "java-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 789 | "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" \ |
| 790 | "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] | 791 | "10" "5" |
| 792 | done |
| 793 | done |
| 794 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 795 | ######### c_glib client - ruby server ############## |
| 796 | for proto in $(intersection "${c_glib_protocols}" "${ruby_protocols}"); do |
| 797 | for trans in $(intersection "${c_glib_transports}" "${ruby_transports}"); do |
| 798 | for sock in $(intersection "${c_glib_sockets}" "${ruby_sockets}"); do |
| 799 | case "$sock" in |
| 800 | "ip" ) extraparam="";; |
| 801 | "ip-ssl" ) extraparam="--ssl";; |
| 802 | esac |
| 803 | do_test "c_glib-ruby" "${proto}" "${trans}-${sock}" \ |
| 804 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 805 | "ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 806 | "2" "2" |
| 807 | done |
| 808 | done |
| 809 | done |
| 810 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 811 | ######### ruby client - nodejs server ############## |
| 812 | for proto in $(intersection "${ruby_protocols}" "${nodejs_protocols}"); do |
| 813 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 814 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 815 | case "$sock" in |
| 816 | "ip" ) extraparam="";; |
| 817 | "ip-ssl" ) extraparam="--ssl";; |
| 818 | esac |
| 819 | do_test "ruby-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 820 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 821 | "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] | 822 | "5" "2" |
| 823 | done |
| 824 | done |
| 825 | done |
| 826 | |
| 827 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 828 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 829 | case "$sock" in |
| 830 | "ip" ) extraparam="";; |
| 831 | "ip-ssl" ) extraparam="--ssl";; |
| 832 | esac |
| 833 | do_test "ruby-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 834 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 835 | "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] | 836 | "5" "2" |
| 837 | done |
| 838 | done |
| 839 | |
| 840 | ######### nodejs client - ruby server ############## |
| 841 | for proto in $(intersection "${ruby_protocols}" "${nodejs_protocols}"); do |
| 842 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 843 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 844 | case "$sock" in |
| 845 | "ip" ) extraparam="";; |
| 846 | "ip-ssl" ) extraparam="--ssl";; |
| 847 | esac |
| 848 | do_test "nodejs-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 849 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 850 | "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] | 851 | "10" "5" |
| 852 | done |
| 853 | done |
| 854 | done |
| 855 | |
| 856 | for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do |
| 857 | for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do |
| 858 | case "$sock" in |
| 859 | "ip" ) extraparam="";; |
| 860 | "ip-ssl" ) extraparam="--ssl";; |
| 861 | esac |
| 862 | do_test "nodejs-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 863 | "node ${NODE_TEST_DIR}/client.js -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 864 | "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] | 865 | "10" "2" |
| 866 | done |
| 867 | done |
| 868 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 869 | ######### py client - ruby server ############## |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 870 | for proto in $(intersection "${py_protocols}" "${ruby_protocols}"); do |
| 871 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 872 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 873 | case "$sock" in |
| 874 | "ip" ) extraparam="";; |
| 875 | "ip-ssl" ) extraparam="--ssl";; |
| 876 | esac |
| 877 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 878 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 879 | "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] | 880 | "15" "5" |
| 881 | done |
| 882 | done |
| 883 | done |
| 884 | |
| 885 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 886 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 887 | case "$sock" in |
| 888 | "ip" ) extraparam="";; |
| 889 | "ip-ssl" ) extraparam="--ssl";; |
| 890 | esac |
| 891 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 892 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 893 | "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] | 894 | "15" "5" |
| 895 | do_test "py-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 896 | "py/TestClient.py --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 897 | "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] | 898 | "15" "5" |
| 899 | done |
| 900 | done |
| 901 | |
| 902 | ######### ruby client - py server ############## |
| 903 | for proto in $(intersection "${py_protocols}" "${ruby_protocols}"); do |
| 904 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 905 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 906 | case "$sock" in |
| 907 | "ip" ) extraparam="";; |
| 908 | "ip-ssl" ) extraparam="--ssl";; |
| 909 | esac |
| 910 | do_test "ruby-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 911 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 912 | "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] | 913 | "5" "2" |
| 914 | done |
| 915 | done |
| 916 | done |
| 917 | |
| 918 | for trans in $(intersection "${py_transports}" "${ruby_transports}"); do |
| 919 | for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do |
| 920 | case "$sock" in |
| 921 | "ip" ) extraparam="";; |
| 922 | "ip-ssl" ) extraparam="--ssl";; |
| 923 | esac |
| 924 | do_test "ruby-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 925 | "ruby rb/integration/TestClient.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 926 | "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] | 927 | "5" "2" |
| 928 | do_test "ruby-py" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 929 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 930 | "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] | 931 | "5" "2" |
| 932 | done |
| 933 | done |
| 934 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 935 | ######### hs client - hs server ############### |
| 936 | for proto in $hs_protocols; do |
| 937 | for trans in $hs_transports; do |
| 938 | for sock in $hs_sockets; do |
| 939 | case "$sock" in |
| 940 | "ip" ) extraparam="";; |
| 941 | "ip-ssl" ) extraparam="--ssl";; |
| 942 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 943 | esac |
| 944 | do_test "hs-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 945 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 946 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 947 | "2" "0.1" |
| 948 | done |
| 949 | done |
| 950 | done |
| 951 | |
| 952 | ######### hs client - cpp server ############### |
| 953 | for proto in $(intersection "${hs_protocols}" "${cpp_protocols}"); do |
| 954 | for trans in $(intersection "${hs_transports}" "${cpp_transports}"); do |
| 955 | for sock in $(intersection "${hs_sockets}" "${cpp_sockets}"); do |
| 956 | case "$sock" in |
| 957 | "ip" ) extraparam="";; |
| 958 | "ip-ssl" ) extraparam="--ssl";; |
| 959 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 960 | esac |
| 961 | do_test "hs-cpp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 962 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 963 | "cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 964 | "2" "0.1" |
| 965 | done |
| 966 | done |
| 967 | done |
| 968 | |
| 969 | ######### cpp client - hs server ############### |
| 970 | for proto in $(intersection "${hs_protocols}" "${cpp_protocols}"); do |
| 971 | for trans in $(intersection "${hs_transports}" "${cpp_transports}"); do |
| 972 | for sock in $(intersection "${hs_sockets}" "${cpp_sockets}"); do |
| 973 | case "$sock" in |
| 974 | "ip" ) extraparam="";; |
| 975 | "ip-ssl" ) extraparam="--ssl";; |
| 976 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 977 | esac |
| 978 | do_test "cpp-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 979 | "cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 980 | "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] | 981 | "2" "0.1" |
| 982 | done |
| 983 | done |
| 984 | done |
| 985 | |
| 986 | ######### hs client - java server ############### |
| 987 | for proto in $(intersection "${hs_protocols}" "${java_protocols}"); do |
| 988 | for trans in $(intersection "${hs_transports}" "${java_transports}"); do |
| 989 | for sock in $(intersection "${hs_sockets}" "${java_sockets}"); do |
| 990 | case "$sock" in |
| 991 | "ip" ) extraparam="";; |
| 992 | "ip-ssl" ) extraparam="--ssl";; |
| 993 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 994 | esac |
| 995 | do_test "hs-java" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 996 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 997 | "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] | 998 | "5" "1" |
| 999 | done |
| 1000 | done |
| 1001 | done |
| 1002 | |
| 1003 | ######### java client - hs server ############### |
| 1004 | for proto in $(intersection "${hs_protocols}" "${java_protocols}"); do |
| 1005 | for trans in $(intersection "${hs_transports}" "${java_transports}"); do |
| 1006 | for sock in $(intersection "${hs_sockets}" "${java_sockets}"); do |
| 1007 | case "$sock" in |
| 1008 | "ip" ) extraparam="";; |
| 1009 | "ip-ssl" ) extraparam="--ssl";; |
| 1010 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1011 | esac |
| 1012 | do_test "java-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1013 | "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" \ |
| 1014 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1015 | "5" "1" |
| 1016 | done |
| 1017 | done |
| 1018 | done |
| 1019 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 1020 | ######### c_glib client - hs server ############### |
| 1021 | for proto in $(intersection "${c_glib_protocols}" "${hs_protocols}"); do |
| 1022 | for trans in $(intersection "${c_glib_transports}" "${hs_transports}"); do |
| 1023 | for sock in $(intersection "${c_glib_sockets}" "${hs_sockets}"); do |
| 1024 | case "$sock" in |
| 1025 | "ip" ) extraparam="";; |
| 1026 | "ip-ssl" ) extraparam="--ssl";; |
| 1027 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 1028 | esac |
| 1029 | do_test "c_glib-hs" "${proto}" "${trans}-${sock}" \ |
| 1030 | "c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1031 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1032 | "2" "0.1" |
| 1033 | done |
| 1034 | done |
| 1035 | done |
| 1036 | |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1037 | ######### py client -hs server ############## |
| 1038 | for proto in $(intersection "${hs_protocols}" "${py_protocols}"); do |
| 1039 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1040 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1041 | case "$sock" in |
| 1042 | "ip" ) extraparam="";; |
| 1043 | "ip-ssl" ) extraparam="--ssl";; |
| 1044 | esac |
| 1045 | do_test "py-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1046 | "py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1047 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1048 | "10" "2" |
| 1049 | done |
| 1050 | done |
| 1051 | done |
| 1052 | |
| 1053 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1054 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1055 | case "$sock" in |
| 1056 | "ip" ) extraparam="";; |
| 1057 | "ip-ssl" ) extraparam="--ssl";; |
| 1058 | esac |
| 1059 | do_test "py-hs" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1060 | "py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \ |
| 1061 | "hs/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1062 | "10" "2" |
| 1063 | done |
| 1064 | done |
| 1065 | |
| 1066 | ######### hs client - py server ############## |
| 1067 | for proto in $(intersection "${hs_protocols}" "${py_protocols}"); do |
| 1068 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1069 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1070 | case "$sock" in |
| 1071 | "ip" ) extraparam="";; |
| 1072 | "ip-ssl" ) extraparam="--ssl";; |
| 1073 | esac |
| 1074 | do_test "hs-py" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1075 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1076 | "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] | 1077 | "10" "2" |
| 1078 | done |
| 1079 | done |
| 1080 | done |
| 1081 | |
| 1082 | for trans in $(intersection "${hs_transports}" "${py_transports}"); do |
| 1083 | for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do |
| 1084 | case "$sock" in |
| 1085 | "ip" ) extraparam="";; |
| 1086 | "ip-ssl" ) extraparam="--ssl";; |
| 1087 | esac |
| 1088 | do_test "hs-py" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1089 | "hs/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1090 | "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] | 1091 | "10" "2" |
| 1092 | done |
| 1093 | done |
| 1094 | |
| 1095 | ######### nodejs client - hs server ############## |
| 1096 | for proto in $(intersection "${nodejs_protocols}" "${hs_protocols}"); do |
| 1097 | for trans in $(intersection "${nodejs_transports}" "${hs_transports}"); do |
| 1098 | for sock in $(intersection "${nodejs_sockets}" "${hs_sockets}"); do |
| 1099 | case "$sock" in |
| 1100 | "ip" ) extraparam="";; |
| 1101 | "ip-ssl" ) extraparam="--ssl";; |
| 1102 | esac |
| 1103 | do_test "nodejs-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1104 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1105 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1106 | "5" "0.2" |
| 1107 | done |
| 1108 | done |
| 1109 | done |
| 1110 | |
| 1111 | ######### hs client - nodejs server ############## |
| 1112 | for proto in $(intersection "${nodejs_protocols}" "${hs_protocols}"); do |
| 1113 | for trans in $(intersection "${nodejs_transports}" "${hs_transports}"); do |
| 1114 | for sock in $(intersection "${nodejs_sockets}" "${hs_sockets}"); do |
| 1115 | case "$sock" in |
| 1116 | "ip" ) extraparam="";; |
| 1117 | "ip-ssl" ) extraparam="--ssl";; |
| 1118 | esac |
| 1119 | do_test "hs-nodejs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1120 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1121 | "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] | 1122 | "5" "2" |
| 1123 | done |
| 1124 | done |
| 1125 | done |
| 1126 | |
| 1127 | ######### ruby client - hs server ############## |
| 1128 | for proto in $(intersection "${hs_protocols}" "${ruby_protocols}"); do |
| 1129 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1130 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1131 | case "$sock" in |
| 1132 | "ip" ) extraparam="";; |
| 1133 | "ip-ssl" ) extraparam="--ssl";; |
| 1134 | esac |
| 1135 | do_test "ruby-hs" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1136 | "ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1137 | "hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1138 | "5" "5" |
| 1139 | done |
| 1140 | done |
| 1141 | done |
| 1142 | |
| 1143 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1144 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1145 | case "$sock" in |
| 1146 | "ip" ) extraparam="";; |
| 1147 | "ip-ssl" ) extraparam="--ssl";; |
| 1148 | esac |
| 1149 | do_test "ruby-cpp" "accel-binary" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1150 | "ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam} ${extraparam}" \ |
| 1151 | "hs/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
cdwijayarathna | d921791 | 2014-08-15 22:18:30 +0530 | [diff] [blame] | 1152 | "5" "5" |
| 1153 | done |
| 1154 | done |
| 1155 | |
| 1156 | ######### hs client - ruby server ############## |
| 1157 | for proto in $(intersection "${hs_protocols}" "${ruby_protocols}"); do |
| 1158 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1159 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1160 | case "$sock" in |
| 1161 | "ip" ) extraparam="";; |
| 1162 | "ip-ssl" ) extraparam="--ssl";; |
| 1163 | esac |
| 1164 | do_test "hs-ruby" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1165 | "hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1166 | "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] | 1167 | "5" "5" |
| 1168 | done |
| 1169 | done |
| 1170 | done |
| 1171 | |
| 1172 | for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do |
| 1173 | for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do |
| 1174 | case "$sock" in |
| 1175 | "ip" ) extraparam="";; |
| 1176 | "ip-ssl" ) extraparam="--ssl";; |
| 1177 | esac |
| 1178 | do_test "hs-ruby" "binary-accel" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1179 | "hs/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1180 | "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] | 1181 | "5" "5" |
| 1182 | done |
| 1183 | done |
| 1184 | |
Roger Meier | a3570ac | 2014-06-10 22:16:14 +0200 | [diff] [blame] | 1185 | |
Roger Meier | 691ec00 | 2012-11-02 07:50:24 +0000 | [diff] [blame] | 1186 | # delete Unix Domain Socket used by cpp tests |
| 1187 | rm -f /tmp/ThriftTest.thrift |
| 1188 | |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 1189 | ######### csharp client - csharp server ############# |
| 1190 | export MONO_PATH=../lib/csharp |
| 1191 | for proto in $csharp_protocols; do |
| 1192 | for trans in $csharp_transports; do |
| 1193 | for sock in $csharp_sockets; do |
| 1194 | case "$sock" in |
| 1195 | "ip" ) extraparam="";; |
| 1196 | "ip-ssl" ) extraparam="--ssl";; |
| 1197 | esac |
| 1198 | do_test "csharp-csharp" "${proto}" "${trans}-${sock}" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1199 | "../lib/csharp/test/ThriftTest/TestClientServer.exe client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \ |
| 1200 | "../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] | 1201 | "5" "1" |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 1202 | done |
| 1203 | done |
| 1204 | done |
| 1205 | |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1206 | do_test "js-java" "json" "http-ip" \ |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 1207 | "" \ |
| 1208 | "ant -f ../lib/js/test/build.xml unittest" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 1209 | "2" "2" |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 1210 | do_test "perl-cpp" "binary" "buffered-ip" \ |
Roger Meier | 01b568c | 2012-01-10 21:30:02 +0000 | [diff] [blame] | 1211 | "perl -I perl/gen-perl/ -I../lib/perl/lib/ perl/TestClient.pl" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1212 | "cpp/TestServer --port=${THRIFT_TEST_PORT}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 1213 | "10" "2" |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 1214 | do_test "php-cpp" "binary" "buffered-ip" \ |
| 1215 | "make -C php/ client" \ |
cdwijayarathna | 9ea3d2e | 2014-08-16 17:28:40 +0530 | [diff] [blame] | 1216 | "cpp/TestServer --port=${THRIFT_TEST_PORT}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 1217 | "10" "2" |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1218 | |
| 1219 | echo " failed tests are logged to test/log/error.log" |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 1220 | echo " full log is here test/log/client_server_protocol_transport_client.log" |
| 1221 | echo " full log is here test/log/client_server_protocol_transport_server.log" |
| 1222 | echo " or look at file://$BASEDIR/$STATUS_HTML" |
| 1223 | |
henrique | ad4df16 | 2014-05-20 13:18:45 +0200 | [diff] [blame] | 1224 | ELAPSED_TIME=$(echo "(${SECONDS} - ${START_TIME})" | bc) |
| 1225 | DURATION="${ELAPSED_TIME} seconds" |
Roger Meier | bea2734 | 2014-08-08 00:30:50 +0200 | [diff] [blame] | 1226 | |
| 1227 | echo $FAILED failed of $TESTCOUNT tests in total |
Roger Meier | cc0fe27 | 2014-05-16 23:18:25 +0200 | [diff] [blame] | 1228 | echo "test an took" $DURATION |
| 1229 | print_html_footer "$DURATION" |
| 1230 | |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 1231 | date |
Roger Meier | 8252577 | 2012-11-16 00:38:27 +0000 | [diff] [blame] | 1232 | cd - |