19 |
exit 1 |
exit 1 |
20 |
} |
} |
21 |
|
|
|
old_summary() |
|
|
{ |
|
|
# Create the old-style summary file for $PERIOD |
|
|
echo -n "Creating the summary file for the period \"$PERIOD\" ... " |
|
|
cat > $OUTFILE << EOF |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
|
<head> |
|
|
<title>MITgcm testing summary</title> |
|
|
<meta name="author" content="Ed Hill" /> |
|
|
<base href="http://mitgcm.org/testing/summary/" /> |
|
|
</head> |
|
|
<body> |
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
|
|
|
|
|
EOF |
|
|
|
|
|
# all_files=`find $INDIR -name summary.txt` |
|
|
all_files=`( cd $INDIR ; find . -name summary.txt )` |
|
|
|
|
|
for f in $all_files ; do |
|
|
|
|
|
file=$INDIR"/"${f/.\//} |
|
|
grep "^fresults" $file > /dev/null 2>&1 |
|
|
RETVAL=$? |
|
|
if test "x$RETVAL" != x0 ; then |
|
|
continue |
|
|
fi |
|
|
|
|
|
url=`echo $file | sed -e 's|/u/edhill/www|http://mitgcm.org/~edhill|'` |
|
|
url=`echo $url | sed -e 's|summary.txt||'` |
|
|
MACH= |
|
|
fresults= |
|
|
color="#eeeeee" |
|
|
|
|
|
source $file |
|
|
echo $fresults | grep FAIL > /dev/null 2>&1 |
|
|
if test "x$?" = x0 ; then |
|
|
color="#ff99ff" |
|
|
fi |
|
|
echo $fresults | grep pass > /dev/null 2>&1 |
|
|
if test "x$?" = x0 ; then |
|
|
color="#99ffff" |
|
|
fi |
|
|
|
|
|
gm_state=`echo $file | sed -e 's/summary.txt/genmake_state/g'` |
|
|
if test -r $gm_state ; then |
|
|
grep '^OPTFILE=' $gm_state > ./tmp_state |
|
|
source ./tmp_state |
|
|
else |
|
|
optfile="unknown" |
|
|
fi |
|
|
optfile=`echo $OPTFILE | awk -F '/' '{print $NF}'` |
|
|
|
|
|
echo "<tr bgcolor=\"$color\">" >> $OUTFILE |
|
|
echo "<td height=\"0\">$MACH</td>" >> $OUTFILE |
|
|
echo "<td><a href=\"$url\">$DATE</a></td>" >> $OUTFILE |
|
|
for i in $fresults ; do |
|
|
if test "x$i" = xN ; then |
|
|
echo -n "<td bgcolor=\"#ff6666\">$i</td>" >> $OUTFILE |
|
|
else |
|
|
echo -n "<td>$i</td>" >> $OUTFILE |
|
|
fi |
|
|
done |
|
|
echo "<td>$optfile</td>" >> $OUTFILE |
|
|
echo "</tr>" >> $OUTFILE |
|
|
|
|
|
done |
|
|
|
|
|
cat >> $OUTFILE << EOF |
|
|
|
|
|
</table> |
|
|
</body> |
|
|
</html> |
|
|
EOF |
|
|
|
|
|
chmod a+r $OUTFILE |
|
|
echo "done" |
|
|
} |
|
|
|
|
|
|
|
22 |
# defaults |
# defaults |
23 |
PERIOD=`date +%Y`"_"`date +%m` |
PERIOD=`date +%Y`"_"`date +%m` |
24 |
|
|
136 |
<tr bgcolor="#bbddff"> <td> Intel P4 Mosix Cluster </td> <td>"sea"</td> |
<tr bgcolor="#bbddff"> <td> Intel P4 Mosix Cluster </td> <td>"sea"</td> |
137 |
<td>Red Hat v7.2</td> </tr> |
<td>Red Hat v7.2</td> </tr> |
138 |
|
|
139 |
<tr bgcolor="#bbffdd"> <td> AMD Athlon XP 2500+</td> <td>"eddy"</td> |
<tr bgcolor="#bbffdd"> <td> Intel P4</td> <td>"eddy"</td> |
140 |
<td>Fedora Core 4</td> </tr> |
<td>Fedora Core 5</td> </tr> |
141 |
<tr bgcolor="#bbddff"> <td> AMD Opteron cluster </td> <td>"dolphin"</td> |
<tr bgcolor="#bbddff"> <td> AMD Opteron cluster </td> <td>"dolphin"</td> |
142 |
<td>SuSE SLES v8.1</td> </tr> |
<td>SuSE SLES v8.1</td> </tr> |
143 |
|
|
145 |
<td>Mac OSX 10.3 (gcc 3.4) </td> </tr> |
<td>Mac OSX 10.3 (gcc 3.4) </td> </tr> |
146 |
|
|
147 |
<tr bgcolor="#bbddff"> <td> <a href="http://acesgrid.org">ACESgrid Dell |
<tr bgcolor="#bbddff"> <td> <a href="http://acesgrid.org">ACESgrid Dell |
148 |
Xeon</a> </td> <td>"itrda"</td><td>Fedora Core 2</td> </tr> |
Xeon</a> </td> <td>"aces"</td><td>Fedora Core 2</td> </tr> |
149 |
|
|
150 |
<!-- |
<!-- |
151 |
|
|
179 |
ncolor="#bbddff" |
ncolor="#bbddff" |
180 |
res_url="http://mitgcm.org/testing/" |
res_url="http://mitgcm.org/testing/" |
181 |
|
|
182 |
MACHINES="faulks shelley myrinet eaps halem columbia two" |
MACHINES="faulks aces eddy bay meander" |
183 |
MACHINES="$MACHINES hopper lomax turing orion bf bs slough sea" |
MACHINES="$MACHINES edvir rays1 model columbia" |
184 |
MACHINES="$MACHINES eddy adams dolphin hemmingway altix350" |
MACHINES="$MACHINES xd1 batsi starp" |
185 |
|
|
186 |
( cd $INDIR ; ls -1 -t ) > ./dir_all |
( cd $INDIR ; ls -1 -t ) > ./dir_all |
187 |
|
|
229 |
fi |
fi |
230 |
|
|
231 |
ADJOINT= |
ADJOINT= |
232 |
|
RESTART=0 |
233 |
if test -r $dir/summary.txt ; then |
if test -r $dir/summary.txt ; then |
234 |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null` |
235 |
eval $comm |
eval $comm |
236 |
|
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
237 |
fi |
fi |
238 |
if test "x$ADJOINT" = x ; then |
if test "x$RESTART" = x0 ; then |
239 |
kind="forward" |
kind="forward" |
|
else |
|
240 |
test "x$ADJOINT" = xtrue && kind="adjoint" |
test "x$ADJOINT" = xtrue && kind="adjoint" |
241 |
|
else |
242 |
|
kind="restart" |
243 |
fi |
fi |
244 |
|
|
245 |
t_pass="--" |
t_pass="--" |
246 |
t_tot="--" |
t_tot="--" |
247 |
if test -r $dir/summary.txt ; then |
if test -r $dir/summary.txt ; then |
248 |
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 |
249 |
t_tot=`cat ./all_tests | wc -l | sed -e 's| ||g'` |
t_tot=`cat ./all_tests | wc -l | sed -e 's| ||g'` |
250 |
grep '^Y Y Y Y ' ./all_tests > ./all_ran 2>/dev/null |
t_pass=`grep 'pass ' ./all_tests | wc -l | sed -e 's| ||g'` |
|
grep advect_ ./all_ran 2>/dev/null > ./all_ran_advect |
|
|
t_advect=`cat ./all_ran_advect | wc -l | sed -e 's| ||g'` |
|
|
digits=`cat ./all_ran_advect | awk '{print $9}'` |
|
|
t_advect_pass=0 |
|
|
for k in $digits ; do |
|
|
test "x$k" = x-- && k=0 |
|
|
test $k -ge 9 && t_advect_pass=$(( $t_advect_pass + 1 )) |
|
|
done |
|
|
grep -v advect ./all_ran 2>/dev/null > ./all_ran_noadvect |
|
|
digits=`cat ./all_ran_noadvect | awk '{print $5}'` |
|
|
t_sum=0 |
|
|
for k in $digits ; do |
|
|
test "x$k" = x-- && k=0 |
|
|
test $k -ge 9 && t_sum=$(( $t_sum + 1 )) |
|
|
done |
|
|
t_pass=$(( $t_sum + $t_advect_pass )) |
|
251 |
fi |
fi |
252 |
rm -f ./all_tests ./all_ran ./all_ran_advect ./all_ran_noadvect |
rm -f ./all_tests |
253 |
# echo "${dir##*/} : $t_pass out of $t_tot" |
# echo "${dir##*/} : $t_pass out of $t_tot" |
254 |
|
|
255 |
tokens=`echo $i | sed -e 's|_| |g'` |
tokens=`echo $i | sed -e 's|_| |g'` |
308 |
|
|
309 |
</table> |
</table> |
310 |
|
|
311 |
<p>Examples of the scripts used for these testing runs can be obtained |
<p>Examples of the scripts used for these testing runs can be obtained from: <a |
312 |
from <a |
href="http://mitgcm.org/cgi-bin/viewcvs.cgi/MITgcm/tools/example_scripts/"> |
313 |
href="http://dev.mitgcm.org/cgi-bin/viewcvs.cgi/MITgcm_contrib/test_scripts/"> |
MITgcm/tools/example_scripts</a>.</p> |
|
the "contrib" area of the MITgcm CVS archive</a>.</p> |
|
314 |
|
|
315 |
|
|
316 |
</body> |
</body> |