--- mitgcm.org/front_content/make_summary 2003/12/06 21:10:18 1.2
+++ mitgcm.org/front_content/make_summary 2003/12/10 20:37:24 1.7
@@ -1,6 +1,6 @@
#! /usr/bin/env bash
-# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.2 2003/12/06 21:10:18 edhill Exp $
+# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.7 2003/12/10 20:37:24 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 "$MACH | " >> $OUTFILE
+ echo "$DATE | " >> $OUTFILE
+ for i in $fresults ; do
+ if test "x$i" = xN ; then
+ echo -n "$i | " >> $OUTFILE
+ else
+ echo -n "$i | " >> $OUTFILE
+ fi
+ done
+ echo "$optfile | " >> $OUTFILE
+ echo "
" >> $OUTFILE
+
+ done
+
+ cat >> $OUTFILE << EOF
+
+
+
+
+EOF
+
+ chmod a+r $OUTFILE
+ echo "done"
+}
+
+
# defaults
PERIOD=`date +%Y`"_"`date +%m`
@@ -58,91 +141,10 @@
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 "$MACH | " >> $OUTFILE
- echo "$DATE | " >> $OUTFILE
- for i in $fresults ; do
- if test "x$i" = xN ; then
- echo -n "$i | " >> $OUTFILE
- else
- echo -n "$i | " >> $OUTFILE
- fi
- done
- echo "$optfile | " >> $OUTFILE
- echo "
" >> $OUTFILE
-
-done
-
-cat >> $OUTFILE << EOF
-
-
-
-
-
-EOF
-
-chmod a+r $OUTFILE
-echo "done"
-
-
# Create the "latest" links
echo "Creating the \"latest\" file for each machine: "
LATEST=$OUTDIR"/latest_"$PERIOD".html"
+the_date=`date`
cat > $LATEST << EOF
@@ -163,14 +165,14 @@
- To enhance and maintain portability, the MITgcm model is tested
+
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
- testing/verification suite for the time period: $PERIOD.
+ verification suite for the time period: $PERIOD.
The machine naming scheme is:
- Machine Type | "Nickname" |
+
Machine Type | Nickname |
Notes |
Intel P4 | "faulks" |
@@ -202,6 +204,13 @@
IBM POWER4 SP | "bs" |
NCAR Bluesky
|
+ AMD Opteron | "eaps" |
+ SuSE Linux 9.0 (x86-64) |
+
+ Sun UltraSparc | "slough" |
+ Solaris 8 |
+ Intel P4 Mosix Cluster | "sea" |
+ Red Hat v7.2 |