Changeset 2186
- Timestamp:
- 09/10/09 14:11:31 (16 years ago)
- Location:
- issm/trunk/cron
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/nightlyrun.sh
r2185 r2186 107 107 cd $ep 108 108 cp configs/$OS/* . 109 ./install.sh $NUMCPUS 109 ./install.sh $NUMCPUS_INSTALL 110 110 cd .. 111 111 done … … 135 135 then 136 136 cd $ISSM_DIR/src/c 137 ./intel-compile.sh >> ../../c-compilation.log 2>&1137 ./intel-compile.sh 138 138 cd $ISSM_DIR/src/mex 139 make install >> ../../mex-compilation.log 2>&1139 make install 140 140 cd $ISSM_DIR 141 141 else 142 make -j $NUMCPUS >> ../../cmex-compilation.log 2>&1143 make -j $NUMCPUS install >> ../../cmex-compilation.log 2>&1142 make -j $NUMCPUS_INSTALL 143 make -j $NUMCPUS_INSTALL install 144 144 fi 145 145 fi … … 162 162 #Launch matlab and the nightly run script 163 163 cd $ISSM_DIR/cron/ 164 ./run.sh $ NROPTIONS164 ./run.sh $1 165 165 ELAPSED_RUN=$(timer $INSTALL_TIME) 166 166 ELAPSED_TOTAL=$(timer $START_TIME) … … 176 176 exit 177 177 178 #send mail 179 source cron/mailinglist 180 for i in `echo $MAILINGLIST`; do 181 182 if [ "$OS" = "winxp32" ] 183 then 184 email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE , operating system: $OS. " $i < report.html 185 else 186 if [ "$OS" = "linux64" ] 178 #send mail if requested 179 if [ "$SKIPMAIL" != "yes" ] 180 then 181 source cron/mailinglist 182 for i in `echo $MAILINGLIST`; do 183 184 if [ "$OS" = "winxp32" ] 187 185 then 188 cat - report.html <<HERE | /usr/lib/sendmail -oi -t 186 email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE , operating system: $OS. " $i < report.html 187 else 188 if [ "$OS" = "linux64" ] 189 then 190 cat - report.html <<HERE | /usr/lib/sendmail -oi -t 189 191 From: "ISSM Nightly run" <$EMAIL_ADRESS> 190 192 To: $i … … 194 196 HERE 195 197 else 196 198 cat - report.html <<HERE | /usr/sbin/sendmail -oi -t 197 199 From: "ISSM Nightly run" <$EMAIL_ADRESS> 198 200 To: $i … … 201 203 Content-Type: text/html 202 204 HERE 205 fi 203 206 fi 204 fi 205 206 done 207 done 208 fi -
issm/trunk/cron/report.sh
r2185 r2186 125 125 126 126 #report content 127 if [ $IS_ INSTALL-eq 1 ];127 if [ $IS_RUN -eq 1 ]; 128 128 then 129 129 cat << END > content.html -
issm/trunk/cron/run.sh
r2185 r2186 1 1 #!/bin/bash 2 2 3 numprocs=8; 3 #get configs 4 if [ $# -ne 1 ]; 5 then 6 #no config file specified: exit 7 echo "no config file specified. Exiting..." 8 exit 1 9 fi 10 source $1; 4 11 5 12 #create softlink to startup 6 rm startup.m7 13 cd $ISSM_DIR/test/Verification/NightlyRun/ 14 if [ -e startup.m ] 15 then 16 rm startup.m 17 fi 8 18 ln -s $ISSM_DIR/startup.m . 9 19 10 20 #Launch all tests on different cpus 11 for (( i=1;i<=$ numprocs;i++ ))21 for (( i=1;i<=$NUMCPUS_RUN;i++ )) 12 22 do 13 23 #Launch matlab and the nightly run script … … 17 27 $(if [ "$1" = "" ] 18 28 then 19 echo "nightlyrun ('rank',$i,'numprocs',$numprocs);"29 echo "nightlyrun;" 20 30 else 21 echo "nightlyrun($ 1,'rank',$i,'numprocs',$numprocs);"31 echo "nightlyrun($NROPTIONS,'rank',$i,'numproc',$NUMCPUS_RUN);" 22 32 fi 23 33 ) … … 26 36 directory=strsplit(pwd,'/'); 27 37 message=getReport(me) 28 fid=fopen([ISSM_DIR '/test/Verification/NightlyRun/matlaberror.log'], ' wt');38 fid=fopen([ISSM_DIR '/test/Verification/NightlyRun/matlaberror.log'], 'at'); 29 39 fprintf(fid,'\nMatlab error occured in: %s\n\n',directory{end}); 30 40 fprintf(fid,'%s',message); … … 43 53 #concatenate all reports 44 54 mv matlab_log1.log matlab_log.log 45 for (( i=2;i<=$ numprocs;i++ ))55 for (( i=2;i<=$NUMCPUS_RUN;i++ )) 46 56 do 47 57 cat matlab_log.log matlab_log$i.log > matlab_log.log.bak
Note:
See TracChangeset
for help on using the changeset viewer.