--- mitgcm.org/front_content/make_summary 2003/12/09 18:35:57 1.5 +++ mitgcm.org/front_content/make_summary 2004/01/03 19:25:04 1.10 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.5 2003/12/09 18:35:57 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.10 2004/01/03 19:25:04 edhill Exp $ # # The purpose of this script is to create HTML summaries of the # directories produced by the "parse_emails" script. @@ -19,6 +19,89 @@ exit 1 } +old_summary() +{ + # Create the old-style summary file for $PERIOD + echo -n "Creating the summary file for the period \"$PERIOD\" ... " + cat > $OUTFILE << EOF + + + + + MITgcm testing summary + + + + + + +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 "" >> $OUTFILE + echo "" >> $OUTFILE + echo "" >> $OUTFILE + for i in $fresults ; do + if test "x$i" = xN ; then + echo -n "" >> $OUTFILE + else + echo -n "" >> $OUTFILE + fi + done + echo "" >> $OUTFILE + echo "" >> $OUTFILE + + done + + cat >> $OUTFILE << EOF + +
$MACH$DATE$i$i$optfile
+ + +EOF + + chmod a+r $OUTFILE + echo "done" +} + + # defaults PERIOD=`date +%Y`"_"`date +%m` @@ -58,88 +141,6 @@ OUTDIR="/u/u0/httpd/html/testing/summary" OUTFILE=$OUTDIR"/summary_"$PERIOD".html" - -# Create the summary file for $PERIOD -echo -n "Creating the summary file for the period \"$PERIOD\" ... " -cat > $OUTFILE << EOF - - - - - MITgcm testing summary - - - - - - -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 "" >> $OUTFILE - echo "" >> $OUTFILE - echo "" >> $OUTFILE - for i in $fresults ; do - if test "x$i" = xN ; then - echo -n "" >> $OUTFILE - else - echo -n "" >> $OUTFILE - fi - done - echo "" >> $OUTFILE - echo "" >> $OUTFILE - -done - -cat >> $OUTFILE << EOF - -
$MACH$DATE$i$i$optfile
- - - -EOF - -chmod a+r $OUTFILE -echo "done" - - # Create the "latest" links echo "Creating the \"latest\" file for each machine: " LATEST=$OUTDIR"/latest_"$PERIOD".html" @@ -156,8 +157,8 @@ - - + + @@ -203,9 +204,17 @@ IBM POWER4 SP "bs" NCAR Bluesky - AMD Opteron "eaps" + AMD Opteron "adams" SuSE Linux 9.0 (x86-64) + Sun UltraSparc "slough" + Solaris 8 + Intel P4 Mosix Cluster "sea" + Red Hat v7.2 + + AMD Athlon "eddy" + Red Hat 9 +