| [8c574b] | 1 | AT_BANNER([MoleCuilder - standard options])
 | 
|---|
 | 2 | # 1. verbosity
 | 
|---|
 | 3 | AT_SETUP([Standard Options - verbosity])
 | 
|---|
 | 4 | AT_KEYWORDS([options])
 | 
|---|
 | 5 | AT_CHECK([pwd],[ignore],[ignore])
 | 
|---|
 | 6 | AT_CHECK([../../molecuilder -v 1], 0, [stdout], [ignore])
 | 
|---|
 | 7 | AT_CHECK([fgrep olecuilder stdout], 0, [ignore], [ignore])
 | 
|---|
 | 8 | AT_CLEANUP
 | 
|---|
 | 9 | 
 | 
|---|
 | 10 | # 2. help screen
 | 
|---|
 | 11 | AT_SETUP([Standard Options - help screen])
 | 
|---|
 | 12 | AT_KEYWORDS([options])
 | 
|---|
 | 13 | AT_CHECK([../../molecuilder -h], 0, [stdout], [ignore])
 | 
|---|
 | 14 | AT_CHECK([fgrep "Give this help screen" stdout], 0, [ignore], [ignore])
 | 
|---|
 | 15 | AT_CLEANUP
 | 
|---|
 | 16 | 
 | 
|---|
 | 17 | # 3. no element database
 | 
|---|
 | 18 | AT_SETUP([Standard Options - no element database])
 | 
|---|
 | 19 | AT_KEYWORDS([options])
 | 
|---|
 | 20 | AT_CHECK([../../molecuilder -e], 255, [ignore], [stderr])
 | 
|---|
 | 21 | AT_CHECK([fgrep "Not enough or invalid arguments" stderr], 0, [ignore], [ignore])
 | 
|---|
 | 22 | AT_CLEANUP
 | 
|---|
 | 23 | 
 | 
|---|
 | 24 | # 4. element database
 | 
|---|
 | 25 | AT_SETUP([Standard Options - element database])
 | 
|---|
 | 26 | AT_KEYWORDS([options])
 | 
|---|
 | 27 | AT_DATA([elements.db], [[#      Covalent        radius  of      each    element in      Angstroem       from    CSD     (binding        is:     [Rcov(A)+Rcov(B)-t,Rcov(A)+Rcov(B)+t]   with    t       =       0.4A
 | 
|---|
 | 28 | #Element        Name    Symbol  Period  Group   Block   Atomic  Number  AtomicWeight    Covalent        Radius  vdW     Radius
 | 
|---|
 | 29 | Hydrogen        H       1       1       s       1       1.008   0.23    1.09
 | 
|---|
 | 30 | Helium  He      1       18      p       2       4.003   1.5     1.4
 | 
|---|
 | 31 | ]])
 | 
|---|
 | 32 | AT_CHECK([../../molecuilder test.conf -e ./], 0, [stdout], [stderr])
 | 
|---|
 | 33 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 34 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 35 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore])
 | 
|---|
 | 36 | AT_CLEANUP
 | 
|---|
 | 37 | 
 | 
|---|
 | 38 | # 5. bond length database
 | 
|---|
 | 39 | AT_SETUP([Standard Options - bond length table])
 | 
|---|
 | 40 | AT_KEYWORDS([options])
 | 
|---|
 | 41 | AT_DATA([bondlength.db], [[# bond length database
 | 
|---|
 | 42 |         1       2
 | 
|---|
 | 43 | 1       1.      0.
 | 
|---|
 | 44 | 2       0.      0.
 | 
|---|
 | 45 | ]])
 | 
|---|
 | 46 | AT_CHECK([../../molecuilder test.conf -g bondlength.db], 0, [stdout], [stderr])
 | 
|---|
 | 47 | AT_CHECK([grep -E "Using.*as bond length table." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 48 | AT_CLEANUP
 | 
|---|
 | 49 | 
 | 
|---|
 | 50 | # 6. fast trajectories
 | 
|---|
 | 51 | AT_SETUP([Standard Options - fast trajectories])
 | 
|---|
 | 52 | AT_KEYWORDS([options])
 | 
|---|
 | 53 | AT_CHECK([../../molecuilder test.conf -n], 0, [stdout], [stderr])
 | 
|---|
 | 54 | AT_CHECK([fgrep "I won't parse trajectories" stdout], 0, [ignore], [ignore])
 | 
|---|
 | 55 | AT_CLEANUP
 | 
|---|
 | 56 | 
 | 
|---|
 | 57 | # 7. molecule default name
 | 
|---|
 | 58 | AT_SETUP([Standard Options - molecule default name])
 | 
|---|
 | 59 | AT_KEYWORDS([options])
 | 
|---|
 | 60 | AT_CHECK([../../molecuilder test.conf -X test], 0, [stdout], [stderr])
 | 
|---|
 | 61 | AT_CHECK([fgrep "Default name of new molecules set to test." stdout], 0, [ignore], [ignore])
 | 
|---|
 | 62 | AT_CLEANUP
 | 
|---|