[Dart-dev] DART/branches Revision: 13111
dart at ucar.edu
dart at ucar.edu
Tue Apr 16 11:31:28 MDT 2019
nancy at ucar.edu
2019-04-16 11:31:28 -0600 (Tue, 16 Apr 2019)
179
fix up the names of the log files. many of these
converters don't run yet - missing input files or
have way too large input files for testing. we can
work on those bit by bit.
Modified: DART/branches/rma_trunk/observations/obs_converters/run_tests.csh
===================================================================
--- DART/branches/rma_trunk/observations/obs_converters/run_tests.csh 2019-04-15 18:15:15 UTC (rev 13110)
+++ DART/branches/rma_trunk/observations/obs_converters/run_tests.csh 2019-04-16 17:31:28 UTC (rev 13111)
@@ -18,7 +18,8 @@
set startdir=`pwd`
set LOGDIR=${startdir}/testing_logs
-echo putting build and run logs in $LOGDIR
+echo putting build and run logs in:
+echo $LOGDIR
mkdir -p ${LOGDIR}
\rm -f ${LOGDIR}/*
@@ -89,52 +90,54 @@
cd $startdir
-foreach project ( `find . -name quickbuild.csh -print` )
+foreach quickb ( `find . -name quickbuild.csh -print` )
cd $startdir
- set dir = $project:h
- set FAILURE = 0
+ # get the working dir name. also, make a project name by stripping off
+ # the leading ./ and the /work parts of the dirname, and turning slashes
+ # into underscores so we can use the string as part of a log filename.
+ set wdir = $quickb:h
+ set project = `echo $wdir | sed -e 's;^./;;' -e 's;/[^/]*$;;' -e 's;/;_;g'`
echo
echo
echo "=================================================================="
- echo "Compiling obs converter $dir starting at "`date`
+ echo "Compiling obs converter $project starting at "`date`
echo "=================================================================="
echo
echo
- cd $dir
+ cd $wdir
echo
- echo building in $dir
+ echo building in $wdir
- ( ./quickbuild.csh > ${LOGDIR}/buildlog.${dir}.out ) || set FAILURE = 1
+ set FAILURE = 0
+ ( ./quickbuild.csh > ${LOGDIR}/buildlog.${project}.out ) || set FAILURE = 1
echo
- echo
- echo "=================================================================="
if ( $FAILURE ) then
- echo "ERROR - unsuccessful build of $dir at "`date`
+ echo "ERROR - unsuccessful build of $project at "`date`
echo
- switch ( $dir )
+ switch ( $project )
- case *GSI2DART*
+ case GSI2DART
echo " This build expected to fail on case-insensitive filesystems."
breaksw
- case */var/*
+ case var
echo " This build expected to fail unless you have the WRF code in-situ."
breaksw
- case *AIRS*
+ case AIRS
echo " AIRS build is expected to fail due to dependency on hdfeos libs,"
echo " which are not required to be part of the standard DART environment."
breaksw
- case *quikscat*
+ case quikscat
echo " quikscat build is expected to fail due to dependency on mfhdf libs,"
echo " which are not required to be part of the standard DART environment."
breaksw
@@ -144,31 +147,30 @@
breaksw
endsw
else
- echo "Successful build of obs converter $dir ended at "`date`
+ echo "Successful build of obs converter $project ended at "`date`
echo
- echo "+++++++++++++"
- echo "Trying to execute converters in directory $dir"
+ echo "Executing converters in directory $wdir"
\rm -f *.o *.mod
\rm -f Makefile input.nml.*_default .cppdefs
foreach TARGET ( mkmf_* )
+ set FAILURE = 0
set PROG = `echo $TARGET | sed -e 's#mkmf_##'`
More information about the Dart-dev
mailing list