Changeset 13210 for issm/trunk-jpl/scripts/report.sh
- Timestamp:
- 08/31/12 08:20:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/scripts/report.sh
r13203 r13210 78 78 cat << END >> report.html 79 79 <table $(echo $BODY_STYLE) style="border-collapse:collapse;"> 80 <tr><td $BODY_FONT >status: <span style=\"color:#ff0000\">Installation failed<\/span></td></tr>80 <tr><td $BODY_FONTC>status: <span style=\"color:#ff0000\">Installation failed<\/span></td></tr> 81 81 </table> 82 82 <table $FOOTER_STYLE><tr><td $FOOTER_FONT><a href="http://issm.jpl.nasa.gov" title="ISSM website" target="_blank">ISSM</a> nightly run report</td></tr></table> … … 103 103 <table $(echo $BODY_STYLE) style="border-collapse:collapse;"> 104 104 $(if [ $CRASH_MATLAB -eq 0 ]; then 105 echo "<tr><td $BODY_FONT >status: <span style=\"color:#008000\">all test desks have been run</span></td></tr>"105 echo "<tr><td $BODY_FONTL>status: <span style=\"color:#008000\">all test desks have been run</span></td></tr>" 106 106 else 107 echo "<tr><td $BODY_FONT >status: <span style=\"color:#ff0000\">Matlab crashed</span></td></tr>"107 echo "<tr><td $BODY_FONTL>status: <span style=\"color:#ff0000\">Matlab crashed</span></td></tr>" 108 108 fi) 109 <tr><td $BODY_FONT >Total execution time: $EL_MATLAB</td></tr>110 <tr><td $BODY_FONT >Number of successes: $NUM_MATLAB_SUC/$NUM_MATLAB_TOT</td></tr>111 <tr><td $BODY_FONT >Number of errors: $NUM_MATLAB_ERR/$NUM_MATLAB_TOT</td></tr>112 <tr><td $BODY_FONT >Number of failures: $NUM_MATLAB_FAI/$NUM_MATLAB_TOT</td></tr>109 <tr><td $BODY_FONTL>Total execution time: $EL_MATLAB</td></tr> 110 <tr><td $BODY_FONTL>Number of successes: $NUM_MATLAB_SUC/$NUM_MATLAB_TOT</td></tr> 111 <tr><td $BODY_FONTL>Number of errors: $NUM_MATLAB_ERR/$NUM_MATLAB_TOT</td></tr> 112 <tr><td $BODY_FONTL>Number of failures: $NUM_MATLAB_FAI/$NUM_MATLAB_TOT</td></tr> 113 113 </table> 114 114 END … … 132 132 <table $(echo $BODY_STYLE) style="border-collapse:collapse;"> 133 133 $(if [ $CRASH_PYTHON -eq 0 ]; then 134 echo "<tr><td $BODY_FONT >status: <span style=\"color:#008000\">all test desks have been run</span></td></tr>"134 echo "<tr><td $BODY_FONTL>status: <span style=\"color:#008000\">all test desks have been run</span></td></tr>" 135 135 else 136 echo "<tr><td $BODY_FONT >status: <span style=\"color:#ff0000\">Python crashed</span></td></tr>"136 echo "<tr><td $BODY_FONTL>status: <span style=\"color:#ff0000\">Python crashed</span></td></tr>" 137 137 fi) 138 <tr><td $BODY_FONT >Total execution time: $EL_PYTHON</td></tr>139 <tr><td $BODY_FONT >Number of successes: $NUM_PYTHON_SUC/$NUM_PYTHON_TOT</td></tr>140 <tr><td $BODY_FONT >Number of errors: $NUM_PYTHON_ERR/$NUM_PYTHON_TOT</td></tr>141 <tr><td $BODY_FONT >Number of failures: $NUM_PYTHON_FAI/$NUM_PYTHON_TOT</td></tr>138 <tr><td $BODY_FONTL>Total execution time: $EL_PYTHON</td></tr> 139 <tr><td $BODY_FONTL>Number of successes: $NUM_PYTHON_SUC/$NUM_PYTHON_TOT</td></tr> 140 <tr><td $BODY_FONTL>Number of errors: $NUM_PYTHON_ERR/$NUM_PYTHON_TOT</td></tr> 141 <tr><td $BODY_FONTL>Number of failures: $NUM_PYTHON_FAI/$NUM_PYTHON_TOT</td></tr> 142 142 </table> 143 143 END … … 152 152 then 153 153 cat << END >> report.html 154 <table $ (echo $H2_STYLE)><tr><td $(echo $H2_FONT)>List of Matlab tests</td></tr></table>155 <table $ (echo $BODY_STYLE)style="border-collapse:collapse;">154 <table $H2_STYLE><tr><td $(echo $H2_FONT)>List of Matlab tests</td></tr></table> 155 <table $BODY_STYLE style="border-collapse:collapse;"> 156 156 <tr> 157 <th $ (echo $BODY_FONT)>Result</th>158 <th $ (echo $BODY_FONT)>Tolerance</th>159 <th $ (echo $BODY_FONT)>Test id</th>160 <th $ (echo $BODY_FONT)>Test name</th>161 <th $ (echo $BODY_FONT)>Field checked</th>157 <th $BODY_FONT>Result</th> 158 <th $BODY_FONT>Tolerance</th> 159 <th $BODY_FONT>Test id</th> 160 <th $BODY_FONT>Test name</th> 161 <th $BODY_FONT>Field checked</th> 162 162 </tr> 163 163 $(cat matlab_short.log | while read line 164 164 do 165 165 echo "<tr>" 166 167 #get status168 166 STATUS=`echo $line | awk '{print $1}'` 169 170 167 #FAILURE 171 168 if [ "$STATUS" = "FAILURE" ] 172 169 then 173 174 170 FONTC=$(echo "$BODY_FONTC bgcolor=#ffff00"); 175 171 FONTL=$(echo "$BODY_FONTL bgcolor=#ffff00"); … … 177 173 { printf("<td %s id=FAILURE>%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n\n",FONTL,$1,FONTC,$3,FONTC,$6,FONTL,$9,FONTL,$11);} 178 174 '; 179 180 175 else 181 182 176 #SUCCESS 183 177 if [ "$STATUS" = "SUCCESS" ] … … 214 208 <table $(echo $BODY_STYLE) style="border-collapse:collapse;"> 215 209 <tr> 216 <th $ (echo $BODY_FONT)>Result</th>217 <th $ (echo $BODY_FONT)>Tolerance</th>218 <th $ (echo $BODY_FONT)>Test id</th>219 <th $ (echo $BODY_FONT)>Test name</th>220 <th $ (echo $BODY_FONT)>Field checked</th>210 <th $BODY_FONT>Result</th> 211 <th $BODY_FONT>Tolerance</th> 212 <th $BODY_FONT>Test id</th> 213 <th $BODY_FONT>Test name</th> 214 <th $BODY_FONT>Field checked</th> 221 215 </tr> 222 216 $(cat matlab_short.log | while read line
Note:
See TracChangeset
for help on using the changeset viewer.