[Dart-dev] DART/branches Revision: 11071
dart at ucar.edu
dart at ucar.edu
Thu Feb 9 09:24:15 MST 2017
nancy at ucar.edu
2017-02-09 09:24:15 -0700 (Thu, 09 Feb 2017)
165
updates to the test program to move more of the
logic down into directory specific scripts.
udpate the divider sections to make it easier
to find in the long logs.
Modified: DART/branches/rma_single_file/location/testall.csh
===================================================================
--- DART/branches/rma_single_file/location/testall.csh 2017-02-09 16:22:49 UTC (rev 11070)
+++ DART/branches/rma_single_file/location/testall.csh 2017-02-09 16:24:15 UTC (rev 11071)
@@ -6,35 +6,55 @@
#
# DART $Id$
-# this script runs the location test code for each of the
+# this script builds and runs the location test code for each of the
# possible location modules.
-set LIST = 'annulus column oned threed_sphere twod twod_sphere threed threed_cartesian'
+set LOCLIST = 'annulus column oned threed_sphere twod twod_sphere threed threed_cartesian'
# clean up from before
-foreach i ( $LIST )
- # do not cd so as to not accidently remove files in the
- # wrong place if the cd fails.
- rm -f $i/test/*.o $i/test/*.mod $i/test/input.nml*_default $i/test/dart_log.*
- rm -f $i/test/Makefile $i/test/location_test_file* $i/test/location_test
+foreach i ( $LOCLIST )
+ # do not cd so as to not accidently remove files in the
+ # wrong place if the cd fails.
+ rm -f $i/test/*.o \
+ $i/test/*.mod \
+ $i/test/input.nml*_default \
+ $i/test/dart_log.* \
+ $i/test/Makefile \
+ $i/test/location_test_file* \
+ $i/test/location_test
end
# and now build afresh and run tests
-foreach i ( $LIST )
+foreach i ( $LOCLIST )
+
+ echo
+ echo
+ echo "=================================================================="
+ echo "=================================================================="
+ echo "Starting tests of location module $i at `date`"
+ echo "=================================================================="
+ echo "=================================================================="
+ echo
+ echo
+
cd $i/test
- echo ""
- echo start $i test
- echo start $i test
- echo start $i test
+
./mkmf_location_test
make
ls -l location_test
./location_test < test.in
+
cd ../..
- echo end $i test
- echo end $i test
- echo end $i test
- echo ""
+
+ echo
+ echo
+ echo "=================================================================="
+ echo "=================================================================="
+ echo "Tests of location module $i complete at `date`
+ echo "=================================================================="
+ echo "=================================================================="
+ echo
+ echo
end
exit 0
Added: DART/branches/rma_single_file/models/buildall.csh
===================================================================
--- DART/branches/rma_single_file/models/buildall.csh (rev 0)
+++ DART/branches/rma_single_file/models/buildall.csh 2017-02-09 16:24:15 UTC (rev 11071)
@@ -0,0 +1,130 @@
+#!/bin/csh
+#
+# DART software - Copyright UCAR. This open source software is provided
+# by UCAR, "as is", without charge, subject to all terms of use at
+# http://www.image.ucar.edu/DAReS/DART/DART_download
+#
+# DART $Id$
+#
+# build and test all the models given in the list.
+# usage: [ -mpi | -nompi]
+#
+#----------------------------------------------------------------------
+
+setenv usingmpi 0
+
+if ( $#argv > 0 ) then
+ if ("$argv[1]" == "-mpi") then
+ setenv usingmpi 1
+ else if ("$argv[1]" == "-nompi") then
More information about the Dart-dev
mailing list