aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap-verify-perf.sh
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2016-05-03 07:21:15 +0200
committerMiroslav Miklus <mmiklus@cisco.com>2016-05-19 07:48:13 +0000
commita881153db68401e040f37262d60b5d5e3cc486ac (patch)
tree90cfdf9b7604534f1aad314df5242df49059351d /bootstrap-verify-perf.sh
parent180d17939d123c04bf142cedf02daa325e3f4fa6 (diff)
Parse robot output.xml for performance reporting
- JIRA: CSIT-58 - parse robot framework output.xml file - find performance related data - write formatted json to specified file - copy archive artifact to directory Change-Id: I47e45bcb68c06044a23192cb1fca46f43782941e Signed-off-by: pmikus <pmikus@cisco.com> Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'bootstrap-verify-perf.sh')
-rwxr-xr-xbootstrap-verify-perf.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/bootstrap-verify-perf.sh b/bootstrap-verify-perf.sh
index de478e5f11..16dd536456 100755
--- a/bootstrap-verify-perf.sh
+++ b/bootstrap-verify-perf.sh
@@ -25,6 +25,8 @@ INSTALLATION_DIR="/tmp/install_dir"
PYBOT_ARGS="--noncritical MULTI_THREAD"
+ARCHIVE_ARTIFACTS=(log.html output.xml report.html output_perf_data.json)
+
# If we run this script from CSIT jobs we want to use stable vpp version
if [[ ${JOB_NAME} == csit-* ]] ;
then
@@ -160,3 +162,18 @@ case "$TEST_TAG" in
tests/
esac
+# Pybot output post-processing
+python ${CUR_DIR}/resources/tools/robot_output_parser.py \
+ -i ${CUR_DIR}/output.xml \
+ -o ${CUR_DIR}/output_perf_data.json \
+ -v ${VPP_STABLE_VER}
+if [ ! $? -eq 0 ]; then
+ echo "Parsing ${CUR_DIR}/output.xml failed"
+fi
+
+# Archive artifacts
+mkdir archive
+for i in ${ARCHIVE_ARTIFACTS[@]}; do
+ cp $( readlink -f ${i} | tr '\n' ' ' ) archive/
+done
+