Changeset 942


Ignore:
Timestamp:
06/12/09 10:41:45 (16 years ago)
Author:
Mathieu Morlighem
Message:

revision to have a nice output on webmail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/report.sh

    r884 r942  
    2020cat nightly.log | grep SUCCESS > success.log
    2121cat 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.log
     22#mail -s "Nightly runs of $ISSM_RELEASE on: $host_name. Date:$today." mathieu.morlighem@jpl.nasa.gov < tests.log
    2323
    2424#build report.html
     
    3030<style type="text/css">
    3131        <!--
    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;
    3558                font-family: Arial, Verdana, Tahoma;
    3659                font-size: 14px;
    3760                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         .comment
    56                 {white-space:pre-wrap;
    57                 word-wrap:break-word;
    58                 padding:4px;
    59                 border:1px dashed #000000;
    6061                background-color:#ffffdd}
    6162        -->
    6263</style>
    63 <div>
     64<div align="center" style=" font-family:Arial,Verdana,Tahoma; font-size: 14px; color: #404040;">
    6465<br>
    65 <h1>ISSM Nightly run report</h1>
     66<pre class="issmh1">ISSM Nightly run report</pre>
    6667<br>
    67 <pre class="comment">
     68<pre class="issmcomment">
    6869host: $host_name
    6970date: $today
    7071release: $ISSM_RELEASE
    7172
    72 remark: $(if [ `wc -l check.log | awk '{printf("%s",$1);}'`  = "0" ];
     73status: $(if [ `wc -l check.log | awk '{printf("%s",$1);}'`  = "0" ];
    7374then
    74         echo "stopped before the end"
     75        echo "<span style=\"color:#FF0000\">stopped before the end</span>"
    7576else
    7677        echo "all test desks have been run"
     
    7980number of errors: $(wc -l errors.log | awk '{printf("%s",$1);}')/$(wc -l tests.log | awk '{printf("%s",$1);}';  rm errors.log)
    8081number 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">
    8284
    8385$(for  package in "macayeal" "ice" "cielo_serial" "cielo_parallel"; do
     
    8587        #enter title
    8688        if [ $package == "macayeal" ]; then
    87                 echo "<h2>MacAyeal package</h2>"
     89                echo "<pre class=\"issmh2\">MacAyeal package</pre>"
    8890        fi
    8991        if [ $package == "ice" ]; then
    90                 echo "<h2>Ice package</h2>"
     92                echo "<pre class=\"issmh2\">Ice package</pre>"
    9193        fi
    9294        if [ $package == "cielo_serial" ]; then
    93                 echo "<h2>Cielo Serial package</h2>"
     95                echo "<pre class=\"issmh2\">Cielo Serial package</pre>"
    9496        fi
    9597        if [ $package == "cielo_parallel" ]; then
    96                 echo "<h2>Cielo Parallel package</h2>"
     98                echo "<pre class=\"issmh2\">Cielo Parallel package</pre>"
    9799        fi
    98100
     
    102104        else
    103105
    104                 echo "<table cellspacing="-1" width="900px">"
     106                echo "<table cellspacing=\"-1\" width=\"900px\" style=\"font-family: Arial, Verdana, Tahoma; color: #404040;\">"
    105107                echo "<tr> <th>Result</th> <th>Tolerance</th> <th>Test</th>  <th>Solution</th> <th>Field</th> </tr>"
    106108
     
    129131
    130132        <br>
     133        <br>
    131134        <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>
    133138END
Note: See TracChangeset for help on using the changeset viewer.