File: RunTest.sh

package info (click to toggle)
cpptraj 5.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 138,900 kB
  • sloc: cpp: 145,621; ansic: 34,635; sh: 11,365; f90: 971; makefile: 770; awk: 242
file content (38 lines) | stat: -rwxr-xr-x 737 bytes parent folder | download
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
38
#!/bin/bash

. ../MasterTest.sh

# Clean
CleanFiles jcoupling.in Jcoupling.dat jc.dat

TESTNAME='J-coupling tests'
Requires netcdf
INPUT="-i jcoupling.in"
# Test 1
UNITNAME='J-Coupling single frame test'
CheckFor maxthreads 1 file ../../dat/Karplus.txt
if [ $? -eq 0 ] ; then
  cat > jcoupling.in <<EOF
noprogress
parm ../tz2.parm7
trajin ../tz2.nc 1 1
jcoupling outfile Jcoupling.dat kfile ../../dat/Karplus.txt
EOF
  RunCpptraj "$UNITNAME"
  DoTest Jcoupling.dat.save Jcoupling.dat
fi

UNITNAME='J-Coupling extended test'
CheckFor amberorcpptraj 
if [ $? -eq 0 ] ; then
  cat > jcoupling.in <<EOF
parm ../DPDP.parm7
trajin ../DPDP.nc
jcoupling out jc.dat :2
EOF
  RunCpptraj "$UNITNAME."
  DoTest jc.dat.save jc.dat
fi
EndTest

exit 0