summaryrefslogtreecommitdiffstats
path: root/ci/build-vsperf.sh
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2016-01-19 11:27:22 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2016-01-19 13:08:20 +0000
commitbba7b3eaa1e9686d4ff6075016d531f67a20c0bb (patch)
treed894972e1d4500a32bfd97d25828ff7be502ef73 /ci/build-vsperf.sh
parent9e850ed8caaa62b8e6bef58edf41c2b32baac87c (diff)
ci: show TC results inside Jenkins job console output
It is required to show detailed result figures together with OK/FAILED status. CI script has been modified to show formatted results from test report MD files. Change-Id: I9e3724c5aac517dc493f0cf57fc8292434c0bfe8 JIRA: VSPERF-184 Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> (cherry picked from commit c28daf3e37f38ec570b70f33e9ce18a8e6b24f61)
Diffstat (limited to 'ci/build-vsperf.sh')
-rwxr-xr-xci/build-vsperf.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/ci/build-vsperf.sh b/ci/build-vsperf.sh
index 7c847673..e08dd357 100755
--- a/ci/build-vsperf.sh
+++ b/ci/build-vsperf.sh
@@ -149,6 +149,18 @@ function execute_vsperf() {
else
print_results "/${RES_DIR}"
fi
+
+ # show detailed result figures
+ for md_file in $(grep '\.md"$' $LOG_FILE | cut -d'"' -f2); do
+ # TC resut file header
+ echo -e "\n-------------------------------------------------------------------"
+ echo -e " $md_file"
+ echo -e "-------------------------------------------------------------------\n"
+ # TC details
+ sed -n '/^- Test ID/,/Bidirectional/{/Packet size/b;p;/Bidirectional/q};/Results\/Metrics Collected/,/Statistics collected/{/^$/p;/^|/p}' $md_file
+ # TC results
+ sed -n '/Results\/Metrics Collected/,/Statistics collected/{/^$/p;/^|/p}' $md_file | grep -v "Unknown" | cat -s
+ done
}
#