| 19 |
exit 1 |
exit 1 |
| 20 |
} |
} |
| 21 |
|
|
| 22 |
|
CURR_PER=`date +%Y`"_"`date +%m` |
| 23 |
# defaults |
# defaults |
| 24 |
PERIOD=`date +%Y`"_"`date +%m` |
PERIOD=$CURR_PER |
| 25 |
|
|
| 26 |
# Parse options |
# Parse options |
| 27 |
ac_prev= |
ac_prev= |
| 59 |
INDIR="/u/u0/httpd/html/testing/results/$PERIOD" |
INDIR="/u/u0/httpd/html/testing/results/$PERIOD" |
| 60 |
OUTDIR="/u/u0/httpd/html/testing/summary" |
OUTDIR="/u/u0/httpd/html/testing/summary" |
| 61 |
|
|
| 62 |
OUTFILE=$OUTDIR"/summary_"$PERIOD".html" |
OUTFILE=$OUTDIR"/output_"$PERIOD".html" |
| 63 |
res_url="http://mitgcm.org/testing/" |
res_url="http://mitgcm.org/testing/" |
| 64 |
|
|
| 65 |
# Create the "latest" links |
# Create the links in $OUTFILE : |
| 66 |
echo "Creating the \"latest\" file for each machine: " |
echo "Creating the \"latest\" file for each machine: " |
|
LATEST=$OUTDIR"/latest_"$PERIOD".html" |
|
| 67 |
the_date=`date` |
the_date=`date` |
| 68 |
cat > $LATEST << EOF |
cat > $OUTFILE << EOF |
| 69 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 70 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 71 |
|
|
| 150 |
<tr bgcolor="#bbffdd"> <td> AMD Opteron </td> <td>"starp"</td> |
<tr bgcolor="#bbffdd"> <td> AMD Opteron </td> <td>"starp"</td> |
| 151 |
<td>SuSE SLES 10 (AMD64)</td> </tr> |
<td>SuSE SLES 10 (AMD64)</td> </tr> |
| 152 |
|
|
| 153 |
<tr bgcolor="#bbddff"> <td> Sun UltraSparc IV </td> <td>"rays1"</td> |
<tr bgcolor="#bbddff"> <td> Sun UltraSparc IV </td> <td>"rays"</td> |
| 154 |
<td>Solaris 9</td> </tr> |
<td>Solaris 9</td> </tr> |
| 155 |
|
<!-- |
| 156 |
<tr bgcolor="#bbffdd"> <td> Sun UltraSparc IV </td> <td>"model"</td> |
<tr bgcolor="#bbffdd"> <td> Sun UltraSparc IV </td> <td>"model"</td> |
| 157 |
<td>Solaris 9</td> </tr> |
<td>Solaris 9</td> </tr> |
| 158 |
|
--> |
| 159 |
|
<tr bgcolor="#bbffdd"> <td> NEC SX-8 </td> <td>"sx8"</td> |
| 160 |
|
<td>Super-UX </td> </tr> |
| 161 |
<tr bgcolor="#bbddff"> <td> Cray XD1 (AMD Opteron) </td> <td>"xd1"</td> |
<tr bgcolor="#bbddff"> <td> Cray XD1 (AMD Opteron) </td> <td>"xd1"</td> |
| 162 |
<td>Cray HPC enhanced Linux 2.6.5 </td> </tr> |
<td>Cray HPC enhanced Linux 2.6.5 </td> </tr> |
| 163 |
<tr bgcolor="#bbffdd"> <td> PowerPC970MP cluster </td> <td>"bigred"</td> |
<tr bgcolor="#bbffdd"> <td> PowerPC970MP cluster </td> <td>"bigred"</td> |
| 171 |
(Itanium II) </td> <td>"td187"</td> <td>SuSE SLES 10 </td> </tr> |
(Itanium II) </td> <td>"td187"</td> <td>SuSE SLES 10 </td> </tr> |
| 172 |
<tr bgcolor="#bbddff"> <td><a |
<tr bgcolor="#bbddff"> <td><a |
| 173 |
href="http://www.testdrive.hp.com/current.shtml"> HP test-drive </a> |
href="http://www.testdrive.hp.com/current.shtml"> HP test-drive </a> |
| 174 |
(PA-RISC 8700) </td> <td>"td192"</td> <td> HP-UX 11i 11.11 </td> </tr> |
(PA-RISC 8900) </td> <td>"td191"</td> <td> HP-UX 11i 11.11 </td> </tr> |
| 175 |
<tr bgcolor="#bbffdd"> <td><a |
<tr bgcolor="#bbffdd"> <td><a |
| 176 |
href="http://www.testdrive.hp.com/current.shtml"> HP test-drive </a> |
href="http://www.testdrive.hp.com/current.shtml"> HP test-drive </a> |
| 177 |
(Itanium II) </td> <td>"td194"</td> <td> HP-UX 11i v3 </td> </tr> |
(Itanium II) </td> <td>"td194"</td> <td> HP-UX 11i v3 </td> </tr> |
| 204 |
ncolor="#bbddff" |
ncolor="#bbddff" |
| 205 |
|
|
| 206 |
MACHINES="faulks aces eddy bay meander" |
MACHINES="faulks aces eddy bay meander" |
| 207 |
MACHINES="$MACHINES edvir rays1 model columbia" |
MACHINES="$MACHINES columbia edvir rays sx8 xd1" |
| 208 |
MACHINES="$MACHINES xd1 batsi starp" |
MACHINES="$MACHINES batsi starp" |
| 209 |
|
|
| 210 |
( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all |
( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all |
| 211 |
|
|
| 272 |
if test -r $dir/summary.txt ; then |
if test -r $dir/summary.txt ; then |
| 273 |
grep '^[YN] [YN] [YN] [YN]' $dir/summary.txt > ./all_tests 2>/dev/null |
grep '^[YN] [YN] [YN] [YN]' $dir/summary.txt > ./all_tests 2>/dev/null |
| 274 |
t_tot=`cat ./all_tests | wc -l | sed -e 's| ||g'` |
t_tot=`cat ./all_tests | wc -l | sed -e 's| ||g'` |
| 275 |
t_pass=`grep 'pass ' ./all_tests | wc -l | sed -e 's| ||g'` |
t_pass=`grep '^Y Y Y Y' ./all_tests | grep 'pass ' | wc -l | sed -e 's| ||g'` |
| 276 |
fi |
fi |
| 277 |
rm -f ./all_tests |
rm -f ./all_tests |
| 278 |
# echo "${dir##*/} : $t_pass out of $t_tot" |
# echo "${dir##*/} : $t_pass out of $t_tot" |
| 311 |
optf=`echo $tline | cut -d " " -f 3` |
optf=`echo $tline | cut -d " " -f 3` |
| 312 |
DAY=`echo $tline | cut -d " " -f 2` |
DAY=`echo $tline | cut -d " " -f 2` |
| 313 |
URL="results/$PERIOD/$ldir" |
URL="results/$PERIOD/$ldir" |
| 314 |
cat <<EOF >>$LATEST |
cat <<EOF >>$OUTFILE |
| 315 |
<tr bgcolor="$color"> |
<tr bgcolor="$color"> |
| 316 |
<td height="0"> $mname </td> |
<td height="0"> $mname </td> |
| 317 |
<td> $optf </td> |
<td> $optf </td> |
| 326 |
|
|
| 327 |
done |
done |
| 328 |
|
|
| 329 |
cat >> $LATEST << EOF |
cat >> $OUTFILE << EOF |
| 330 |
<tr bgcolor="#00cccc"> |
<tr bgcolor="#00cccc"> |
| 331 |
<td height="0" colspan="6" align="center" >This table generated on: $the_date</td> |
<td height="0" colspan="6" align="center" >This table generated on: $the_date</td> |
| 332 |
</tr> |
</tr> |
| 345 |
|
|
| 346 |
rm -f ./dir_all ./mlist |
rm -f ./dir_all ./mlist |
| 347 |
|
|
| 348 |
CURR_PER=`date +%Y`"_"`date +%m` |
#- put the file in place |
| 349 |
|
chgrp gcmpack $OUTFILE |
| 350 |
|
chmod 664 $OUTFILE |
| 351 |
|
LATEST=$OUTDIR"/latest_"$PERIOD".html" |
| 352 |
|
mv -f $OUTFILE $LATEST |
| 353 |
|
|
| 354 |
if test "x$PERIOD" = "x$CURR_PER" ; then |
if test "x$PERIOD" = "x$CURR_PER" ; then |
| 355 |
cp $LATEST ./testing.xml |
cp $LATEST ./testing.xml |
| 356 |
( |
( |