File: RunTest.sh

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

. ../MasterTest.sh

# Clean
CleanFiles cmd.in test1.crd.save test1.crd res res.save

TESTNAME='Command line tests'
# Required environment 
Requires maxthreads 8


# First test without command line
cat > cmd.in <<EOF
parm ../tz2.parm7
trajin ../tz2.crd 2 13 3
trajin ../tz2.crd 98 last
trajout test1.crd.save title MyTitle
EOF
INPUT='-i cmd.in'
RunCpptraj "Command line trajectory args test, part 1"

# Now test using the command line. Hijack the INPUT variable.
INPUT="-p ../tz2.parm7 -y ../tz2.crd -ya \"2 13 3\" -y ../tz2.crd -ya \"98 last\" -x test1.crd -xa \"title MyTitle\""
RunCpptraj "Command line test trajectory args test, part 2"
DoTest test1.crd.save test1.crd

# Test loading multiple topology files
cat > cmd.in <<EOF
parm ../tz2.parm7
parm ../tz2.pdb
resinfo out res.save parmindex 0
resinfo out res.save parmindex 1
EOF
INPUT='-i cmd.in'
RunCpptraj "Command line wildcard test, part 1"
cat > cmd.in <<EOF
resinfo out res parmindex 0
resinfo out res parmindex 1
EOF
INPUT='../tz2.p* cmd.in'
RunCpptraj "Command line wildcard test, part 2"
DoTest res.save res

EndTest

exit 0