--- mitgcm.org/front_content/make_summary 2003/12/10 20:37:24 1.7 +++ mitgcm.org/front_content/make_summary 2008/04/20 19:55:18 1.38 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.7 2003/12/10 20:37:24 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.38 2008/04/20 19:55:18 jmc Exp $ # # The purpose of this script is to create HTML summaries of the # directories produced by the "parse_emails" script. @@ -19,105 +19,23 @@ 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" -} - - +CURR_PER=`date +%Y`"_"`date +%m` # defaults -PERIOD=`date +%Y`"_"`date +%m` +PERIOD=$CURR_PER # Parse options ac_prev= for ac_option ; do - + # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi - + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - + case $ac_option in -help | --help | -h | --h) @@ -127,25 +45,27 @@ ac_prev=PERIOD ;; --date=* | -date=*) PERIOD=$ac_optarg ;; - + *) echo "Error: don't understand argument \"$ac_option\"" usage ;; - + esac - + done +#INDIR="/net/orwell/export/export-9/mitgcm-testing/results/$PERIOD" INDIR="/u/u0/httpd/html/testing/results/$PERIOD" OUTDIR="/u/u0/httpd/html/testing/summary" -OUTFILE=$OUTDIR"/summary_"$PERIOD".html" -# Create the "latest" links +OUTFILE=$OUTDIR"/output_"$PERIOD".html" +res_url="http://mitgcm.org/testing/" + +# Create the links in $OUTFILE : echo "Creating the \"latest\" file for each machine: " -LATEST=$OUTDIR"/latest_"$PERIOD".html" the_date=`date` -cat > $LATEST << EOF +cat > $OUTFILE << EOF @@ -157,17 +77,17 @@ - - + + -

The MITgcm model is tested - (compiled and run) in an automated fashion on a varirety of - different machines. The following is a summary of the MITgcm +

The MITgcm model is tested + (compiled and run) in an automated fashion on a varirety of + different machines. The following is a summary of the MITgcm verification suite for the time period: $PERIOD.

The machine naming scheme is:

@@ -175,42 +95,86 @@ Machine Type Nickname Notes - Intel P4 "faulks" - Red Hat 7.3 (the "original" testing machine) - Intel P4 "shelley" - Red Hat 9 + Intel P4 "faulks" + Fedora Core 6 + Intel P4 "eddy" + Fedora Core 5 + Intel P4 "bay" + Fedora Core 5 + Intel P4 "meander" + Fedora Core 7 + + ACESgrid Dell + Xeon "aces"Fedora Core 2 + + + + SGI Altix Cluster "columbia" + + NAS Columbia - SGI Altix "orion" - JPL Supercomputing and - Visualization Facility + + IBM POWER4 SP "edvir" + AIX 5.2 + IBM POWER5+ SP "blueice" + NCAR Blueice - AMD Opteron "eaps" - SuSE Linux 9.0 (x86-64) - Sun UltraSparc "slough" - Solaris 8 - Intel P4 Mosix Cluster "sea" - Red Hat v7.2 + AMD Opteron "batsi" + Fedora Core 4 (AMD64) + AMD Opteron "starp" + SuSE SLES 10 (AMD64) + + Sun UltraSparc IV "rays1" + Solaris 9 + + NEC SX-8 "sx8" + Super-UX + Cray XD1 (AMD Opteron) "xd1" + Cray HPC enhanced Linux 2.6.5 + PowerPC970MP cluster "bigred" + SuSE SLES 9 (PPC) + + HP test-drive + (Pentium III) "td152" FreeBSD 6.2 + HP test-drive + (Itanium II) "td187" SuSE SLES 10 + HP test-drive + (PA-RISC 8700) "td192" HP-UX 11i 11.11 + HP test-drive + (Itanium II) "td194" HP-UX 11i v3