[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])
|
---|
[92c52f] | 7 | AT_CHECK([grep "Setting verbosity from .* to 1" stdout], 0, [ignore], [ignore])
|
---|
| 8 | AT_CLEANUP
|
---|
| 9 | AT_SETUP([Standard Options - verbosity with Undo/Redo])
|
---|
| 10 | AT_KEYWORDS([options])
|
---|
| 11 | AT_CHECK([../../molecuilder -v 1 --undo], 0, [stdout], [ignore])
|
---|
| 12 | AT_CHECK([grep "Setting verbosity from 1 to .*" stdout], 0, [ignore], [ignore])
|
---|
| 13 | AT_CHECK([../../molecuilder -v 1 --undo --redo], 0, [stdout], [ignore])
|
---|
| 14 | AT_CHECK([grep "Setting verbosity from .* to 1" stdout], 0, [ignore], [ignore])
|
---|
[8c574b] | 15 | AT_CLEANUP
|
---|
| 16 |
|
---|
| 17 | # 2. help screen
|
---|
| 18 | AT_SETUP([Standard Options - help screen])
|
---|
| 19 | AT_KEYWORDS([options])
|
---|
| 20 | AT_CHECK([../../molecuilder -h], 0, [stdout], [ignore])
|
---|
[7230be] | 21 | AT_CHECK([fgrep "help screen" stdout], 0, [ignore], [ignore])
|
---|
| 22 | AT_CHECK([../../molecuilder --help], 0, [stdout], [ignore])
|
---|
| 23 | AT_CHECK([fgrep "help screen" stdout], 0, [ignore], [ignore])
|
---|
| 24 | AT_CLEANUP
|
---|
| 25 | AT_SETUP([Standard Options - warranty screen])
|
---|
| 26 | AT_KEYWORDS([options])
|
---|
| 27 | AT_CHECK([../../molecuilder --warranty], 0, [stdout], [ignore])
|
---|
| 28 | AT_CHECK([fgrep "statement concerning warranty" stdout], 0, [ignore], [ignore])
|
---|
| 29 | AT_CHECK([fgrep "WITHOUT ANY WARRANTY" stdout], 0, [ignore], [ignore])
|
---|
[8c574b] | 30 | AT_CLEANUP
|
---|
| 31 |
|
---|
| 32 | # 3. no element database
|
---|
| 33 | AT_SETUP([Standard Options - no element database])
|
---|
| 34 | AT_KEYWORDS([options])
|
---|
[4f7f34e] | 35 | AT_CHECK([../../molecuilder -e], 134, [ignore], [stderr])
|
---|
[8c574b] | 36 | AT_CLEANUP
|
---|
| 37 |
|
---|
| 38 | # 4. element database
|
---|
| 39 | AT_SETUP([Standard Options - element database])
|
---|
| 40 | AT_KEYWORDS([options])
|
---|
| 41 | 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
|
---|
| 42 | #Element Name Symbol Period Group Block Atomic Number AtomicWeight Covalent Radius vdW Radius
|
---|
| 43 | Hydrogen H 1 1 s 1 1.008 0.23 1.09
|
---|
| 44 | Helium He 1 18 p 2 4.003 1.5 1.4
|
---|
| 45 | ]])
|
---|
[192f6e] | 46 | AT_CHECK([../../molecuilder -i test.conf -e ./], 0, [stdout], [stderr])
|
---|
[8c574b] | 47 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore])
|
---|
| 48 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore])
|
---|
| 49 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore])
|
---|
| 50 | AT_CLEANUP
|
---|
| 51 |
|
---|
| 52 | # 5. bond length database
|
---|
| 53 | AT_SETUP([Standard Options - bond length table])
|
---|
| 54 | AT_KEYWORDS([options])
|
---|
| 55 | AT_DATA([bondlength.db], [[# bond length database
|
---|
| 56 | 1 2
|
---|
| 57 | 1 1. 0.
|
---|
| 58 | 2 0. 0.
|
---|
| 59 | ]])
|
---|
[192f6e] | 60 | AT_CHECK([../../molecuilder -i test.conf -g bondlength.db], 0, [stdout], [stderr])
|
---|
[8c574b] | 61 | AT_CHECK([grep -E "Using.*as bond length table." stdout], 0, [ignore], [ignore])
|
---|
| 62 | AT_CLEANUP
|
---|
| 63 |
|
---|
| 64 | # 6. fast trajectories
|
---|
| 65 | AT_SETUP([Standard Options - fast trajectories])
|
---|
| 66 | AT_KEYWORDS([options])
|
---|
[192f6e] | 67 | AT_CHECK([../../molecuilder -i test.conf -n 1], 0, [stdout], [stderr])
|
---|
[8c574b] | 68 | AT_CHECK([fgrep "I won't parse trajectories" stdout], 0, [ignore], [ignore])
|
---|
| 69 | AT_CLEANUP
|
---|
[7e37a3] | 70 | AT_SETUP([Standard Options - fast trajectories with Undo/Redo])
|
---|
| 71 | AT_KEYWORDS([options])
|
---|
| 72 | AT_CHECK([../../molecuilder -i test.conf -n 1 --undo], 0, [stdout], [stderr])
|
---|
| 73 | AT_CHECK([fgrep "I will parse trajectories." stdout], 0, [ignore], [ignore])
|
---|
| 74 | AT_CHECK([../../molecuilder -i test.conf -n 1 --undo --redo], 0, [stdout], [stderr])
|
---|
| 75 | AT_CHECK([grep -c "I won't parse trajectories" stdout], 0, 2
|
---|
| 76 | , [ignore])
|
---|
| 77 | AT_CLEANUP
|
---|
[8c574b] | 78 |
|
---|
| 79 | # 7. molecule default name
|
---|
| 80 | AT_SETUP([Standard Options - molecule default name])
|
---|
| 81 | AT_KEYWORDS([options])
|
---|
[192f6e] | 82 | AT_CHECK([../../molecuilder -i test.conf -X test], 0, [stdout], [stderr])
|
---|
[8c574b] | 83 | AT_CHECK([fgrep "Default name of new molecules set to test." stdout], 0, [ignore], [ignore])
|
---|
| 84 | AT_CLEANUP
|
---|
[7aa3cf] | 85 | AT_SETUP([Standard Options - molecule default name with Undo/Redo])
|
---|
| 86 | AT_KEYWORDS([options])
|
---|
| 87 | AT_CHECK([../../molecuilder -i test.conf -X test --undo], 0, [stdout], [stderr])
|
---|
| 88 | AT_CHECK([fgrep "Default name of new molecules set to none." stdout], 0, [ignore], [ignore])
|
---|
| 89 | AT_CHECK([../../molecuilder -i test.conf -X test --undo --redo], 0, [stdout], [stderr])
|
---|
| 90 | AT_CHECK([fgrep "Default name of new molecules set to test." stdout], 0, [ignore], [ignore])
|
---|
| 91 | AT_CLEANUP
|
---|