Skip to content

Commit

Permalink
- better handling of detailed trend part
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24817 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 27, 2015
1 parent 91927af commit f92b988
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Examples/LibraryCoverageTrend.sh
Expand Up @@ -15,12 +15,26 @@ echo "<html><head><title>OpenModelica - Library Coverage Trend Overview</title><
echo "<center>" >> $OUT
echo "<h2>OpenModelica Library Coverage Overview ran each night by <a href="/hudson/view/Library%20Testing/">Hudson</a></h2><br/><b>$SDATE</b>" >> $OUT
echo "<hr />" >> $OUT
for f in history/*-trend*.svg; do
for f in history/*-trend.svg; do
# Filter out entries <10 days old. New entries will appear the day after this run!
if test `find "$f" \( ! -mmin +14400 \)`; then
IMG=$f
HTML=`echo $IMG | sed -e 's,^history/\(.*\)-trend*.svg,\1/BuildModelRecursive.html,'`
NAME=`echo $IMG | sed -e 's,^history/\(.*\)-trend*.svg,\1,'`
HTML=`echo $IMG | sed -e 's,^history/\(.*\)-trend.svg,\1/BuildModelRecursive.html,'`
NAME=`echo $IMG | sed -e 's,^history/\(.*\)-trend.svg,\1,'`
echo "<h3>$NAME<h3>" >> $OUT
echo "<p><a href=\"$HTML\"><img src=\"$IMG\" width="80%" /></a></p>" >> $OUT
echo "<hr />" >> $OUT
fi
done
echo "<hr />" >> $OUT
echo "<h2>OpenModelica Detailed Library Coverage Overview ran each night by <a href="/hudson/view/Library%20Testing/">Hudson</a></h2><br/><b>$SDATE</b>" >> $OUT
echo "<hr />" >> $OUT
for f in history/*-trend-detailed.svg; do
# Filter out entries <10 days old. New entries will appear the day after this run!
if test `find "$f" \( ! -mmin +14400 \)`; then
IMG=$f
HTML=`echo $IMG | sed -e 's,^history/\(.*\)-trend-detailed.svg,\1/BuildModelRecursive.html,'`
NAME=`echo $IMG | sed -e 's,^history/\(.*\)-trend-detailed.svg,\1,'`
echo "<h3>$NAME<h3>" >> $OUT
echo "<p><a href=\"$HTML\"><img src=\"$IMG\" width="80%" /></a></p>" >> $OUT
echo "<hr />" >> $OUT
Expand Down

0 comments on commit f92b988

Please sign in to comment.