summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2014-08-08 00:30:50 +0200
committerRoger Meier <roger@apache.org>2014-08-08 00:32:58 +0200
commitbea273484d63e5c14481754da9ff786b12835471 (patch)
treeb1852219bd0d2c0a44c430ad087f1369eaf41d54 /test
parent044e89de0a73d8f1fcc580fbef498ee1195ea9d7 (diff)
downloadthrift-bea273484d63e5c14481754da9ff786b12835471.tar.gz
THRIFT-847 Test Framework harmonization across all languages
add info: $FAILED failed of $TESTCOUNT tests in total
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh
index ffcccfe4e..2f7473901 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -30,6 +30,9 @@ START_TIME=$SECONDS
cd "$( dirname "$0" )"
BASEDIR=$(pwd)
+TESTCOUNT=0
+FAILED=0
+
print_header() {
printf "%-16s %-13s %-17s %-s\n" "client-server:" "protocol:" "transport:" "result:"
}
@@ -139,7 +142,9 @@ do_test () {
tail log/${testname}_client.log >> log/error.log
echo "======================================================" >> log/error.log
echo "" >> log/error.log
+ FAILED=$(($FAILED + 1))
fi
+ TESTCOUNT=$(($TESTCOUNT + 1))
# split client-server string
client=${client_server%-*}
@@ -876,6 +881,8 @@ echo " or look at file://$BASEDIR/$STATUS_HTML"
ELAPSED_TIME=$(echo "(${SECONDS} - ${START_TIME})" | bc)
DURATION="${ELAPSED_TIME} seconds"
+
+echo $FAILED failed of $TESTCOUNT tests in total
echo "test an took" $DURATION
print_html_footer "$DURATION"