--- /dev/null
+#!/bin/sh
+
+base=$(cd $(dirname $0); pwd)
+
+echo "<h2>Simulation logs</h2>"
+
+echo "<table border=\"1\" cellpadding=\"5\" cellspacing=\"2\" width=\"100%\">"
+echo "<thead><tr><th>Test</th><th width=\"12%\">Dedicated<br>core(s)</th><th width=\"12%\">Load<br>(%)</th><th>Start date</th><th>End date</th></tr></thead>"
+
+echo "<tbody>"
+
+for log; do
+ $base/getdate.awk $log | awk 'NR != 1 {gsub(/,/, "</td><td>"); print "<tr><td>" $0 "</td></tr>"}'
+done
+
+echo "</tbody>"
+echo "</table>"
done
-echo "<p>.</p>
+echo "<p>.</p>"
echo "</body>"
echo "</html>"
--- /dev/null
+#!/usr/bin/awk -f
+
+BEGIN {
+ OFS=","
+ if (!nohead) {
+ print "Test", "Dedicated core(s)", "Load (%)", "Start date", "End date"
+ }
+ start = ""
+}
+
+/Test:/ {
+ sub (/^[^ ]* /, "")
+ test=$0
+}
+
+{ sub (/us$/, "") }
+
+/Dedicated/ { dcore=$3 }
+/CPU load/ { load=$3 }
+
+/UTC/ {
+ if (start == "") {
+ start = $0
+ } else {
+ print test, dcore, load, start, $0
+ start = ""
+ }
+}
f(x) = x / 1000
set style data line
-plot [:] [0:] data using (f($1)) notitle
+plot [-5:] [0:] data using (f($1)) notitle
#pause 5 "please wait 5s"
## Generate report
../generatedoc.sh *.tab > report.html
+ ../addlogdate.sh *.log > date.html
+ sed -i '/<p>\.<\/p>/ r date.html' report.html
+ sed -i '/<p>\.<\/p>/ d' report.html
#libreoffice --convert-to odt report.html
LANG=C pandoc report.html -t odt -o report.odt
libreoffice --convert-to doc report.odt
+
+## Date
+
+ for f in result.ods report.doc; do mv $f ${f/./-$(date +%Y%m%d).}; done