Changeset 942
- Timestamp:
- 06/12/09 10:41:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/report.sh
r884 r942 20 20 cat nightly.log | grep SUCCESS > success.log 21 21 cat errors.log success.log > tests.log 22 mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today." mathieu.morlighem@jpl.nasa.gov < tests.log22 #mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today." mathieu.morlighem@jpl.nasa.gov < tests.log 23 23 24 24 #build report.html … … 30 30 <style type="text/css"> 31 31 <!-- 32 body { 33 width: 900px; 34 background:none; 32 .issmh1 { 33 margin-top:1em; 34 background: none; 35 color: #6495ed; 36 font-family: Arial, Verdana, Tahoma; 37 font-size: 35px; 38 text-align: center; 39 } 40 41 .issmh2 { 42 margin-top:1.5em; 43 width:900px; 44 background: transparent; 45 color: #6495ed; 46 font-family: Arial, Verdana, Tahoma; 47 font-size: 28px; 48 text-align: left; 49 } 50 51 .issmcomment 52 {white-space:pre-wrap; 53 word-wrap:break-word; 54 padding:4px; 55 width:900px; 56 border:1px dashed #000000; 57 text-align: left; 35 58 font-family: Arial, Verdana, Tahoma; 36 59 font-size: 14px; 37 60 color: #404040; 38 margin: auto;}39 h1 {40 margin-top:1em;41 background: transparent;42 color: #6495ed;43 font-size: 250%;44 text-align: center;45 }46 47 h2 {48 margin-top:1.5em;49 background: transparent;50 color: #6495ed;51 font-size: 200%;52 text-align: left;53 }54 55 .comment56 {white-space:pre-wrap;57 word-wrap:break-word;58 padding:4px;59 border:1px dashed #000000;60 61 background-color:#ffffdd} 61 62 --> 62 63 </style> 63 <div >64 <div align="center" style=" font-family:Arial,Verdana,Tahoma; font-size: 14px; color: #404040;"> 64 65 <br> 65 < h1>ISSM Nightly run report</h1>66 <pre class="issmh1">ISSM Nightly run report</pre> 66 67 <br> 67 <pre class=" comment">68 <pre class="issmcomment"> 68 69 host: $host_name 69 70 date: $today 70 71 release: $ISSM_RELEASE 71 72 72 remark: $(if [ `wc -l check.log | awk '{printf("%s",$1);}'` = "0" ];73 status: $(if [ `wc -l check.log | awk '{printf("%s",$1);}'` = "0" ]; 73 74 then 74 echo " stopped before the end"75 echo "<span style=\"color:#FF0000\">stopped before the end</span>" 75 76 else 76 77 echo "all test desks have been run" … … 79 80 number of errors: $(wc -l errors.log | awk '{printf("%s",$1);}')/$(wc -l tests.log | awk '{printf("%s",$1);}'; rm errors.log) 80 81 number of success: $(wc -l success.log | awk '{printf("%s",$1);}')/$(wc -l tests.log | awk '{printf("%s",$1);}';rm success.log tests.log)</pre> 81 <hr> 82 <br> 83 <hr width="900px"> 82 84 83 85 $(for package in "macayeal" "ice" "cielo_serial" "cielo_parallel"; do … … 85 87 #enter title 86 88 if [ $package == "macayeal" ]; then 87 echo "< h2>MacAyeal package</h2>"89 echo "<pre class=\"issmh2\">MacAyeal package</pre>" 88 90 fi 89 91 if [ $package == "ice" ]; then 90 echo "< h2>Ice package</h2>"92 echo "<pre class=\"issmh2\">Ice package</pre>" 91 93 fi 92 94 if [ $package == "cielo_serial" ]; then 93 echo "< h2>Cielo Serial package</h2>"95 echo "<pre class=\"issmh2\">Cielo Serial package</pre>" 94 96 fi 95 97 if [ $package == "cielo_parallel" ]; then 96 echo "< h2>Cielo Parallel package</h2>"98 echo "<pre class=\"issmh2\">Cielo Parallel package</pre>" 97 99 fi 98 100 … … 102 104 else 103 105 104 echo "<table cellspacing= "-1" width="900px">"106 echo "<table cellspacing=\"-1\" width=\"900px\" style=\"font-family: Arial, Verdana, Tahoma; color: #404040;\">" 105 107 echo "<tr> <th>Result</th> <th>Tolerance</th> <th>Test</th> <th>Solution</th> <th>Field</th> </tr>" 106 108 … … 129 131 130 132 <br> 133 <br> 131 134 <center><small></a><a href="http://issm.jpl.nasa.gov" title="ISSM website" target="_blank">ISSM</a> nightly run report</small></center> 132 </div> 135 </div> 136 </body> 137 </html> 133 138 END
Note:
See TracChangeset
for help on using the changeset viewer.