- Timestamp:
- 08/26/10 09:47:22 (15 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/nightlyrun.sh
r5083 r5591 267 267 fclose(fid); 268 268 end 269 disp('MATLABEXITEDCORRECTLY'); 269 270 exit 270 271 EOF … … 288 289 cat matlab_log.log matlab_log$i.log > matlab_log.log.bak 289 290 mv matlab_log.log.bak matlab_log.log 290 rm matlab_log$i.log291 292 291 done 293 292 #}}} 294 293 #Complete info.log {{{1 294 if [ $(cat matlab_log.log | grep "MATLABEXITEDCORRECTLY" | wc -l) -eq $NUMCPUS_RUN ] 295 then 296 MATLABCRASH=0 297 else 298 MATLABCRASH=1 299 fi 295 300 ELAPSED_RUN=$(timer $INSTALL_TIME) 296 301 ELAPSED_TOTAL=$(timer $START_TIME) … … 298 303 elapsed_run: $(echo $ELAPSED_RUN) 299 304 elapsed_total: $(echo $ELAPSED_TOTAL) 305 matlab_crash: $(echo $MATLABCRASH) 300 306 END 301 307 #}}} -
issm/trunk/scripts/dailyrun.sh
r5082 r5591 116 116 fclose(fid); 117 117 end 118 disp('MATLABEXITEDCORRECTLY'); 118 119 exit 119 120 EOF … … 137 138 cat matlab_log.log matlab_log$i.log > matlab_log.log.bak 138 139 mv matlab_log.log.bak matlab_log.log 139 rm matlab_log$i.log140 141 140 done 142 141 #}}} 143 142 #Complete info.log {{{1 143 if [ $(cat matlab_log.log | grep "MATLABEXITEDCORRECTLY" | wc -l) -eq $NUMCPUS_RUN ] 144 then 145 MATLABCRASH=0 146 else 147 MATLABCRASH=1 148 fi 144 149 ELAPSED_RUN=$(timer $INSTALL_TIME) 145 150 ELAPSED_TOTAL=$(timer $START_TIME) … … 147 152 elapsed_run: $(echo $ELAPSED_RUN) 148 153 elapsed_total: $(echo $ELAPSED_TOTAL) 154 matlab_crash: $(echo $MATLABCRASH) 149 155 END 150 156 #}}} -
issm/trunk/scripts/report.sh
r5082 r5591 15 15 EL_RUN=` cat info.log | grep "elapsed_run" | awk '{print $2}'` 16 16 EL_TOTAL=` cat info.log | grep "elapsed_total" | awk '{print $2}'` 17 CRASH=` cat info.log | grep "matlab_crash:" | awk '{print $2}'` 17 18 18 19 #Process matlab_log.log … … 52 53 else 53 54 IS_INSTALL=1 54 fi55 if [ $(wc -l matlab.log | awk '{printf("%s",$1);}') -eq 0 ]56 then57 IS_RUN=058 else59 IS_RUN=160 55 fi 61 56 … … 100 95 101 96 #update status 102 if [ $IS_ RUN-eq 1 ]97 if [ $IS_INSTALL -eq 1 ] 103 98 then 104 cat summary.html | sed -e "s/STATUS/<span style=\"color:#008000\">all test desks have been run<\/span>/g" > summary2.html 105 mv summary2.html summary.html 99 if [ $CRASH -eq 0 ] 100 then 101 cat summary.html | sed -e "s/STATUS/<span style=\"color:#008000\">all test desks have been run<\/span>/g" > summary2.html 102 else 103 cat summary.html | sed -e "s/STATUS/<span style=\"color:#ff0000\">installation successful but Matlab crashed<\/span>/g" > summary2.html 104 fi 106 105 else 107 if [ $IS_INSTALL -eq 1 ] 108 then 109 cat summary.html | sed -e "s/STATUS/<span style=\"color:#ff0000\">installation successful but tests runs failed<\/span>/g" > summary2.html 110 mv summary2.html summary.html 111 else 112 cat summary.html | sed -e "s/STATUS/<span style=\"color:#ff0000\">installation failed<\/span>/g" > summary2.html 113 mv summary2.html summary.html 114 fi 106 cat summary.html | sed -e "s/STATUS/<span style=\"color:#ff0000\">installation failed<\/span>/g" > summary2.html 115 107 fi 116 108 mv summary2.html summary.html 117 109 118 110 #report table 119 if [ $IS_ RUN-eq 1 ];111 if [ $IS_INSTALL -eq 1 ]; 120 112 then 121 113 cat << END > content.html
Note:
See TracChangeset
for help on using the changeset viewer.