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

. ../MasterTest.sh

CleanFiles change.in ala3.mod.pdb ala3.chain.pdb crdala3.chain.pdb

TESTNAME='Change command test'
Requires maxthreads 1

INPUT='-i change.in'

cat > change.in <<EOF
parm ../Test_Charmm/ala3.psf
trajin ../Test_Charmm/ala3.dcd 1 1
change parmindex 0 resname from :1 to NALA
change parmindex 0 resname from :3 to CALA
change parmindex 0 atomname from @HN to H
trajout ala3.mod.pdb chainid " "
EOF
RunCpptraj "Change atom and residue name tests"
DoTest ala3.mod.pdb.save ala3.mod.pdb

cat > change.in <<EOF
parm ../Test_Charmm/ala3.psf
trajin ../Test_Charmm/ala3.dcd 1 1
change parmindex 0 chainid of * to A
trajout ala3.chain.pdb
EOF
RunCpptraj "Change chain ID test"
DoTest ala3.chain.pdb.save ala3.chain.pdb

cat > change.in <<EOF
parm ../Test_Charmm/ala3.psf
loadcrd ../Test_Charmm/ala3.dcd 1 1 name MyCrd
change crdset MyCrd chainid of * to A
crdout MyCrd crdala3.chain.pdb
EOF
RunCpptraj "Change chain ID of COORDS set test"
DoTest ala3.chain.pdb.save crdala3.chain.pdb

EndTest
exit 0