2012-01-09 21:23:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance
|
|
|
|
# with the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing,
|
|
|
|
# software distributed under the License is distributed on an
|
|
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
# KIND, either express or implied. See the License for the
|
|
|
|
# specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Apache Thrift - integration test suite
|
|
|
|
#
|
|
|
|
# tests different client-server, protocol and transport combinations
|
|
|
|
|
|
|
|
# related issues:
|
|
|
|
# THRIFT-847 Test Framework harmonization across all languages
|
|
|
|
# THRIFT-819 add Enumeration for protocol, transport and server types
|
|
|
|
|
2014-05-16 21:18:25 +00:00
|
|
|
START_TIME=$SECONDS
|
2014-04-30 14:21:25 +00:00
|
|
|
cd "$( dirname "$0" )"
|
|
|
|
BASEDIR=$(pwd)
|
|
|
|
|
2014-08-07 22:30:50 +00:00
|
|
|
TESTCOUNT=0
|
|
|
|
FAILED=0
|
|
|
|
|
2012-01-09 21:23:19 +00:00
|
|
|
print_header() {
|
2014-05-31 20:22:07 +00:00
|
|
|
printf "%-16s %-13s %-17s %-s\n" "client-server:" "protocol:" "transport:" "result:"
|
2012-01-09 21:23:19 +00:00
|
|
|
}
|
|
|
|
|
2014-05-16 21:18:25 +00:00
|
|
|
STATUS_HTML="status.html"
|
|
|
|
|
|
|
|
print_html_header() {
|
|
|
|
cat << EOF > $STATUS_HTML
|
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Apache Thrift - integration test suite</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.0/css/jquery.dataTables.css">
|
|
|
|
<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8" src="http://cdn.datatables.net/1.10.0/js/jquery.dataTables.js"></script>
|
|
|
|
<script>
|
|
|
|
var test_data;
|
|
|
|
\$(document).ready( function () {
|
|
|
|
testTable = \$('#test_results').DataTable( {
|
|
|
|
data: test_data
|
|
|
|
});
|
|
|
|
\$('#test_results_filter label input')
|
|
|
|
.focus()
|
|
|
|
.val('failure');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2>Apache Thrift - integration test suite: Results</h2>
|
|
|
|
<table id="test_results" class="display">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Server</th>
|
|
|
|
<th>Client</th>
|
|
|
|
<th>Protocol</th>
|
|
|
|
<th>Transport</th>
|
|
|
|
<th>Result (log)</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
<script>
|
|
|
|
test_data = [
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
print_html_footer() {
|
|
|
|
duration=$1
|
|
|
|
cat << EOF >> $STATUS_HTML
|
|
|
|
]
|
|
|
|
</script>
|
|
|
|
<h2>Test Information</h2>
|
|
|
|
<pre>
|
|
|
|
Test Date: `date --iso-8601=seconds`
|
|
|
|
Revision: `git rev-parse --short HEAD`
|
|
|
|
OS: `uname -a`
|
|
|
|
Test duration: $duration
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
2013-01-16 21:12:14 +00:00
|
|
|
intersection() {
|
|
|
|
return_value=""
|
|
|
|
for one in $1; do
|
|
|
|
for two in $2; do
|
|
|
|
if [ ${one} = ${two} ]; then
|
|
|
|
return_value=${return_value}" "${one}
|
|
|
|
fi
|
|
|
|
done;
|
|
|
|
done;
|
|
|
|
echo ${return_value};
|
|
|
|
}
|
|
|
|
|
2012-01-09 21:23:19 +00:00
|
|
|
do_test () {
|
|
|
|
client_server=$1
|
|
|
|
protocol=$2
|
|
|
|
transport=$3
|
|
|
|
client_exec=$4
|
|
|
|
server_exec=$5
|
2014-04-30 14:21:25 +00:00
|
|
|
client_timeout=$6
|
|
|
|
server_startup_time=$7
|
2014-08-16 11:58:40 +00:00
|
|
|
|
2012-01-09 21:23:19 +00:00
|
|
|
testname=${client_server}_${protocol}_${transport}
|
2014-04-30 16:11:11 +00:00
|
|
|
server_timeout=$(echo "(${server_startup_time}+${client_timeout})" | bc)
|
2014-05-31 20:22:07 +00:00
|
|
|
printf "%-16s %-13s %-17s" ${client_server} ${protocol} ${transport}
|
2014-08-16 11:58:40 +00:00
|
|
|
|
2014-03-11 20:20:35 +00:00
|
|
|
timeout $server_timeout $server_exec > log/${testname}_server.log 2>&1 &
|
2014-04-30 14:21:25 +00:00
|
|
|
server_pid=$!
|
2014-08-16 11:58:40 +00:00
|
|
|
|
2012-01-09 21:23:19 +00:00
|
|
|
sleep $server_startup_time
|
2014-04-30 14:21:25 +00:00
|
|
|
timeout $client_timeout $client_exec > log/${testname}_client.log 2>&1
|
2014-01-08 21:15:48 +00:00
|
|
|
|
2012-01-09 21:23:19 +00:00
|
|
|
if [ "$?" -eq "0" ]; then
|
2014-05-16 21:18:25 +00:00
|
|
|
result="success($?)"
|
|
|
|
echo " $result"
|
2012-01-09 21:23:19 +00:00
|
|
|
else
|
2014-05-16 21:18:25 +00:00
|
|
|
result="failure($?)"
|
|
|
|
echo " $result"
|
2014-05-02 19:07:01 +00:00
|
|
|
# add details to the error.log
|
|
|
|
print_header >> log/error.log
|
|
|
|
printf "%-16s %-11s %-17s\n" ${client_server} ${protocol} ${transport} >> log/error.log
|
|
|
|
echo "=================== server message ===================" >> log/error.log
|
|
|
|
tail log/${testname}_server.log >> log/error.log
|
|
|
|
echo "=================== client message ===================" >> log/error.log
|
|
|
|
tail log/${testname}_client.log >> log/error.log
|
|
|
|
echo "======================================================" >> log/error.log
|
|
|
|
echo "" >> log/error.log
|
2014-08-07 22:30:50 +00:00
|
|
|
FAILED=$(($FAILED + 1))
|
2012-01-09 21:23:19 +00:00
|
|
|
fi
|
2014-08-07 22:30:50 +00:00
|
|
|
TESTCOUNT=$(($TESTCOUNT + 1))
|
2014-04-30 14:21:25 +00:00
|
|
|
|
2014-05-20 11:18:45 +00:00
|
|
|
# split client-server string
|
|
|
|
client=${client_server%-*}
|
|
|
|
server=${client_server#*-}
|
2014-05-16 21:18:25 +00:00
|
|
|
|
|
|
|
cat << EOF >> $STATUS_HTML
|
|
|
|
[
|
|
|
|
"${server}",
|
2014-05-23 10:54:08 +00:00
|
|
|
"${client}",
|
2014-05-16 21:18:25 +00:00
|
|
|
"${protocol}",
|
|
|
|
"${transport}",
|
|
|
|
"${result} (<a href=\"log/${testname}_client.log\">client</a>, <a href=\"log/${testname}_server.log\">server</a>)"
|
|
|
|
],
|
|
|
|
EOF
|
|
|
|
|
2014-04-30 14:21:25 +00:00
|
|
|
# silently kill server
|
|
|
|
kill ${server_pid} 2>/dev/null && wait ${server_pid} 2>/dev/null
|
2012-01-09 21:23:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
echo "Apache Thrift - integration test suite"
|
2014-08-16 11:58:40 +00:00
|
|
|
if [ "$#" -eq "0" ]; then
|
|
|
|
THRIFT_TEST_PORT=9090
|
|
|
|
else
|
|
|
|
THRIFT_TEST_PORT=$1
|
|
|
|
fi
|
2012-01-09 21:23:19 +00:00
|
|
|
date
|
2014-04-30 14:21:25 +00:00
|
|
|
|
|
|
|
|
2012-01-09 21:23:19 +00:00
|
|
|
echo "======================================================"
|
|
|
|
|
|
|
|
rm -rf log
|
|
|
|
mkdir -p log
|
|
|
|
|
2014-05-16 21:18:25 +00:00
|
|
|
|
2012-01-09 21:23:19 +00:00
|
|
|
print_header
|
2014-05-16 21:18:25 +00:00
|
|
|
print_html_header
|
|
|
|
|
|
|
|
ant -f ../lib/java/build.xml compile-test 1>/dev/null
|
|
|
|
|
2012-01-09 21:23:19 +00:00
|
|
|
|
2012-11-16 00:38:27 +00:00
|
|
|
#TODO add enum for parameters
|
|
|
|
#TODO align program arguments across languages
|
2012-01-09 21:23:19 +00:00
|
|
|
|
2014-02-12 08:35:12 +00:00
|
|
|
cpp_protocols="binary compact json"
|
|
|
|
java_protocols="binary compact json"
|
2013-01-16 21:12:14 +00:00
|
|
|
cpp_transports="buffered framed http"
|
|
|
|
java_server_transports="buffered framed fastframed"
|
|
|
|
java_client_transports=${java_server_transports}" http"
|
2014-04-07 22:28:17 +00:00
|
|
|
cpp_sockets="ip domain ip-ssl"
|
2013-01-16 21:12:14 +00:00
|
|
|
java_sockets="ip ip-ssl"
|
|
|
|
# TODO fastframed java transport is another implementation of framed transport
|
|
|
|
|
2014-09-01 19:53:40 +00:00
|
|
|
c_glib_protocols="binary"
|
|
|
|
c_glib_transports="buffered framed"
|
|
|
|
c_glib_sockets="ip"
|
|
|
|
|
2015-02-16 08:51:24 +00:00
|
|
|
# only test tcp type for now like the original cross test.
|
|
|
|
# other nodejs types can be enabled in a separate patch.
|
|
|
|
nodejs_types="tcp" # "tcp multiplex http websocket"
|
2014-05-25 20:59:17 +00:00
|
|
|
nodejs_protocols="binary compact json"
|
2014-01-26 10:44:27 +00:00
|
|
|
nodejs_transports="buffered framed"
|
2014-02-22 00:01:58 +00:00
|
|
|
nodejs_sockets="ip ip-ssl"
|
2012-01-09 21:23:19 +00:00
|
|
|
|
2014-04-22 20:52:43 +00:00
|
|
|
csharp_protocols="binary compact json"
|
|
|
|
csharp_transports="buffered framed"
|
|
|
|
csharp_sockets="ip ip-ssl"
|
|
|
|
|
2014-05-28 21:03:57 +00:00
|
|
|
py_protocols="binary compact json accel"
|
2014-05-31 20:22:07 +00:00
|
|
|
py_transports="buffered framed"
|
|
|
|
py_sockets="ip ip-ssl"
|
2014-05-28 21:03:57 +00:00
|
|
|
|
2014-06-10 20:16:14 +00:00
|
|
|
ruby_protocols="binary compact json accel"
|
|
|
|
ruby_transports="buffered framed"
|
|
|
|
ruby_sockets="ip"
|
|
|
|
|
2014-07-31 22:44:13 +00:00
|
|
|
hs_protocols="binary compact json"
|
|
|
|
hs_transports="buffered"
|
|
|
|
hs_sockets="ip"
|
|
|
|
|
2013-01-16 21:12:14 +00:00
|
|
|
######### java client - java server #############
|
|
|
|
for proto in $java_protocols; do
|
|
|
|
for trans in $java_server_transports; do
|
|
|
|
for sock in $java_sockets; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "java-java" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
2014-04-30 16:11:11 +00:00
|
|
|
"5" "1"
|
2013-01-16 21:12:14 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### cpp client - cpp server ###############
|
|
|
|
for proto in $cpp_protocols; do
|
|
|
|
for trans in $cpp_transports; do
|
|
|
|
for sock in $cpp_sockets; do
|
2012-01-09 21:23:19 +00:00
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "cpp-cpp" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-04-30 16:11:11 +00:00
|
|
|
"2" "0.1"
|
2013-01-16 21:12:14 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-04-30 14:21:25 +00:00
|
|
|
|
2013-01-16 21:12:14 +00:00
|
|
|
######### java client - cpp server ##############
|
|
|
|
# warning: ssl over http is not supported in java client!
|
|
|
|
for proto in $(intersection "${java_protocols}" "${cpp_protocols}"); do
|
|
|
|
for trans in $(intersection "${java_client_transports}" "${cpp_transports}"); do
|
|
|
|
for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
2014-04-17 19:53:45 +00:00
|
|
|
do_test "java-cpp" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \
|
|
|
|
"cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\
|
2014-04-30 16:11:11 +00:00
|
|
|
"5" "0.1"
|
2013-01-16 21:12:14 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### cpp client - java server ##############
|
|
|
|
for proto in $(intersection "${cpp_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${cpp_transports}" "${java_server_transports}"); do
|
|
|
|
for sock in $(intersection "${java_sockets}" "${cpp_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
2014-04-17 19:53:45 +00:00
|
|
|
do_test "cpp-java" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
2014-04-30 16:11:11 +00:00
|
|
|
"5" "1"
|
2013-01-16 21:12:14 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
2012-01-09 21:23:19 +00:00
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
######### c_glib client - c_glib server ##############
|
|
|
|
for proto in ${c_glib_protocols}; do
|
|
|
|
for trans in ${c_glib_transports}; do
|
|
|
|
for sock in ${c_glib_sockets}; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-c_glib" "${proto}" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"2" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-01 19:53:40 +00:00
|
|
|
######### c_glib client - cpp server ##############
|
|
|
|
for proto in $(intersection "${c_glib_protocols}" "${cpp_protocols}"); do
|
|
|
|
for trans in $(intersection "${c_glib_transports}" "${cpp_transports}"); do
|
|
|
|
for sock in $(intersection "${c_glib_sockets}" "${cpp_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-cpp" "${proto}" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\
|
|
|
|
"2" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
######### cpp client - c_glib server ##############
|
|
|
|
for proto in $(intersection "${cpp_protocols}" "${c_glib_protocols}"); do
|
|
|
|
for trans in $(intersection "${cpp_transports}" "${c_glib_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${c_glib_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "cpp-c_glib" "${proto}" "${trans}-${sock}" \
|
|
|
|
"cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}"\
|
|
|
|
"c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"2" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-01 19:53:40 +00:00
|
|
|
######### c_glib client - java server ##############
|
|
|
|
for proto in $(intersection "${c_glib_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${c_glib_transports}" "${java_server_transports}"); do
|
|
|
|
for sock in $(intersection "${c_glib_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-java" "${proto}" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
|
|
|
"2" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
######### java client - c_glib server ##############
|
|
|
|
for proto in $(intersection "${java_protocols}" "${c_glib_protocols}"); do
|
|
|
|
for trans in $(intersection "${java_client_transports}" "${c_glib_transports}"); do
|
|
|
|
for sock in $(intersection "${java_sockets}" "${c_glib_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "java-c_glib" "${proto}" "${trans}-${sock}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \
|
|
|
|
"c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-01-26 10:44:27 +00:00
|
|
|
|
2014-04-30 14:21:25 +00:00
|
|
|
NODE_TEST_DIR=${BASEDIR}/../lib/nodejs/test
|
2014-01-26 10:44:27 +00:00
|
|
|
export NODE_PATH=${NODE_TEST_DIR}:${NODE_TEST_DIR}/../lib:${NODE_PATH}
|
2014-05-25 20:59:17 +00:00
|
|
|
######### nodejs client - nodejs server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in ${nodejs_protocols}; do
|
|
|
|
for trans in ${nodejs_transports}; do
|
|
|
|
for sock in ${nodejs_sockets}; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-nodejs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "0.2"
|
|
|
|
done
|
2014-05-25 20:59:17 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
2014-04-30 16:11:11 +00:00
|
|
|
|
2014-01-26 10:44:27 +00:00
|
|
|
######### nodejs client - cpp server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do
|
|
|
|
for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do
|
|
|
|
for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-cpp" "${proto}" "${trans}-${sock}" \
|
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "0.2"
|
|
|
|
done
|
2014-01-26 10:44:27 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### cpp client - nodejs server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${nodejs_protocols}" "${cpp_protocols}"); do
|
|
|
|
for trans in $(intersection "${nodejs_transports}" "${cpp_transports}"); do
|
|
|
|
for sock in $(intersection "${nodejs_sockets}" "${cpp_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "cpp-nodejs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "2"
|
|
|
|
done
|
2014-01-26 10:44:27 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-27 19:18:00 +00:00
|
|
|
######### nodejs client - java server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${nodejs_transports}" "${java_server_transports}"); do
|
|
|
|
for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-java" "${proto}" "${trans}-${sock}" \
|
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
|
|
|
"5" "1"
|
|
|
|
done
|
2014-05-27 19:18:00 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### java client - nodejs server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${nodejs_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${nodejs_transports}" "${java_client_transports}"); do
|
|
|
|
for sock in $(intersection "${nodejs_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "java-nodejs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \
|
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "2"
|
|
|
|
done
|
2014-05-27 19:18:00 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
######### nodejs client - c_glib server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${nodejs_protocols}" "${c_glib_protocols}"); do
|
|
|
|
for trans in $(intersection "${nodejs_transports}" "${c_glib_transports}"); do
|
|
|
|
for sock in $(intersection "${nodejs_sockets}" "${c_glib_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-c_glib" "${proto}" "${trans}-${sock}" \
|
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "0.1"
|
|
|
|
done
|
2014-09-29 18:50:56 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-01 19:53:40 +00:00
|
|
|
######### c_glib client - nodejs server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${c_glib_protocols}" "${nodejs_protocols}"); do
|
|
|
|
for trans in $(intersection "${c_glib_transports}" "${nodejs_transports}"); do
|
|
|
|
for sock in $(intersection "${c_glib_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-nodejs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"2" "2"
|
|
|
|
done
|
2014-09-01 19:53:40 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-28 21:03:57 +00:00
|
|
|
######### py client - py server ##############
|
|
|
|
for proto in ${py_protocols}; do
|
|
|
|
for trans in ${py_transports}; do
|
|
|
|
for sock in ${py_sockets}; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-py" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=${proto} --transport={trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=${proto} --transport={trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-05-28 21:03:57 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-31 20:22:07 +00:00
|
|
|
for trans in ${py_transports}; do
|
|
|
|
for sock in ${py_sockets}; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-py" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-05-31 20:22:07 +00:00
|
|
|
"10" "2"
|
|
|
|
do_test "py-py" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=binary --transport={trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=accel --transport={trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-05-31 20:22:07 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-28 21:03:57 +00:00
|
|
|
######### py client - cpp server ##############
|
|
|
|
for proto in $(intersection "${cpp_protocols}" "${py_protocols}"); do
|
|
|
|
for trans in $(intersection "${cpp_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-cpp" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-05-28 21:03:57 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-31 20:22:07 +00:00
|
|
|
for trans in $(intersection "${cpp_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-cpp" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"cpp/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-05-31 20:22:07 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-28 21:03:57 +00:00
|
|
|
######### cpp client - py server ##############
|
|
|
|
for proto in $(intersection "${cpp_protocols}" "${py_protocols}"); do
|
|
|
|
for trans in $(intersection "${cpp_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "cpp-py" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-05-28 21:03:57 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-31 20:22:07 +00:00
|
|
|
for trans in $(intersection "${cpp_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "cpp-py" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-05-31 20:22:07 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-28 21:03:57 +00:00
|
|
|
######### py client - java server ##############
|
|
|
|
for proto in $(intersection "${py_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${py_transports}" "${java_server_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-java" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
2014-05-28 21:03:57 +00:00
|
|
|
"15" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-31 20:22:07 +00:00
|
|
|
for trans in $(intersection "${py_transports}" "${java_server_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-java" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
2014-05-31 20:22:07 +00:00
|
|
|
"15" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-28 21:03:57 +00:00
|
|
|
######### java client - py server ##############
|
|
|
|
for proto in $(intersection "${py_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${py_transports}" "${java_client_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "java-py" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \
|
|
|
|
"py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-05-28 21:03:57 +00:00
|
|
|
"10" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-31 20:22:07 +00:00
|
|
|
for trans in $(intersection "${py_transports}" "${java_client_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "java-py" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \
|
|
|
|
"py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-05-31 20:22:07 +00:00
|
|
|
"10" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
######### py client - c_glib server ##############
|
|
|
|
for proto in $(intersection "${py_protocols}" "${c_glib_protocols}"); do
|
|
|
|
for trans in $(intersection "${py_transports}" "${c_glib_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${c_glib_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-c_glib" "${proto}" "${trans}-${sock}" \
|
|
|
|
"py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"10" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${py_transports}" "${c_glib_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${c_glib_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-c_glib" "accel-binary" "${trans}-${sock}" \
|
|
|
|
"py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"c_glib/test_server --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"10" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-01 19:53:40 +00:00
|
|
|
######### c_glib client - py server ##############
|
|
|
|
for proto in $(intersection "${c_glib_protocols}" "${py_protocols}"); do
|
|
|
|
for trans in $(intersection "${c_glib_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${c_glib_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-py" "${proto}" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
|
|
|
"2" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
for trans in $(intersection "${c_glib_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${c_glib_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-py" "binary-accel" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-28 21:03:57 +00:00
|
|
|
######### py client - nodejs server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${py_protocols}" "${nodejs_protocols}"); do
|
|
|
|
for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-nodejs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"15" "2"
|
|
|
|
done
|
2014-05-28 21:03:57 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do
|
2014-05-31 20:22:07 +00:00
|
|
|
for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-nodejs" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
2015-02-16 08:51:24 +00:00
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-05-31 20:22:07 +00:00
|
|
|
"15" "2"
|
|
|
|
done
|
|
|
|
done
|
2015-02-16 08:51:24 +00:00
|
|
|
done
|
2014-05-31 20:22:07 +00:00
|
|
|
|
2014-05-28 21:03:57 +00:00
|
|
|
######### nodejs client - py server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${py_protocols}" "${nodejs_protocols}"); do
|
|
|
|
for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-py" "${proto}" "${trans}-${sock}" \
|
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
|
|
|
"10" "2"
|
|
|
|
done
|
2014-05-28 21:03:57 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for trans in $(intersection "${py_transports}" "${nodejs_transports}"); do
|
2014-05-31 20:22:07 +00:00
|
|
|
for sock in $(intersection "${py_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-py" "binary-accel" "${trans}-${sock}" \
|
2015-02-16 08:51:24 +00:00
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-05-31 20:22:07 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
2015-02-16 08:51:24 +00:00
|
|
|
done
|
2014-05-31 20:22:07 +00:00
|
|
|
|
2014-06-10 20:16:14 +00:00
|
|
|
######### ruby client - ruby server ##############
|
|
|
|
for proto in ${ruby_protocols}; do
|
|
|
|
for trans in ${ruby_transports}; do
|
|
|
|
for sock in ${ruby_sockets}; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-ruby" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in ${ruby_transports}; do
|
|
|
|
for sock in ${ruby_sockets}; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-ruby" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "5"
|
|
|
|
do_test "ruby-ruby" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### ruby client - cpp server ##############
|
|
|
|
for proto in $(intersection "${cpp_protocols}" "${ruby_protocols}"); do
|
|
|
|
for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-cpp" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-cpp" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"cpp/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### cpp client - ruby server ##############
|
|
|
|
for proto in $(intersection "${cpp_protocols}" "${ruby_protocols}"); do
|
|
|
|
for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "cpp-ruby" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${cpp_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${cpp_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "cpp-ruby" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### ruby client - java server ##############
|
|
|
|
for proto in $(intersection "${ruby_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${java_server_transports}"); do
|
|
|
|
for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-java" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"15" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${java_server_transports}"); do
|
|
|
|
for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-java" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"15" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### java client - ruby server ##############
|
|
|
|
for proto in $(intersection "${ruby_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${java_client_transports}"); do
|
|
|
|
for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "java-ruby" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testclient" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"10" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${java_client_transports}"); do
|
|
|
|
for sock in $(intersection "${ruby_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "java-ruby" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"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" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"10" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
######### ruby client - c_glib server ##############
|
|
|
|
for proto in $(intersection "${ruby_protocols}" "${c_glib_protocols}"); do
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${c_glib_transports}"); do
|
|
|
|
for sock in $(intersection "${ruby_sockets}" "${c_glib_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-c_glib" "${proto}" "${trans}-${sock}" \
|
|
|
|
"ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${c_glib_transports}"); do
|
|
|
|
for sock in $(intersection "${ruby_sockets}" "${c_glib_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-c_glib" "accel-binary" "${trans}-${sock}" \
|
|
|
|
"ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"c_glib/test_server --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-01 19:53:40 +00:00
|
|
|
######### c_glib client - ruby server ##############
|
|
|
|
for proto in $(intersection "${c_glib_protocols}" "${ruby_protocols}"); do
|
|
|
|
for trans in $(intersection "${c_glib_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${c_glib_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-ruby" "${proto}" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"2" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
for trans in $(intersection "${c_glib_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${c_glib_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-ruby" "binary-accel" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-06-10 20:16:14 +00:00
|
|
|
######### ruby client - nodejs server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${ruby_protocols}" "${nodejs_protocols}"); do
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do
|
|
|
|
for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-nodejs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "2"
|
|
|
|
done
|
2014-06-10 20:16:14 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do
|
2014-06-10 20:16:14 +00:00
|
|
|
for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-nodejs" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2015-02-16 08:51:24 +00:00
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "2"
|
|
|
|
done
|
|
|
|
done
|
2015-02-16 08:51:24 +00:00
|
|
|
done
|
2014-06-10 20:16:14 +00:00
|
|
|
|
|
|
|
######### nodejs client - ruby server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${ruby_protocols}" "${nodejs_protocols}"); do
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do
|
|
|
|
for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-ruby" "${proto}" "${trans}-${sock}" \
|
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"10" "5"
|
|
|
|
done
|
2014-06-10 20:16:14 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for trans in $(intersection "${ruby_transports}" "${nodejs_transports}"); do
|
2014-06-10 20:16:14 +00:00
|
|
|
for sock in $(intersection "${ruby_sockets}" "${nodejs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-ruby" "binary-accel" "${trans}-${sock}" \
|
2015-02-16 08:51:24 +00:00
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p binary -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
2015-02-16 08:51:24 +00:00
|
|
|
done
|
2014-06-10 20:16:14 +00:00
|
|
|
|
2014-08-15 16:48:30 +00:00
|
|
|
######### py client - ruby server ##############
|
2014-06-10 20:16:14 +00:00
|
|
|
for proto in $(intersection "${py_protocols}" "${ruby_protocols}"); do
|
|
|
|
for trans in $(intersection "${py_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-ruby" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"15" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${py_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-ruby" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"15" "5"
|
|
|
|
do_test "py-ruby" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"15" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### ruby client - py server ##############
|
|
|
|
for proto in $(intersection "${py_protocols}" "${ruby_protocols}"); do
|
|
|
|
for trans in $(intersection "${py_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-py" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${py_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${py_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-py" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "2"
|
|
|
|
do_test "ruby-py" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-06-10 20:16:14 +00:00
|
|
|
"5" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-08-15 16:48:30 +00:00
|
|
|
######### hs client - hs server ###############
|
|
|
|
for proto in $hs_protocols; do
|
|
|
|
for trans in $hs_transports; do
|
|
|
|
for sock in $hs_sockets; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "hs-hs" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"2" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### hs client - cpp server ###############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${cpp_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${cpp_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${cpp_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "hs-cpp" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"cpp/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"2" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### cpp client - hs server ###############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${cpp_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${cpp_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${cpp_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "cpp-hs" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"2" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### hs client - java server ###############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${java_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "hs-java" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" -Dtestargs \"--protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}\" run-testserver" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"5" "1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### java client - hs server ###############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${java_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${java_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${java_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "java-hs" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"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" \
|
|
|
|
"hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"5" "1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-29 18:50:56 +00:00
|
|
|
######### hs client - c_glib server ###############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${c_glib_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${c_glib_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${c_glib_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "hs-c_glib" "${proto}" "${trans}-${sock}" \
|
|
|
|
"hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"c_glib/test_server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"2" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-09-01 19:53:40 +00:00
|
|
|
######### c_glib client - hs server ###############
|
|
|
|
for proto in $(intersection "${c_glib_protocols}" "${hs_protocols}"); do
|
|
|
|
for trans in $(intersection "${c_glib_transports}" "${hs_transports}"); do
|
|
|
|
for sock in $(intersection "${c_glib_sockets}" "${hs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
"domain" ) extraparam="--domain-socket=/tmp/ThriftTest.thrift";;
|
|
|
|
esac
|
|
|
|
do_test "c_glib-hs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"c_glib/test_client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"2" "0.1"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-08-15 16:48:30 +00:00
|
|
|
######### py client -hs server ##############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${py_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-hs" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${hs_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "py-hs" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"py/TestClient.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --host=localhost --genpydir=gen-py ${extraparam}" \
|
|
|
|
"hs/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### hs client - py server ##############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${py_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "hs-py" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${hs_transports}" "${py_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${py_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "hs-py" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"hs/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"py/TestServer.py --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} --genpydir=gen-py TSimpleServer ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"10" "2"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### nodejs client - hs server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${nodejs_protocols}" "${hs_protocols}"); do
|
|
|
|
for trans in $(intersection "${nodejs_transports}" "${hs_transports}"); do
|
|
|
|
for sock in $(intersection "${nodejs_sockets}" "${hs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "nodejs-hs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"node ${NODE_TEST_DIR}/client.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "0.2"
|
|
|
|
done
|
2014-08-15 16:48:30 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### hs client - nodejs server ##############
|
2015-02-16 08:51:24 +00:00
|
|
|
for type in ${nodejs_types}; do
|
|
|
|
for proto in $(intersection "${nodejs_protocols}" "${hs_protocols}"); do
|
|
|
|
for trans in $(intersection "${nodejs_transports}" "${hs_transports}"); do
|
|
|
|
for sock in $(intersection "${nodejs_sockets}" "${hs_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "hs-nodejs" "${proto}" "${trans}-${sock}" \
|
|
|
|
"hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"node ${NODE_TEST_DIR}/server.js --type ${type} -p ${proto} -t ${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"5" "2"
|
|
|
|
done
|
2014-08-15 16:48:30 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### ruby client - hs server ##############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${ruby_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-hs" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"hs/TestServer --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "ruby-cpp" "accel-binary" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"ruby rb/integration/TestClient.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam} ${extraparam}" \
|
|
|
|
"hs/TestServer --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
######### hs client - ruby server ##############
|
|
|
|
for proto in $(intersection "${hs_protocols}" "${ruby_protocols}"); do
|
|
|
|
for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "hs-ruby" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"hs/TestClient --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for trans in $(intersection "${hs_transports}" "${ruby_transports}"); do
|
|
|
|
for sock in $(intersection "${hs_sockets}" "${ruby_sockets}"); do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "hs-ruby" "binary-accel" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"hs/TestClient --protocol=binary --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"ruby rb/integration/TestServer.rb --protocol=accel --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-08-15 16:48:30 +00:00
|
|
|
"5" "5"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-06-10 20:16:14 +00:00
|
|
|
|
2012-11-02 07:50:24 +00:00
|
|
|
# delete Unix Domain Socket used by cpp tests
|
|
|
|
rm -f /tmp/ThriftTest.thrift
|
|
|
|
|
2014-04-22 20:52:43 +00:00
|
|
|
######### csharp client - csharp server #############
|
|
|
|
export MONO_PATH=../lib/csharp
|
|
|
|
for proto in $csharp_protocols; do
|
|
|
|
for trans in $csharp_transports; do
|
|
|
|
for sock in $csharp_sockets; do
|
|
|
|
case "$sock" in
|
|
|
|
"ip" ) extraparam="";;
|
|
|
|
"ip-ssl" ) extraparam="--ssl";;
|
|
|
|
esac
|
|
|
|
do_test "csharp-csharp" "${proto}" "${trans}-${sock}" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"../lib/csharp/test/ThriftTest/TestClientServer.exe client --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
|
|
|
"../lib/csharp/test/ThriftTest/TestClientServer.exe server --protocol=${proto} --transport=${trans} --port=${THRIFT_TEST_PORT} ${extraparam}" \
|
2014-04-30 16:11:11 +00:00
|
|
|
"5" "1"
|
2014-04-22 20:52:43 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-05-02 19:07:01 +00:00
|
|
|
do_test "js-java" "json" "http-ip" \
|
2012-01-09 21:23:19 +00:00
|
|
|
"" \
|
|
|
|
"ant -f ../lib/js/test/build.xml unittest" \
|
2014-04-30 14:21:25 +00:00
|
|
|
"2" "2"
|
2012-01-09 21:23:19 +00:00
|
|
|
do_test "perl-cpp" "binary" "buffered-ip" \
|
2012-01-10 21:30:02 +00:00
|
|
|
"perl -I perl/gen-perl/ -I../lib/perl/lib/ perl/TestClient.pl" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestServer --port=${THRIFT_TEST_PORT}" \
|
2014-04-30 16:11:11 +00:00
|
|
|
"10" "2"
|
2012-01-21 09:18:05 +00:00
|
|
|
do_test "php-cpp" "binary" "buffered-ip" \
|
|
|
|
"make -C php/ client" \
|
2014-08-16 11:58:40 +00:00
|
|
|
"cpp/TestServer --port=${THRIFT_TEST_PORT}" \
|
2014-04-30 16:11:11 +00:00
|
|
|
"10" "2"
|
2014-05-02 19:07:01 +00:00
|
|
|
|
|
|
|
echo " failed tests are logged to test/log/error.log"
|
2014-05-16 21:18:25 +00:00
|
|
|
echo " full log is here test/log/client_server_protocol_transport_client.log"
|
|
|
|
echo " full log is here test/log/client_server_protocol_transport_server.log"
|
|
|
|
echo " or look at file://$BASEDIR/$STATUS_HTML"
|
|
|
|
|
2014-05-20 11:18:45 +00:00
|
|
|
ELAPSED_TIME=$(echo "(${SECONDS} - ${START_TIME})" | bc)
|
|
|
|
DURATION="${ELAPSED_TIME} seconds"
|
2014-08-07 22:30:50 +00:00
|
|
|
|
|
|
|
echo $FAILED failed of $TESTCOUNT tests in total
|
2014-05-16 21:18:25 +00:00
|
|
|
echo "test an took" $DURATION
|
|
|
|
print_html_footer "$DURATION"
|
|
|
|
|
2014-05-02 19:07:01 +00:00
|
|
|
date
|
2012-11-16 00:38:27 +00:00
|
|
|
cd -
|