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 (40 lines) | stat: -rwxr-xr-x 710 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
#!/bin/bash

. ../MasterTest.sh

CleanFiles fix.in fixed.rst7 fixed.pdb unimage.crd

INPUT='-i fix.in'

TESTNAME='Fix imaged bonds tests'
Requires maxthreads 10

UNITNAME='Fix imaged bonds test (Ortho.)'
CheckFor maxthreads 1
if [ $? -eq 0 ] ; then
  cat > fix.in <<EOF
parm MET.pdb
trajin MET.pdb
fiximagedbonds
trajout fixed.rst7
EOF
  RunCpptraj "$UNITNAME"
  DoTest fixed.rst7.save fixed.rst7
fi

UNITNAME='Fix imaged bonds test (Non-ortho.)'
CheckFor netcdf
if [ $? -eq 0 ] ; then
  cat > fix.in <<EOF
parm ../tz2.truncoct.parm7
trajin ../tz2.truncoct.nc
image byatom
fiximagedbonds :1-13
strip :WAT
trajout unimage.crd
EOF
  RunCpptraj "$UNITNAME"
  DoTest unimage.crd.save unimage.crd
fi
EndTest
exit 0