Updated Branches: refs/heads/master 06dbb8f01 -> f41d79d14
THRIFT-2029: Port C++ tests to Windows Client: cpp fixes test script to handle new termination approach for test servers. Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/f41d79d1 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/f41d79d1 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/f41d79d1 Branch: refs/heads/master Commit: f41d79d1448a495e27a84ffe6625de20ec69e642 Parents: 06dbb8f Author: Ben Craig <[email protected]> Authored: Wed Jan 8 15:15:48 2014 -0600 Committer: Ben Craig <[email protected]> Committed: Wed Jan 8 15:15:48 2014 -0600 ---------------------------------------------------------------------- test/test.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/f41d79d1/test/test.sh ---------------------------------------------------------------------- diff --git a/test/test.sh b/test/test.sh index 351fa1c..bec3d22 100755 --- a/test/test.sh +++ b/test/test.sh @@ -57,10 +57,13 @@ do_test () { testname=${client_server}_${protocol}_${transport} server_timeout=$((${server_startup_time}+${client_delay})) printf "%-16s %-11s %-17s" ${client_server} ${protocol} ${transport} - timeout $server_timeout $server_exec > log/${testname}_server.log 2>&1 & + mkfifo thrift_test_communication + timeout $server_timeout $server_exec < thrift_test_communication > log/${testname}_server.log 2>&1 & sleep $server_startup_time $client_exec > log/${testname}_client.log 2>&1 - + echo "done" > thrift_test_communication + rm -f thrift_test_communication + if [ "$?" -eq "0" ]; then echo " success" else
