-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.sh
executable file
·37 lines (30 loc) · 1.03 KB
/
run-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# This script calls each of the DCM tests in the range STRT to STOP
# Set some variables to be used by the test scripts
export DEVCHARMM=/opt/cluster/programs/charmm/developer/dev-release-fmdcm/bin/charmm # development version to be tested
export REFCHARMM=/opt/cluster/programs/charmm/developer/dev-release-dcm/build/cmake/charmm # reference stable CHARMM release
export NPROC=4 # number of MPI cores to use for the tests
export WORKDIR=$(pwd) # Set the root folder containing the tests
# Set some local parameters
STRT=1 # First test to run (1)
STOP=17 # Last test to run (17)
GREEN='\033[1;32m'
NC='\033[0m' # No Color
# Set up the environment for the CHARMM code referenced above
module load gcc/gcc-9.2.0-openmpi-4.0.2-ib
# Now we start the tests
for i in $(seq $STRT 1 $STOP); do
if [[ -d test$i ]]; then
echo
printf "${GREEN}TEST$i:${NC}\n\n"
cd test$i
else
echo " Error: directory test$i not found in $WORKDIR"
exit 0
fi
./run-test.sh
cd $WORKDIR
done
echo
echo "TODO: POLARIZABLE EWALD"
echo