THRIFT-847 Test Framework harmonization across all languages
- no verbose output, use log/error.log instead
- improve test/README.md
Patch: Roger Meier
diff --git a/test/test.sh b/test/test.sh
index 43ec883..90ec5a6 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -68,13 +68,15 @@
echo " success"
else
echo " failure"
- echo "=================== server message ==================="
- tail log/${testname}_server.log
- echo "=================== client message ==================="
- tail log/${testname}_client.log
- echo "======================================================"
- echo ""
- print_header
+ # 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
fi
# silently kill server
@@ -276,7 +278,7 @@
"ant -f ../lib/java/build.xml -Dno-gen-thrift=\"\" run-testclient" \
"py/TestServer.py --proto=binary --port=9090 --genpydir=py/gen-py TSimpleServer" \
"10" "5"
-do_test "js-java" "json " "http-ip" \
+do_test "js-java" "json" "http-ip" \
"" \
"ant -f ../lib/js/test/build.xml unittest" \
"2" "2"
@@ -296,4 +298,8 @@
"ruby rb/integration/accelerated_buffered_client.rb" \
"ruby rb/integration/accelerated_buffered_server.rb" \
"5" "5"
+
+echo " failed tests are logged to test/log/error.log"
+echo " full log is here test/log/client_server_protocol_transport.log"
+date
cd -