--- mitgcm.org/front_content/make_summary 2003/12/07 00:23:45 1.3 +++ mitgcm.org/front_content/make_summary 2008/01/19 16:18:54 1.36 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.3 2003/12/07 00:23:45 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.36 2008/01/19 16:18:54 jmc Exp $ # # The purpose of this script is to create HTML summaries of the # directories produced by the "parse_emails" script. @@ -19,22 +19,23 @@ exit 1 } +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) @@ -44,106 +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 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" +OUTFILE=$OUTDIR"/output_"$PERIOD".html" +res_url="http://mitgcm.org/testing/" -# Create the "latest" links +# Create the links in $OUTFILE : echo "Creating the \"latest\" file for each machine: " -LATEST=$OUTDIR"/latest_"$PERIOD".html" -cat > $LATEST << EOF +the_date=`date` +cat > $OUTFILE << EOF @@ -155,54 +77,101 @@ - - + + -

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:

- + - - - - + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + +
Machine Type "Nickname"
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 "orion"JPL Supercomputing and - Visualization Facility
SGI Altix Cluster "columbia" + NAS Columbia
IBM POWER4 SP "edvir" AIX 5.2
IBM POWER5+ SP "blueice"NCAR Blueice
AMD Opteron "batsi"Fedora Core 4 (AMD64)
AMD Opteron "starp"SuSE SLES 10 (AMD64)
Sun UltraSparc IV "rays1"Solaris 9
Sun UltraSparc IV "model"Solaris 9
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