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 (48 lines) | stat: -rwxr-xr-x 1,334 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
#!/bin/bash

. ../MasterTest.sh

CleanFiles cluster.in cnumvtime.dat avg.summary.dat summary.dat \
           CpptrajPairDist clusterinfo.txt cluster.c? rep.*.crd \
           single lifetime.dat Avg.c?.rst7 info.single fromInfo.c?

# Test 1
TESTNAME='Cluster trajectory write tests'
Requires netcdf
INPUT="-i cluster.in"

cat > cluster.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc
createcrd CRD1
run
runanalysis cluster crdset CRD1 C1 :2-10 clusters 3 epsilon 4.0 \
            out cnumvtime.dat summary avg.summary.dat nofit \
            clusterout cluster info clusterinfo.txt \
            singlerepout single repout rep repframe lifetime \
            avgout Avg avgfmt restart
write lifetime.dat C1[Lifetime]
EOF
RunCpptraj "Cluster command test, coordinate writes."

cat > cluster.in <<EOF
parm ../tz2.parm7
trajin ../tz2.nc
createcrd CRD1
run
runanalysis cluster crdset CRD1 readinfo infofile clusterinfo.txt \
            clusterout fromInfo
EOF
RunCpptraj "Cluster command test, coordinate writes using info file."
DoTest clusterinfo.txt.save clusterinfo.txt
DoTest cluster.c0.save cluster.c0
DoTest rep.1.crd.save rep.c8.1.crd
DoTest single.save single
DoTest avg.summary.dat.save avg.summary.dat
DoTest lifetime.dat.save lifetime.dat
DoTest Avg.c0.rst7.save Avg.c0.rst7
DoTest cluster.c0.save fromInfo.c0

EndTest

exit 0