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 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 29 | cd "$( dirname "$0" )" |
| 30 | BASEDIR=$(pwd) |
| 31 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 32 | print_header() { |
| 33 | printf "%-16s %-11s %-17s %-s\n" "client-server:" "protocol:" "transport:" "result:" |
| 34 | } |
| 35 | |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 36 | intersection() { |
| 37 | return_value="" |
| 38 | for one in $1; do |
| 39 | for two in $2; do |
| 40 | if [ ${one} = ${two} ]; then |
| 41 | return_value=${return_value}" "${one} |
| 42 | fi |
| 43 | done; |
| 44 | done; |
| 45 | echo ${return_value}; |
| 46 | } |
| 47 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 48 | do_test () { |
| 49 | client_server=$1 |
| 50 | protocol=$2 |
| 51 | transport=$3 |
| 52 | client_exec=$4 |
| 53 | server_exec=$5 |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 54 | client_timeout=$6 |
| 55 | server_startup_time=$7 |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 56 | |
| 57 | testname=${client_server}_${protocol}_${transport} |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 58 | server_timeout=$(echo "(${server_startup_time}+${client_timeout})" | bc) |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 59 | printf "%-16s %-11s %-17s" ${client_server} ${protocol} ${transport} |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 60 | |
Roger Meier | 284101c | 2014-03-11 21:20:35 +0100 | [diff] [blame] | 61 | timeout $server_timeout $server_exec > log/${testname}_server.log 2>&1 & |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 62 | server_pid=$! |
| 63 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 64 | sleep $server_startup_time |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 65 | timeout $client_timeout $client_exec > log/${testname}_client.log 2>&1 |
Ben Craig | f41d79d | 2014-01-08 15:15:48 -0600 | [diff] [blame] | 66 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 67 | if [ "$?" -eq "0" ]; then |
| 68 | echo " success" |
| 69 | else |
| 70 | echo " failure" |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 71 | # add details to the error.log |
| 72 | print_header >> log/error.log |
| 73 | printf "%-16s %-11s %-17s\n" ${client_server} ${protocol} ${transport} >> log/error.log |
| 74 | echo "=================== server message ===================" >> log/error.log |
| 75 | tail log/${testname}_server.log >> log/error.log |
| 76 | echo "=================== client message ===================" >> log/error.log |
| 77 | tail log/${testname}_client.log >> log/error.log |
| 78 | echo "======================================================" >> log/error.log |
| 79 | echo "" >> log/error.log |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 80 | fi |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 81 | |
| 82 | # silently kill server |
| 83 | kill ${server_pid} 2>/dev/null && wait ${server_pid} 2>/dev/null |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | echo "Apache Thrift - integration test suite" |
| 87 | date |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 88 | |
| 89 | ant -f ../lib/java/build.xml compile-test 1>/dev/null |
| 90 | |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 91 | echo "======================================================" |
| 92 | |
| 93 | rm -rf log |
| 94 | mkdir -p log |
| 95 | |
| 96 | print_header |
| 97 | |
Roger Meier | 8252577 | 2012-11-16 00:38:27 +0000 | [diff] [blame] | 98 | #TODO add enum for parameters |
| 99 | #TODO align program arguments across languages |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 100 | |
Roger Meier | 023192f | 2014-02-12 09:35:12 +0100 | [diff] [blame] | 101 | cpp_protocols="binary compact json" |
| 102 | java_protocols="binary compact json" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 103 | cpp_transports="buffered framed http" |
| 104 | java_server_transports="buffered framed fastframed" |
| 105 | java_client_transports=${java_server_transports}" http" |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 106 | # we need a test certificate first |
Roger Meier | 5829a2c | 2014-04-08 00:28:17 +0200 | [diff] [blame] | 107 | cpp_sockets="ip domain ip-ssl" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 108 | java_sockets="ip ip-ssl" |
| 109 | # TODO fastframed java transport is another implementation of framed transport |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 110 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 111 | nodejs_protocols="binary json" |
| 112 | nodejs_transports="buffered framed" |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 113 | nodejs_sockets="ip ip-ssl" |
Roger Meier | eaa61d8 | 2012-01-12 21:38:29 +0000 | [diff] [blame] | 114 | |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 115 | csharp_protocols="binary compact json" |
| 116 | csharp_transports="buffered framed" |
| 117 | csharp_sockets="ip ip-ssl" |
| 118 | |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 119 | |
| 120 | ######### java client - java server ############# |
| 121 | for proto in $java_protocols; do |
| 122 | for trans in $java_server_transports; do |
| 123 | for sock in $java_sockets; do |
| 124 | case "$sock" in |
| 125 | "ip" ) extraparam="";; |
| 126 | "ip-ssl" ) extraparam="--ssl";; |
| 127 | esac |
| 128 | do_test "java-java" "${proto}" "${trans}-${sock}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 129 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testclient" \ |
| 130 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testserver" \ |
| 131 | "5" "1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 132 | done |
| 133 | done |
| 134 | done |
| 135 | |
| 136 | ######### cpp client - cpp server ############### |
| 137 | for proto in $cpp_protocols; do |
| 138 | for trans in $cpp_transports; do |
| 139 | for sock in $cpp_sockets; do |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 140 | case "$sock" in |
| 141 | "ip" ) extraparam="";; |
| 142 | "ip-ssl" ) extraparam="--ssl";; |
| 143 | "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";; |
| 144 | esac |
| 145 | do_test "cpp-cpp" "${proto}" "${trans}-${sock}" \ |
| 146 | "cpp/TestClient --protocol=${proto} --transport=${trans} ${extraparam}" \ |
| 147 | "cpp/TestServer --protocol=${proto} --transport=${trans} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 148 | "2" "0.1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 149 | done |
| 150 | done |
| 151 | done |
| 152 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 153 | |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 154 | ######### java client - cpp server ############## |
| 155 | # warning: ssl over http is not supported in java client! |
| 156 | for proto in $(intersection "${java_protocols}" "${cpp_protocols}"); do |
| 157 | for trans in $(intersection "${java_client_transports}" "${cpp_transports}"); do |
| 158 | for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do |
| 159 | case "$sock" in |
| 160 | "ip" ) extraparam="";; |
| 161 | "ip-ssl" ) extraparam="--ssl";; |
| 162 | esac |
Roger Meier | 188024e | 2014-04-17 21:53:45 +0200 | [diff] [blame] | 163 | do_test "java-cpp" "${proto}" "${trans}-${sock}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 164 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testclient" \ |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 165 | "cpp/TestServer --protocol=${proto} --transport=${trans} ${extraparam}"\ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 166 | "5" "0.1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 167 | done |
| 168 | done |
| 169 | done |
| 170 | |
| 171 | ######### cpp client - java server ############## |
| 172 | for proto in $(intersection "${cpp_protocols}" "${java_protocols}"); do |
| 173 | for trans in $(intersection "${cpp_transports}" "${java_server_transports}"); do |
| 174 | for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do |
| 175 | case "$sock" in |
| 176 | "ip" ) extraparam="";; |
| 177 | "ip-ssl" ) extraparam="--ssl";; |
| 178 | esac |
Roger Meier | 188024e | 2014-04-17 21:53:45 +0200 | [diff] [blame] | 179 | do_test "cpp-java" "${proto}" "${trans}-${sock}" \ |
| 180 | "cpp/TestClient --protocol=${proto} --transport=${trans} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 181 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testserver" \ |
| 182 | "5" "1" |
Roger Meier | f42ce2a | 2013-01-16 22:12:14 +0100 | [diff] [blame] | 183 | done |
| 184 | done |
| 185 | done |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 186 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 187 | |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 188 | NODE_TEST_DIR=${BASEDIR}/../lib/nodejs/test |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 189 | export NODE_PATH=${NODE_TEST_DIR}:${NODE_TEST_DIR}/../lib:${NODE_PATH} |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 190 | |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 191 | ######### nodejs client - cpp server ############## |
| 192 | ## |
| 193 | for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do |
| 194 | for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do |
| 195 | for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 196 | case "$sock" in |
| 197 | "ip" ) extraparam="";; |
| 198 | "ip-ssl" ) extraparam="--ssl";; |
| 199 | esac |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 200 | do_test "nodejs-cpp" "${proto}" "${trans}-${sock}" \ |
| 201 | "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} ${extraparam}" \ |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 202 | "cpp/TestServer --protocol=${proto} --transport=${trans} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 203 | "5" "0.2" |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 204 | done |
| 205 | done |
| 206 | done |
| 207 | |
| 208 | ######### cpp client - nodejs server ############## |
| 209 | for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do |
| 210 | for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do |
| 211 | for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 212 | case "$sock" in |
| 213 | "ip" ) extraparam="";; |
| 214 | "ip-ssl" ) extraparam="--ssl";; |
| 215 | esac |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 216 | do_test "cpp-nodejs" "${proto}" "${trans}-${sock}" \ |
Roger Meier | 57b354b | 2014-02-22 01:01:58 +0100 | [diff] [blame] | 217 | "cpp/TestClient --protocol=${proto} --transport=${trans} ${extraparam}" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 218 | "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 219 | "5" "2" |
Roger Meier | 8909cbd | 2014-01-26 11:44:27 +0100 | [diff] [blame] | 220 | done |
| 221 | done |
| 222 | done |
| 223 | |
Roger Meier | 691ec00 | 2012-11-02 07:50:24 +0000 | [diff] [blame] | 224 | # delete Unix Domain Socket used by cpp tests |
| 225 | rm -f /tmp/ThriftTest.thrift |
| 226 | |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 227 | ######### csharp client - csharp server ############# |
| 228 | export MONO_PATH=../lib/csharp |
| 229 | for proto in $csharp_protocols; do |
| 230 | for trans in $csharp_transports; do |
| 231 | for sock in $csharp_sockets; do |
| 232 | case "$sock" in |
| 233 | "ip" ) extraparam="";; |
| 234 | "ip-ssl" ) extraparam="--ssl";; |
| 235 | esac |
| 236 | do_test "csharp-csharp" "${proto}" "${trans}-${sock}" \ |
| 237 | "../lib/csharp/test/ThriftTest/TestClientServer.exe client --protocol=${proto} --transport=${trans} ${extraparam}" \ |
| 238 | "../lib/csharp/test/ThriftTest/TestClientServer.exe server --protocol=${proto} --transport=${trans} ${extraparam}" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 239 | "5" "1" |
Jens Geyer | c1d7943 | 2014-04-22 22:52:43 +0200 | [diff] [blame] | 240 | done |
| 241 | done |
| 242 | done |
| 243 | |
| 244 | |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 245 | do_test "py-py" "binary" "buffered-ip" \ |
| 246 | "py/TestClient.py --proto=binary --port=9090 --host=localhost --genpydir=py/gen-py" \ |
| 247 | "py/TestServer.py --proto=binary --port=9090 --genpydir=py/gen-py TSimpleServer" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 248 | "10" "2" |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 249 | do_test "py-py" "json" "buffered-ip" \ |
| 250 | "py/TestClient.py --proto=json --port=9090 --host=localhost --genpydir=py/gen-py" \ |
| 251 | "py/TestServer.py --proto=json --port=9090 --genpydir=py/gen-py TSimpleServer" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 252 | "10" "2" |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 253 | do_test "py-cpp" "binary" "buffered-ip" \ |
| 254 | "py/TestClient.py --proto=binary --port=9090 --host=localhost --genpydir=py/gen-py" \ |
| 255 | "cpp/TestServer" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 256 | "10" "2" |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 257 | do_test "py-cpp" "json" "buffered-ip" \ |
| 258 | "py/TestClient.py --proto=json --port=9090 --host=localhost --genpydir=py/gen-py" \ |
| 259 | "cpp/TestServer --protocol=json" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 260 | "10" "2" |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 261 | do_test "cpp-py" "binary" "buffered-ip" \ |
| 262 | "cpp/TestClient --protocol=binary --port=9090" \ |
| 263 | "py/TestServer.py --proto=binary --port=9090 --genpydir=py/gen-py TSimpleServer" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 264 | "10" "2" |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 265 | do_test "cpp-py" "json" "buffered-ip" \ |
| 266 | "cpp/TestClient --protocol=json --port=9090" \ |
| 267 | "py/TestServer.py --proto=json --port=9090 --genpydir=py/gen-py TSimpleServer" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 268 | "10" "2" |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 269 | do_test "py-java" "binary" "buffered-ip" \ |
| 270 | "py/TestClient.py --proto=binary --port=9090 --host=localhost --genpydir=py/gen-py" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 271 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" run-testserver" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 272 | "15" "2" |
Roger Meier | 7a66f75 | 2014-03-10 12:35:41 +0100 | [diff] [blame] | 273 | do_test "py-java" "json" "buffered-ip" \ |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 274 | "py/TestClient.py --proto=json --port=9090 --host=localhost --genpydir=py/gen-py" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 275 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=json\" run-testserver" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 276 | "15" "2" |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 277 | do_test "java-py" "binary" "buffered-ip" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 278 | "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" run-testclient" \ |
Roger Meier | 85fb6de | 2012-11-02 00:05:42 +0000 | [diff] [blame] | 279 | "py/TestServer.py --proto=binary --port=9090 --genpydir=py/gen-py TSimpleServer" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 280 | "10" "5" |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 281 | do_test "js-java" "json" "http-ip" \ |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 282 | "" \ |
| 283 | "ant -f ../lib/js/test/build.xml unittest" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 284 | "2" "2" |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 285 | do_test "perl-cpp" "binary" "buffered-ip" \ |
Roger Meier | 01b568c | 2012-01-10 21:30:02 +0000 | [diff] [blame] | 286 | "perl -I perl/gen-perl/ -I../lib/perl/lib/ perl/TestClient.pl" \ |
Roger Meier | 4d5157d | 2012-01-09 21:23:19 +0000 | [diff] [blame] | 287 | "cpp/TestServer" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 288 | "10" "2" |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 289 | do_test "php-cpp" "binary" "buffered-ip" \ |
| 290 | "make -C php/ client" \ |
| 291 | "cpp/TestServer" \ |
henrique | d5aba4c | 2014-04-30 18:11:11 +0200 | [diff] [blame] | 292 | "10" "2" |
Roger Meier | c95d5df | 2014-01-19 21:53:02 +0100 | [diff] [blame] | 293 | do_test "rb-rb" "binary" "buffered-ip" \ |
| 294 | "ruby rb/integration/simple_client.rb" \ |
| 295 | "ruby rb/integration/simple_server.rb" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 296 | "5" "5" |
Roger Meier | 9aa08a9 | 2014-01-20 18:41:48 +0100 | [diff] [blame] | 297 | do_test "rb-rb" "binary-accl" "buffered-ip" \ |
Roger Meier | c95d5df | 2014-01-19 21:53:02 +0100 | [diff] [blame] | 298 | "ruby rb/integration/accelerated_buffered_client.rb" \ |
| 299 | "ruby rb/integration/accelerated_buffered_server.rb" \ |
henrique | d17f1c9 | 2014-04-30 16:21:25 +0200 | [diff] [blame] | 300 | "5" "5" |
Roger Meier | 4edac7f | 2014-05-02 21:07:01 +0200 | [diff] [blame] | 301 | |
| 302 | echo " failed tests are logged to test/log/error.log" |
| 303 | echo " full log is here test/log/client_server_protocol_transport.log" |
| 304 | date |
Roger Meier | 8252577 | 2012-11-16 00:38:27 +0000 | [diff] [blame] | 305 | cd - |