blob: f193133d3ae4236969f747fb2106f6532a7d37a9 [file] [log] [blame]
Roger Meier4d5157d2012-01-09 21:23:19 +00001#!/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 Meiercc0fe272014-05-16 23:18:25 +020029START_TIME=$SECONDS
henriqued17f1c92014-04-30 16:21:25 +020030cd "$( dirname "$0" )"
31BASEDIR=$(pwd)
32
Roger Meier4d5157d2012-01-09 21:23:19 +000033print_header() {
34 printf "%-16s %-11s %-17s %-s\n" "client-server:" "protocol:" "transport:" "result:"
35}
36
Roger Meiercc0fe272014-05-16 23:18:25 +020037STATUS_HTML="status.html"
38
39print_html_header() {
40cat << EOF > $STATUS_HTML
41<!DOCTYPE HTML>
42<html>
43<head>
44<meta charset="utf-8">
45<title>Apache Thrift - integration test suite</title>
46<link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.0/css/jquery.dataTables.css">
47<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
48<script type="text/javascript" charset="utf-8" src="http://cdn.datatables.net/1.10.0/js/jquery.dataTables.js"></script>
49<script>
50 var test_data;
51 \$(document).ready( function () {
52 testTable = \$('#test_results').DataTable( {
53 data: test_data
54 });
55 \$('#test_results_filter label input')
56 .focus()
57 .val('failure');
58 });
59</script>
60</head>
61<body>
62<h2>Apache Thrift - integration test suite: Results</h2>
63<table id="test_results" class="display">
64 <thead>
65 <tr>
66 <th>Server</th>
67 <th>Client</th>
68 <th>Protocol</th>
69 <th>Transport</th>
70 <th>Result (log)</th>
71 </tr>
72 </thead>
73</table>
74<script>
75test_data = [
76EOF
77}
78
79print_html_footer() {
80duration=$1
81cat << EOF >> $STATUS_HTML
82]
83</script>
84<h2>Test Information</h2>
85<pre>
86Test Date: `date --iso-8601=seconds`
87Revision: `git rev-parse --short HEAD`
88OS: `uname -a`
89Test duration: $duration
90</pre>
91</body>
92</html>
93EOF
94}
95
Roger Meierf42ce2a2013-01-16 22:12:14 +010096intersection() {
97 return_value=""
98 for one in $1; do
99 for two in $2; do
100 if [ ${one} = ${two} ]; then
101 return_value=${return_value}" "${one}
102 fi
103 done;
104 done;
105 echo ${return_value};
106}
107
Roger Meier4d5157d2012-01-09 21:23:19 +0000108do_test () {
109 client_server=$1
110 protocol=$2
111 transport=$3
112 client_exec=$4
113 server_exec=$5
henriqued17f1c92014-04-30 16:21:25 +0200114 client_timeout=$6
115 server_startup_time=$7
Roger Meier4d5157d2012-01-09 21:23:19 +0000116
117 testname=${client_server}_${protocol}_${transport}
henriqued5aba4c2014-04-30 18:11:11 +0200118 server_timeout=$(echo "(${server_startup_time}+${client_timeout})" | bc)
Roger Meier4d5157d2012-01-09 21:23:19 +0000119 printf "%-16s %-11s %-17s" ${client_server} ${protocol} ${transport}
henriqued17f1c92014-04-30 16:21:25 +0200120
Roger Meier284101c2014-03-11 21:20:35 +0100121 timeout $server_timeout $server_exec > log/${testname}_server.log 2>&1 &
henriqued17f1c92014-04-30 16:21:25 +0200122 server_pid=$!
123
Roger Meier4d5157d2012-01-09 21:23:19 +0000124 sleep $server_startup_time
henriqued17f1c92014-04-30 16:21:25 +0200125 timeout $client_timeout $client_exec > log/${testname}_client.log 2>&1
Ben Craigf41d79d2014-01-08 15:15:48 -0600126
Roger Meier4d5157d2012-01-09 21:23:19 +0000127 if [ "$?" -eq "0" ]; then
Roger Meiercc0fe272014-05-16 23:18:25 +0200128 result="success($?)"
129 echo " $result"
Roger Meier4d5157d2012-01-09 21:23:19 +0000130 else
Roger Meiercc0fe272014-05-16 23:18:25 +0200131 result="failure($?)"
132 echo " $result"
Roger Meier4edac7f2014-05-02 21:07:01 +0200133 # add details to the error.log
134 print_header >> log/error.log
135 printf "%-16s %-11s %-17s\n" ${client_server} ${protocol} ${transport} >> log/error.log
136 echo "=================== server message ===================" >> log/error.log
137 tail log/${testname}_server.log >> log/error.log
138 echo "=================== client message ===================" >> log/error.log
139 tail log/${testname}_client.log >> log/error.log
140 echo "======================================================" >> log/error.log
141 echo "" >> log/error.log
Roger Meier4d5157d2012-01-09 21:23:19 +0000142 fi
henriqued17f1c92014-04-30 16:21:25 +0200143
henriquead4df162014-05-20 13:18:45 +0200144 # split client-server string
145 client=${client_server%-*}
146 server=${client_server#*-}
Roger Meiercc0fe272014-05-16 23:18:25 +0200147
148 cat << EOF >> $STATUS_HTML
149 [
Roger Meiercc0fe272014-05-16 23:18:25 +0200150 "${server}",
Roger Meierc62798b2014-05-23 12:54:08 +0200151 "${client}",
Roger Meiercc0fe272014-05-16 23:18:25 +0200152 "${protocol}",
153 "${transport}",
154 "${result} (<a href=\"log/${testname}_client.log\">client</a>, <a href=\"log/${testname}_server.log\">server</a>)"
155 ],
156EOF
157
henriqued17f1c92014-04-30 16:21:25 +0200158 # silently kill server
159 kill ${server_pid} 2>/dev/null && wait ${server_pid} 2>/dev/null
Roger Meier4d5157d2012-01-09 21:23:19 +0000160}
161
162echo "Apache Thrift - integration test suite"
163date
henriqued17f1c92014-04-30 16:21:25 +0200164
henriqued17f1c92014-04-30 16:21:25 +0200165
Roger Meier4d5157d2012-01-09 21:23:19 +0000166echo "======================================================"
167
168rm -rf log
169mkdir -p log
170
Roger Meiercc0fe272014-05-16 23:18:25 +0200171
Roger Meier4d5157d2012-01-09 21:23:19 +0000172print_header
Roger Meiercc0fe272014-05-16 23:18:25 +0200173print_html_header
174
175ant -f ../lib/java/build.xml compile-test 1>/dev/null
176
Roger Meier4d5157d2012-01-09 21:23:19 +0000177
Roger Meier82525772012-11-16 00:38:27 +0000178#TODO add enum for parameters
179#TODO align program arguments across languages
Roger Meier4d5157d2012-01-09 21:23:19 +0000180
Roger Meier023192f2014-02-12 09:35:12 +0100181cpp_protocols="binary compact json"
182java_protocols="binary compact json"
Roger Meierf42ce2a2013-01-16 22:12:14 +0100183cpp_transports="buffered framed http"
184java_server_transports="buffered framed fastframed"
185java_client_transports=${java_server_transports}" http"
Roger Meier4d5157d2012-01-09 21:23:19 +0000186# we need a test certificate first
Roger Meier5829a2c2014-04-08 00:28:17 +0200187cpp_sockets="ip domain ip-ssl"
Roger Meierf42ce2a2013-01-16 22:12:14 +0100188java_sockets="ip ip-ssl"
189# TODO fastframed java transport is another implementation of framed transport
Roger Meier4d5157d2012-01-09 21:23:19 +0000190
Roger Meierd9b331d2014-05-25 22:59:17 +0200191nodejs_protocols="binary compact json"
Roger Meier8909cbd2014-01-26 11:44:27 +0100192nodejs_transports="buffered framed"
Roger Meier57b354b2014-02-22 01:01:58 +0100193nodejs_sockets="ip ip-ssl"
Roger Meiereaa61d82012-01-12 21:38:29 +0000194
Jens Geyerc1d79432014-04-22 22:52:43 +0200195csharp_protocols="binary compact json"
196csharp_transports="buffered framed"
197csharp_sockets="ip ip-ssl"
198
Roger Meierf42ce2a2013-01-16 22:12:14 +0100199
200######### java client - java server #############
201for proto in $java_protocols; do
202 for trans in $java_server_transports; do
203 for sock in $java_sockets; do
204 case "$sock" in
205 "ip" ) extraparam="";;
206 "ip-ssl" ) extraparam="--ssl";;
207 esac
208 do_test "java-java" "${proto}" "${trans}-${sock}" \
henriqued5aba4c2014-04-30 18:11:11 +0200209 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testclient" \
210 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testserver" \
211 "5" "1"
Roger Meierf42ce2a2013-01-16 22:12:14 +0100212 done
213 done
214done
215
216######### cpp client - cpp server ###############
217for proto in $cpp_protocols; do
218 for trans in $cpp_transports; do
219 for sock in $cpp_sockets; do
Roger Meier4d5157d2012-01-09 21:23:19 +0000220 case "$sock" in
221 "ip" ) extraparam="";;
222 "ip-ssl" ) extraparam="--ssl";;
223 "domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
224 esac
225 do_test "cpp-cpp" "${proto}" "${trans}-${sock}" \
226 "cpp/TestClient --protocol=${proto} --transport=${trans} ${extraparam}" \
227 "cpp/TestServer --protocol=${proto} --transport=${trans} ${extraparam}" \
henriqued5aba4c2014-04-30 18:11:11 +0200228 "2" "0.1"
Roger Meierf42ce2a2013-01-16 22:12:14 +0100229 done
230 done
231done
232
henriqued17f1c92014-04-30 16:21:25 +0200233
Roger Meierf42ce2a2013-01-16 22:12:14 +0100234######### java client - cpp server ##############
235# warning: ssl over http is not supported in java client!
236for proto in $(intersection "${java_protocols}" "${cpp_protocols}"); do
237 for trans in $(intersection "${java_client_transports}" "${cpp_transports}"); do
238 for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do
239 case "$sock" in
240 "ip" ) extraparam="";;
241 "ip-ssl" ) extraparam="--ssl";;
242 esac
Roger Meier188024e2014-04-17 21:53:45 +0200243 do_test "java-cpp" "${proto}" "${trans}-${sock}" \
henriqued5aba4c2014-04-30 18:11:11 +0200244 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testclient" \
Roger Meierf42ce2a2013-01-16 22:12:14 +0100245 "cpp/TestServer --protocol=${proto} --transport=${trans} ${extraparam}"\
henriqued5aba4c2014-04-30 18:11:11 +0200246 "5" "0.1"
Roger Meierf42ce2a2013-01-16 22:12:14 +0100247 done
248 done
249done
250
251######### cpp client - java server ##############
252for proto in $(intersection "${cpp_protocols}" "${java_protocols}"); do
253 for trans in $(intersection "${cpp_transports}" "${java_server_transports}"); do
254 for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do
255 case "$sock" in
256 "ip" ) extraparam="";;
257 "ip-ssl" ) extraparam="--ssl";;
258 esac
Roger Meier188024e2014-04-17 21:53:45 +0200259 do_test "cpp-java" "${proto}" "${trans}-${sock}" \
260 "cpp/TestClient --protocol=${proto} --transport=${trans} ${extraparam}" \
henriqued5aba4c2014-04-30 18:11:11 +0200261 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testserver" \
262 "5" "1"
Roger Meierf42ce2a2013-01-16 22:12:14 +0100263 done
264 done
265done
Roger Meier4d5157d2012-01-09 21:23:19 +0000266
Roger Meier8909cbd2014-01-26 11:44:27 +0100267
henriqued17f1c92014-04-30 16:21:25 +0200268NODE_TEST_DIR=${BASEDIR}/../lib/nodejs/test
Roger Meier8909cbd2014-01-26 11:44:27 +0100269export NODE_PATH=${NODE_TEST_DIR}:${NODE_TEST_DIR}/../lib:${NODE_PATH}
Roger Meierd9b331d2014-05-25 22:59:17 +0200270######### nodejs client - nodejs server ##############
271##
272for proto in ${nodejs_protocols}; do
273 for trans in ${nodejs_transports}; do
274 for sock in ${nodejs_sockets}; do
275 case "$sock" in
276 "ip" ) extraparam="";;
277 "ip-ssl" ) extraparam="--ssl";;
278 esac
279 do_test "nodejs-nodejs" "${proto}" "${trans}-${sock}" \
280 "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} ${extraparam}" \
281 "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} ${extraparam}" \
282 "5" "0.2"
283 done
284 done
285done
henriqued5aba4c2014-04-30 18:11:11 +0200286
Roger Meier8909cbd2014-01-26 11:44:27 +0100287######### nodejs client - cpp server ##############
288##
289for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do
290 for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do
291 for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do
Roger Meier57b354b2014-02-22 01:01:58 +0100292 case "$sock" in
293 "ip" ) extraparam="";;
294 "ip-ssl" ) extraparam="--ssl";;
295 esac
henriqued17f1c92014-04-30 16:21:25 +0200296 do_test "nodejs-cpp" "${proto}" "${trans}-${sock}" \
297 "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} ${extraparam}" \
Roger Meier8909cbd2014-01-26 11:44:27 +0100298 "cpp/TestServer --protocol=${proto} --transport=${trans} ${extraparam}" \
henriqued5aba4c2014-04-30 18:11:11 +0200299 "5" "0.2"
Roger Meier8909cbd2014-01-26 11:44:27 +0100300 done
301 done
302done
303
304######### cpp client - nodejs server ##############
305for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do
306 for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do
307 for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do
Roger Meier57b354b2014-02-22 01:01:58 +0100308 case "$sock" in
309 "ip" ) extraparam="";;
310 "ip-ssl" ) extraparam="--ssl";;
311 esac
henriqued17f1c92014-04-30 16:21:25 +0200312 do_test "cpp-nodejs" "${proto}" "${trans}-${sock}" \
Roger Meier57b354b2014-02-22 01:01:58 +0100313 "cpp/TestClient --protocol=${proto} --transport=${trans} ${extraparam}" \
henriqued17f1c92014-04-30 16:21:25 +0200314 "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} ${extraparam}" \
henriqued5aba4c2014-04-30 18:11:11 +0200315 "5" "2"
Roger Meier8909cbd2014-01-26 11:44:27 +0100316 done
317 done
318done
319
Roger Meier5c6ad242014-05-27 21:18:00 +0200320######### nodejs client - java server ##############
321##
322for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do
323 for trans in $(intersection "${nodejs_transports}" "${java_server_transports}"); do
324 for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do
325 case "$sock" in
326 "ip" ) extraparam="";;
327 "ip-ssl" ) extraparam="--ssl";;
328 esac
329 do_test "nodejs-java" "${proto}" "${trans}-${sock}" \
330 "node ${NODE_TEST_DIR}/client.js -p ${proto} -t ${trans} ${extraparam}" \
331 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testserver" \
332 "5" "1"
333 done
334 done
335done
336
337######### java client - nodejs server ##############
338for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do
339 for trans in $(intersection "${nodejs_transports}" "${java_client_transports}"); do
340 for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do
341 case "$sock" in
342 "ip" ) extraparam="";;
343 "ip-ssl" ) extraparam="--ssl";;
344 esac
345 do_test "java-nodejs" "${proto}" "${trans}-${sock}" \
346 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} ${extraparam}\" run-testclient" \
347 "node ${NODE_TEST_DIR}/server.js -p ${proto} -t ${trans} ${extraparam}" \
348 "5" "2"
349 done
350 done
351done
352
Roger Meier691ec002012-11-02 07:50:24 +0000353# delete Unix Domain Socket used by cpp tests
354rm -f /tmp/ThriftTest.thrift
355
Jens Geyerc1d79432014-04-22 22:52:43 +0200356######### csharp client - csharp server #############
357export MONO_PATH=../lib/csharp
358for proto in $csharp_protocols; do
359 for trans in $csharp_transports; do
360 for sock in $csharp_sockets; do
361 case "$sock" in
362 "ip" ) extraparam="";;
363 "ip-ssl" ) extraparam="--ssl";;
364 esac
365 do_test "csharp-csharp" "${proto}" "${trans}-${sock}" \
366 "../lib/csharp/test/ThriftTest/TestClientServer.exe client --protocol=${proto} --transport=${trans} ${extraparam}" \
367 "../lib/csharp/test/ThriftTest/TestClientServer.exe server --protocol=${proto} --transport=${trans} ${extraparam}" \
henriqued5aba4c2014-04-30 18:11:11 +0200368 "5" "1"
Jens Geyerc1d79432014-04-22 22:52:43 +0200369 done
370 done
371done
372
373
Roger Meier85fb6de2012-11-02 00:05:42 +0000374do_test "py-py" "binary" "buffered-ip" \
375 "py/TestClient.py --proto=binary --port=9090 --host=localhost --genpydir=py/gen-py" \
376 "py/TestServer.py --proto=binary --port=9090 --genpydir=py/gen-py TSimpleServer" \
henriqued5aba4c2014-04-30 18:11:11 +0200377 "10" "2"
Roger Meier85fb6de2012-11-02 00:05:42 +0000378do_test "py-py" "json" "buffered-ip" \
379 "py/TestClient.py --proto=json --port=9090 --host=localhost --genpydir=py/gen-py" \
380 "py/TestServer.py --proto=json --port=9090 --genpydir=py/gen-py TSimpleServer" \
henriqued5aba4c2014-04-30 18:11:11 +0200381 "10" "2"
Roger Meier85fb6de2012-11-02 00:05:42 +0000382do_test "py-cpp" "binary" "buffered-ip" \
383 "py/TestClient.py --proto=binary --port=9090 --host=localhost --genpydir=py/gen-py" \
384 "cpp/TestServer" \
henriqued5aba4c2014-04-30 18:11:11 +0200385 "10" "2"
Roger Meier85fb6de2012-11-02 00:05:42 +0000386do_test "py-cpp" "json" "buffered-ip" \
387 "py/TestClient.py --proto=json --port=9090 --host=localhost --genpydir=py/gen-py" \
388 "cpp/TestServer --protocol=json" \
henriqued5aba4c2014-04-30 18:11:11 +0200389 "10" "2"
Roger Meier85fb6de2012-11-02 00:05:42 +0000390do_test "cpp-py" "binary" "buffered-ip" \
391 "cpp/TestClient --protocol=binary --port=9090" \
392 "py/TestServer.py --proto=binary --port=9090 --genpydir=py/gen-py TSimpleServer" \
henriqued5aba4c2014-04-30 18:11:11 +0200393 "10" "2"
Roger Meier85fb6de2012-11-02 00:05:42 +0000394do_test "cpp-py" "json" "buffered-ip" \
395 "cpp/TestClient --protocol=json --port=9090" \
396 "py/TestServer.py --proto=json --port=9090 --genpydir=py/gen-py TSimpleServer" \
henriqued5aba4c2014-04-30 18:11:11 +0200397 "10" "2"
Roger Meier85fb6de2012-11-02 00:05:42 +0000398do_test "py-java" "binary" "buffered-ip" \
399 "py/TestClient.py --proto=binary --port=9090 --host=localhost --genpydir=py/gen-py" \
henriqued17f1c92014-04-30 16:21:25 +0200400 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" run-testserver" \
henriqued5aba4c2014-04-30 18:11:11 +0200401 "15" "2"
Roger Meier7a66f752014-03-10 12:35:41 +0100402do_test "py-java" "json" "buffered-ip" \
Roger Meier85fb6de2012-11-02 00:05:42 +0000403 "py/TestClient.py --proto=json --port=9090 --host=localhost --genpydir=py/gen-py" \
henriqued17f1c92014-04-30 16:21:25 +0200404 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=json\" run-testserver" \
henriqued5aba4c2014-04-30 18:11:11 +0200405 "15" "2"
Roger Meier85fb6de2012-11-02 00:05:42 +0000406do_test "java-py" "binary" "buffered-ip" \
henriqued17f1c92014-04-30 16:21:25 +0200407 "ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" run-testclient" \
Roger Meier85fb6de2012-11-02 00:05:42 +0000408 "py/TestServer.py --proto=binary --port=9090 --genpydir=py/gen-py TSimpleServer" \
henriqued17f1c92014-04-30 16:21:25 +0200409 "10" "5"
Roger Meier4edac7f2014-05-02 21:07:01 +0200410do_test "js-java" "json" "http-ip" \
Roger Meier4d5157d2012-01-09 21:23:19 +0000411 "" \
412 "ant -f ../lib/js/test/build.xml unittest" \
henriqued17f1c92014-04-30 16:21:25 +0200413 "2" "2"
Roger Meier4d5157d2012-01-09 21:23:19 +0000414do_test "perl-cpp" "binary" "buffered-ip" \
Roger Meier01b568c2012-01-10 21:30:02 +0000415 "perl -I perl/gen-perl/ -I../lib/perl/lib/ perl/TestClient.pl" \
Roger Meier4d5157d2012-01-09 21:23:19 +0000416 "cpp/TestServer" \
henriqued5aba4c2014-04-30 18:11:11 +0200417 "10" "2"
Roger Meierb33967b2012-01-21 09:18:05 +0000418do_test "php-cpp" "binary" "buffered-ip" \
419 "make -C php/ client" \
420 "cpp/TestServer" \
henriqued5aba4c2014-04-30 18:11:11 +0200421 "10" "2"
Roger Meierc95d5df2014-01-19 21:53:02 +0100422do_test "rb-rb" "binary" "buffered-ip" \
423 "ruby rb/integration/simple_client.rb" \
424 "ruby rb/integration/simple_server.rb" \
henriqued17f1c92014-04-30 16:21:25 +0200425 "5" "5"
Roger Meier9aa08a92014-01-20 18:41:48 +0100426do_test "rb-rb" "binary-accl" "buffered-ip" \
Roger Meierc95d5df2014-01-19 21:53:02 +0100427 "ruby rb/integration/accelerated_buffered_client.rb" \
428 "ruby rb/integration/accelerated_buffered_server.rb" \
henriqued17f1c92014-04-30 16:21:25 +0200429 "5" "5"
Roger Meier4edac7f2014-05-02 21:07:01 +0200430
431echo " failed tests are logged to test/log/error.log"
Roger Meiercc0fe272014-05-16 23:18:25 +0200432echo " full log is here test/log/client_server_protocol_transport_client.log"
433echo " full log is here test/log/client_server_protocol_transport_server.log"
434echo " or look at file://$BASEDIR/$STATUS_HTML"
435
henriquead4df162014-05-20 13:18:45 +0200436ELAPSED_TIME=$(echo "(${SECONDS} - ${START_TIME})" | bc)
437DURATION="${ELAPSED_TIME} seconds"
Roger Meiercc0fe272014-05-16 23:18:25 +0200438echo "test an took" $DURATION
439print_html_footer "$DURATION"
440
Roger Meier4edac7f2014-05-02 21:07:01 +0200441date
Roger Meier82525772012-11-16 00:38:27 +0000442cd -