File: RunTest.sh

package info (click to toggle)
cpptraj 5.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 138,900 kB
  • sloc: cpp: 145,621; ansic: 34,635; sh: 11,365; f90: 971; makefile: 770; awk: 242
file content (81 lines) | stat: -rwxr-xr-x 1,585 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash

. ../MasterTest.sh

CleanFiles load.in d1-10.dat d1-12.dat
TESTNAME='COORDS data set tests'
Requires netcdf
INPUT="-i load.in"
# Generate comparison file
Generate() {
cat > load.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc
trajin ../tz2.nc 30 88 2
distance d1-10 :1@CA :10@CA out d1-10.dat.save
EOF
RunCpptraj "Generating comparison file"
}
#Generate

# Loadcrd Test
LoadCrdTest() {
cat > load.in <<EOF
parm ../tz2.parm7
loadcrd ../tz2.nc CRD
loadcrd ../tz2.nc CRD 30 88 2
crdaction CRD distance d1-10 :1@CA :10@CA out d1-10.dat
list dataset
EOF
RunCpptraj "LoadCrd test."
DoTest d1-10.dat.save d1-10.dat
}

# Loadcrd append diff files test
LoadCrdAppend() {
cat > load.in <<EOF
parm ../tz2.parm7
loadcrd ../tz2.nc TZ2
loadcrd ../tz2.pdb TZ2
loadcrd ../tz2.rst7 TZ2
crdaction TZ2 distance d1-12 :1 :12 out d1-12.dat
list dataset
EOF
RunCpptraj "LoadCrd append from multiple files test"
DoTest d1-12.dat.save d1-12.dat
} 

# Loadtraj test
LoadTrajTest() {
cat > load.in <<EOF
parm ../tz2.parm7
loadtraj ../tz2.nc name CRD
loadtraj ../tz2.nc name CRD 30 88 2
crdaction CRD distance d1-10 :1@CA :10@CA out d1-10.dat
list dataset
EOF
RunCpptraj "LoadTraj test."
DoTest d1-10.dat.save d1-10.dat
}

# Loadtraj from trajin test
LoadTrajFromTrajinTest() {
cat > load.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc 
trajin ../tz2.nc 30 88 2
loadtraj name CRD
crdaction CRD distance d1-10 :1@CA :10@CA out d1-10.dat
list dataset
EOF
RunCpptraj "LoadTraj from trajin test."
DoTest d1-10.dat.save d1-10.dat
}

LoadCrdTest
LoadTrajTest
LoadTrajFromTrajinTest
LoadCrdAppend

EndTest
exit 0