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

. ../MasterTest.sh

CleanFiles check.in report.dat nprob.dat tz2.dat skip.dat around.dat d1.dat \
           partial.report.dat

INPUT="-i check.in"

TESTNAME='Structure check tests'
Requires maxthreads 10

UNITNAME='Basic structure check'
CheckFor maxthreads 1
if [ $? -eq 0 ] ; then
  # Test 1
  cat > check.in <<EOF
parm ../tz2.parm7
trajin tz2.stretched.pdb
check reportfile report.dat offset 0.7 out nprob.dat Tz2Check
check reportfile partial.report.dat :4-6,12-13 offset 0.7
EOF
  RunCpptraj "Structure Check"
  DoTest report.dat.save report.dat
  DoTest report.dat.save partial.report.dat
  DoTest nprob.dat.save nprob.dat
  # Around test with skip
  UNITNAME='Structure Check with Around and Skip'
  CheckFor netcdf
  if [ $? -eq 0 ] ; then
    cat > check.in <<EOF
parm ../tz2.truncoct.parm7
trajin ../tz2.truncoct.nc
scale :1 x 2.0 y 1.2 z 1.2
check nobondcheck :WAT around :1 out skip.dat skipbadframes silent
distance d1 out d1.dat :1 :12
EOF
    RunCpptraj "Structure Check with Around and Skip"
    DoTest skip.dat.save skip.dat
    DoTest d1.dat.save d1.dat
  fi
fi

UNITNAME='Structure check with PBC/around tests'
CheckFor netcdf
if [ $? -eq 0 ] ; then
  cat > check.in <<EOF
parm ../tz2.truncoct.parm7
#trajin ../tz2.truncoct.nc
trajin tz2.truncoct.baducell.nc
#rms first :1-13
#scale :1 x 2.0 y 1.2 z 1.2
check reportfile tz2.dat offset 1.0
check reportfile tz2.cut0.9.dat offset 1.0 cut 0.9
EOF
  RunCpptraj "Structure Check with PBC"
  DoTest tz2.dat.save tz2.dat
  DoTest tz2.cut0.9.dat.save tz2.cut0.9.dat
  # Around test
  cat > check.in <<EOF
parm ../tz2.truncoct.parm7
#trajin ../tz2.truncoct.nc
trajin tz2.truncoct.baducell.nc
#rms first :1-13
#scale :1 x 2.0 y 1.2 z 1.2
check reportfile around.dat offset 1.0 :WAT around :1
EOF
  RunCpptraj "Structure Check with Around"
  DoTest around.dat.save around.dat
fi
EndTest

exit 0