Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
unPERLifies a bit the routing: use the object, not its name
[simgrid.git] / tools / jenkins / DynamicAnalysis_description.sh
1 #!/bin/sh
2
3 set -e
4
5 #get and store valgrind graph for once, as its generation can take a long time
6 wget https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Valgrind/label=simgrid-debian8-64-dynamic-analysis/valgrindResult/graph -O ./valgrind_graph.png
7
8 #find string containing errors and leaked size for valgrind run
9 wget https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Valgrind/label=simgrid-debian8-64-dynamic-analysis/lastCompletedBuild/
10 VALGRIND_RES=$(grep href\=\"valgrindResult\" ./index.html | sed -e "s/.*\"valgrindResult\">\(.*lost\)<\/a.*/\1/g")
11 rm index.html
12
13 #set html description and write it in a file
14
15 echo "
16 Testing with valgrind and gcov. Click on the graphs for details. 
17 <br><br>
18
19 <table id=\"configuration-matrix\"> 
20  <tr class=\"matrix-row\">  
21   <td class=\"matrix-header\">
22     Valgrind Results
23   </td>
24   <td class=\"matrix-header\">
25     Coverage Results
26   </td>
27   <td class=\"matrix-header\">
28     Test Results
29   </td>
30  </tr>
31  <tr class=\"matrix-row\">  
32   <td class=\"matrix-cell\">
33     <a href=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Valgrind/label=simgrid-debian8-64-dynamic-analysis/valgrindResult/\">
34          <img src=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis/lastCompletedBuild/label=simgrid-debian8-64-dynamic-analysis/artifact/valgrind_graph.png\" title="$VALGRIND_RES">
35         </a>
36   </td>
37   <td class=\"matrix-cell\">
38     <a href=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Coverage/label=simgrid-debian8-64-dynamic-analysis/cobertura\">
39          <img src=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Coverage/label=simgrid-debian8-64-dynamic-analysis/cobertura/graph\">
40         </a>
41   </td>
42   <td class=\"matrix-cell\">
43    <a href=\"https://ci.inria.fr/simgrid/view/Tous/job/SimGrid-DynamicAnalysis-Sanitizers/label=simgrid-debian8-64-dynamic-analysis/lastCompletedBuild/testReport/AddressSanitizer/junit/\">
44     <img src=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Coverage/label=simgrid-debian8-64-dynamic-analysis/groupedTests/trendGraph/unit/png?width=500&height=250\">
45    </a>
46   </td>
47  </tr>
48  <tr class=\"matrix-row\">  
49   <td class=\"matrix-header\">
50     Sloccount Results
51   </td>
52   <td class=\"matrix-header\">
53     Sloccount Variation
54   </td>
55   <td class=\"matrix-header\">
56     Test Results : Address Sanitizer (<a href=\"https://github.com/google/sanitizers/wiki/AddressSanitizer\">info</a>)
57   </td>
58  </tr>
59  <tr class=\"matrix-row\">  
60   <td class=\"matrix-cell\">
61     <a href=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Coverage/label=simgrid-debian8-64-dynamic-analysis/sloccountResult\">
62          <img src=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Coverage/label=simgrid-debian8-64-dynamic-analysis/sloccountResult/trend\">
63         </a>
64   </td>
65   <td class=\"matrix-cell\">
66         <a href=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Coverage/label=simgrid-debian8-64-dynamic-analysis/sloccountResult\">
67          <img src=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Coverage/label=simgrid-debian8-64-dynamic-analysis/sloccountResult/trendDelta\">
68         </a>
69   </td>
70   <td class=\"matrix-cell\">
71    <a href=\"https://ci.inria.fr/simgrid/job/SimGrid-DynamicAnalysis-Coverage/label=simgrid-debian8-64-dynamic-analysis-2/lastCompletedBuild/testReport/unit/junit/(root)/TestSuite/\">
72     <img src=\"https://ci.inria.fr/simgrid/view/Tous/job/SimGrid-DynamicAnalysis-Sanitizers/label=simgrid-debian8-64-dynamic-analysis-2/groupedTests/trendGraph/AddressSanitizer/png?width=500&height=250\">
73    </a>
74   </td>
75  </tr>
76  <tr class=\"matrix-row\">  
77   <td class=\"matrix-header\">
78    Test Results : Thread Sanitizer (<a href=\"https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual\">info</a>)
79   </td>
80   <td class=\"matrix-header\">
81    Test Results : Undefined Sanitizer (<a href=\"http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html\">info</a>)
82   </td>
83  </tr>
84  <tr class=\"matrix-row\">  
85   <td class=\"matrix-cell\">
86    <a href=\"https://ci.inria.fr/simgrid/view/Tous/job/SimGrid-DynamicAnalysis-Sanitizers/label=simgrid-debian8-64-dynamic-analysis-2/lastCompletedBuild/testReport/ThreadSanitizer/junit/\">
87     <img src=\"https://ci.inria.fr/simgrid/view/Tous/job/SimGrid-DynamicAnalysis-Sanitizers/label=simgrid-debian8-64-dynamic-analysis-2/groupedTests/trendGraph/ThreadSanitizer/png?width=500&height=250\">
88    </a>
89   </td>
90   <td class=\"matrix-cell\">
91    <a href=\"https://ci.inria.fr/simgrid/view/Tous/job/SimGrid-DynamicAnalysis-Sanitizers/label=simgrid-debian8-64-dynamic-analysis-2/lastCompletedBuild/testReport/UndefinedSanitizer/junit/\">
92     <img src=\"https://ci.inria.fr/simgrid/view/Tous/job/SimGrid-DynamicAnalysis-Sanitizers/label=simgrid-debian8-64-dynamic-analysis-2/groupedTests/trendGraph/UndefinedSanitizer/png?width=500&height=250\">
93    </a>
94   </td>
95  </tr>
96 </table>" > ./description.html