[Dart-dev] DART/branches Revision: 13053
dart at ucar.edu
dart at ucar.edu
Fri Mar 22 13:41:31 MDT 2019
thoar at ucar.edu
2019-03-22 13:41:31 -0600 (Fri, 22 Mar 2019)
93
These are the same tests as on the recam branch. needed to reproduce the same test results.
Modified: DART/branches/rma_trunk/developer_tests/run_dev_tests.csh
===================================================================
--- DART/branches/rma_trunk/developer_tests/run_dev_tests.csh 2019-03-22 19:31:27 UTC (rev 13052)
+++ DART/branches/rma_trunk/developer_tests/run_dev_tests.csh 2019-03-22 19:41:31 UTC (rev 13053)
@@ -144,12 +144,31 @@
end
+#----------------------------------------------------------------------
+# Compile and run all location tests
+#----------------------------------------------------------------------
# special for locations
cd $TOPDIR/location
-if ( 1 == 1 ) then
- ./testall.csh
-endif
+
+echo "=================================================================="
+echo "=================================================================="
+echo "Running location tests starting at "`date`
+echo "=================================================================="
+echo "=================================================================="
+
+./testall.csh
+
+echo
+echo
+echo "=================================================================="
+echo "=================================================================="
+echo "Done running location tests at "`date`
+echo "=================================================================="
+echo "=================================================================="
+echo
+echo
+
cd $TOPDIR
Modified: DART/branches/rma_trunk/developer_tests/test_dart.csh
===================================================================
--- DART/branches/rma_trunk/developer_tests/test_dart.csh 2019-03-22 19:31:27 UTC (rev 13052)
+++ DART/branches/rma_trunk/developer_tests/test_dart.csh 2019-03-22 19:41:31 UTC (rev 13053)
@@ -5,8 +5,43 @@
# http://www.image.ucar.edu/DAReS/DART/DART_download
#
# DART $Id$
+#
+# test_dart.csh can be run from the command line or a batch system.
+# This compiles many of the programs (but not all) and
+# runs a limited number of tests.
+#
+#>@todo FIXME ... implement some method to run mpi executables.
+#
+#==========================================================================
+# SLURM directives sbatch test_batch.csh
+#
+# sinfo information about the whole slurm system
+# squeue information about running jobs
+# sbatch submitting a job
+# scancel killing a job
+#
+#SBATCH --ignore-pbs
+#SBATCH --job-name dart_test
+#SBATCH --ntasks-per-node=1
+#SBATCH -t 2:00:00
+#SBATCH -n 1
+#SBATCH -A P86850054
+#SBATCH -p dav
+#SBATCH -o dart_test.log
+#SBATCH --mail-type=END
+#SBATCH --mail-type=FAIL
+#
+#==========================================================================
+# PBS directives qsub test_batch.csh
+#
+#PBS -N dart_test
+#PBS -l walltime=02:00:00
+#PBS -q share
+#PBS -l select=1:ncpus=1
+#PBS -A P86850054
+#PBS -j oe
+#PBS -m abe
-
set clobber
setenv MPIFLAG '-nompi'
@@ -25,11 +60,22 @@
endif
endif
+# Since this script does not launch the mpi executables with an mpirun etc.,
+# this whole script can only possibly test the serial implementation.
+# So - in batch mode, just force it to be nompi.
+#>@todo FIXME ... implement some method to run mpi executables.
+
+if ($?SLURM_JOB_ID) then
+ setenv MPIFLAG '-nompi'
+else if ($?PBS_NODEFILE) then
More information about the Dart-dev
mailing list