You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2014/08/08 00:33:07 UTC

git commit: THRIFT-847 Test Framework harmonization across all languages

Repository: thrift
Updated Branches:
  refs/heads/master 044e89de0 -> bea273484


THRIFT-847 Test Framework harmonization across all languages

add info: $FAILED failed of $TESTCOUNT tests in total


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/bea27348
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/bea27348
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/bea27348

Branch: refs/heads/master
Commit: bea273484d63e5c14481754da9ff786b12835471
Parents: 044e89d
Author: Roger Meier <ro...@apache.org>
Authored: Fri Aug 8 00:30:50 2014 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Fri Aug 8 00:32:58 2014 +0200

----------------------------------------------------------------------
 test/test.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/bea27348/test/test.sh
----------------------------------------------------------------------
diff --git a/test/test.sh b/test/test.sh
index ffcccfe..2f74739 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"