From 42e5ccb4dc9b63da8309a9ab121a1455a2a4ff24 Mon Sep 17 00:00:00 2001 From: degomme Date: Tue, 16 Aug 2016 15:03:50 +0200 Subject: [PATCH 1/1] Add DynamicAnalysis description as a script. It used to be static in jenkins config. Printing it to a file makes it more dynamic, as you can add more infos. --- tools/jenkins/DynamicAnalysis_description.sh | 96 ++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 tools/jenkins/DynamicAnalysis_description.sh diff --git a/tools/jenkins/DynamicAnalysis_description.sh b/tools/jenkins/DynamicAnalysis_description.sh new file mode 100644 index 0000000000..1203441951 --- /dev/null +++ b/tools/jenkins/DynamicAnalysis_description.sh @@ -0,0 +1,96 @@ +#!/bin/sh + +set -e + +#get and store valgrind graph for once, as its generation can take a long time +wget https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Valgrind/label=simgrid-debian8-64-dynamic-analysis/valgrindResult/graph -O ./valgrind_graph.png + +#find string containing errors and leaked size for valgrind run +wget https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Valgrind/label=simgrid-debian8-64-dynamic-analysis/lastCompletedBuild/ +VALGRIND_RES=$(grep href\=\"valgrindResult\" ./index.html | sed -e "s/.*\"valgrindResult\">\(.*lost\)<\/a.*/\1/g") +rm index.html + +#set html description and write it in a file + +echo " +Testing with valgrind and gcov. Click on the graphs for details. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Valgrind Results + + Coverage Results + + Test Results +
+ + + + + + + + + + + +
+ Sloccount Results + + Sloccount Variation + + Test Results : Address Sanitizer (info) +
+ + + + + + + + + + + +
+ Test Results : Thread Sanitizer (info) + + Test Results : Undefined Sanitizer (info) +
+ + + + + + + +
" > ./description.html -- 2.20.1