[f3cba6] | 1 | # Process with autom4te to create an -*- Autotest -*- test suite.
|
---|
[ebcade] | 2 | #
|
---|
| 3 | # see regression/... subdirs wherein for each of the cases and each check (enumerated) is a pre and post dir.
|
---|
| 4 | # In pre initial files are placed, in post results can be found to be checked by diff in this testsuite.
|
---|
[f3cba6] | 5 |
|
---|
| 6 | AT_INIT([Molecular Builder])
|
---|
| 7 |
|
---|
[a97f55] | 8 |
|
---|
[f3cba6] | 9 | AT_BANNER([MoleCuilder - standard options])
|
---|
[a97f55] | 10 | # 1. verbosity
|
---|
| 11 | AT_SETUP([Standard Options - verbosity])
|
---|
[ebcade] | 12 | AT_KEYWORDS([options])
|
---|
[f3cba6] | 13 | AT_CHECK([pwd],[ignore],[ignore])
|
---|
[6670a97] | 14 | AT_CHECK([../../molecuilder -v 1], 0, [stdout], [ignore])
|
---|
[482373] | 15 | AT_CHECK([fgrep olecuilder stdout], 0, [ignore], [ignore])
|
---|
[a97f55] | 16 | AT_CLEANUP
|
---|
| 17 |
|
---|
| 18 | # 2. help screen
|
---|
| 19 | AT_SETUP([Standard Options - help screen])
|
---|
| 20 | AT_KEYWORDS([options])
|
---|
[f3cba6] | 21 | AT_CHECK([../../molecuilder -h], 0, [stdout], [ignore])
|
---|
| 22 | AT_CHECK([fgrep "Give this help screen" stdout], 0, [ignore], [ignore])
|
---|
[a97f55] | 23 | AT_CLEANUP
|
---|
| 24 |
|
---|
[2f0c42] | 25 | # 3. no element database
|
---|
| 26 | AT_SETUP([Standard Options - no element database])
|
---|
[a97f55] | 27 | AT_KEYWORDS([options])
|
---|
[60f50a] | 28 | AT_CHECK([../../molecuilder -e], 255, [ignore], [stderr])
|
---|
[f00693] | 29 | AT_CHECK([fgrep "Not enough or invalid arguments" stderr], 0, [ignore], [ignore])
|
---|
[f3cba6] | 30 | AT_CLEANUP
|
---|
| 31 |
|
---|
[2f0c42] | 32 | # 4. element database
|
---|
| 33 | AT_SETUP([Standard Options - element database])
|
---|
| 34 | AT_KEYWORDS([options])
|
---|
[ff73a2] | 35 | 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
|
---|
[2f0c42] | 36 | #Element Name Symbol Period Group Block Atomic Number AtomicWeight Covalent Radius vdW Radius
|
---|
| 37 | Hydrogen H 1 1 s 1 1.008 0.23 1.09
|
---|
| 38 | Helium He 1 18 p 2 4.003 1.5 1.4
|
---|
| 39 | ]])
|
---|
[ff73a2] | 40 | AT_CHECK([../../molecuilder test.conf -e ./], 0, [stdout], [stderr])
|
---|
[2f0c42] | 41 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore])
|
---|
[ff73a2] | 42 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore])
|
---|
[2f0c42] | 43 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore])
|
---|
| 44 | AT_CLEANUP
|
---|
| 45 |
|
---|
[403637] | 46 | # 5. bond length database
|
---|
| 47 | AT_SETUP([Standard Options - bond length table])
|
---|
| 48 | AT_KEYWORDS([options])
|
---|
| 49 | AT_DATA([bondlength.db], [[# bond length database
|
---|
| 50 | 1 2
|
---|
| 51 | 1 1. 0.
|
---|
| 52 | 2 0. 0.
|
---|
| 53 | ]])
|
---|
| 54 | AT_CHECK([../../molecuilder test.conf -g bondlength.db], 0, [stdout], [stderr])
|
---|
| 55 | AT_CHECK([grep -E "Using.*as bond length table." stdout], 0, [ignore], [ignore])
|
---|
| 56 | AT_CLEANUP
|
---|
| 57 |
|
---|
[e8e48ab] | 58 | # 6. fast trajectories
|
---|
| 59 | AT_SETUP([Standard Options - fast trajectories])
|
---|
| 60 | AT_KEYWORDS([options])
|
---|
| 61 | AT_CHECK([../../molecuilder test.conf -n], 0, [stdout], [stderr])
|
---|
| 62 | AT_CHECK([fgrep "I won't parse trajectories" stdout], 0, [ignore], [ignore])
|
---|
| 63 | AT_CLEANUP
|
---|
| 64 |
|
---|
[93d732b] | 65 | # 7. molecule default name
|
---|
| 66 | AT_SETUP([Standard Options - molecule default name])
|
---|
| 67 | AT_KEYWORDS([options])
|
---|
| 68 | AT_CHECK([../../molecuilder test.conf -X test], 0, [stdout], [stderr])
|
---|
| 69 | AT_CHECK([fgrep "Default name of new molecules set to test." stdout], 0, [ignore], [ignore])
|
---|
| 70 | AT_CLEANUP
|
---|
| 71 |
|
---|
[5188f5] | 72 | AT_BANNER([MoleCuilder - Specifics])
|
---|
| 73 | # 1. MPQC basis
|
---|
| 74 | AT_SETUP([Specifics - MPQC basis])
|
---|
| 75 | AT_KEYWORDS([options])
|
---|
| 76 | AT_CHECK([pwd],[ignore],[ignore])
|
---|
| 77 | AT_CHECK([../../molecuilder test.conf -v 1 -M test], 0, [stdout], [ignore])
|
---|
| 78 | AT_CHECK([fgrep "Setting MPQC basis to test." stdout], 0, [ignore], [ignore])
|
---|
| 79 | AT_CLEANUP
|
---|
| 80 |
|
---|
[ebcade] | 81 |
|
---|
[ab3a0e] | 82 | AT_BANNER([MoleCuilder - molecular config creation from xyz file and atom adding])
|
---|
[ebcade] | 83 | # 1. create some simplest molecular geometry
|
---|
| 84 | AT_SETUP([Simple configuration - xyz file generation])
|
---|
[2a5eb7] | 85 | AT_KEYWORDS([Atom handling])
|
---|
[f3cba6] | 86 | AT_DATA([test.xyz], [[1
|
---|
| 87 | # test configuration, created by molecuilder test suite
|
---|
| 88 | H 10. 10. 10.
|
---|
| 89 | ]])
|
---|
[b2b47f] | 90 | AT_CHECK([file=test.xyz; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/1/post/$file], 0, [ignore], [ignore])
|
---|
[ebcade] | 91 | AT_CLEANUP
|
---|
| 92 |
|
---|
| 93 | # 2. parsing an xyz
|
---|
| 94 | AT_SETUP([Simple configuration - parsing xyz file])
|
---|
[b2b47f] | 95 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.xyz .], 0)
|
---|
[ebcade] | 96 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -p test.xyz], 0, [ignore], [ignore])
|
---|
[c26f44] | 97 | AT_CHECK([fgrep "Ion_Type1_1" test.conf], 0, [Ion_Type1_1 10.000000000 10.000000000 10.000000000 0 # molecule nr 0
|
---|
[f3cba6] | 98 | ], [ignore])
|
---|
[b2b47f] | 99 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore])
|
---|
| 100 | AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore])
|
---|
| 101 | AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore])
|
---|
[ebcade] | 102 |
|
---|
| 103 | # 3. add atom
|
---|
| 104 | AT_CLEANUP
|
---|
| 105 | AT_SETUP([Simple configuration - adding atom])
|
---|
| 106 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -a 1 10. 10. 10.], 0, [ignore], [ignore])
|
---|
[b2b47f] | 107 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
---|
| 108 | AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
---|
| 109 | AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
---|
[ebcade] | 110 | AT_CLEANUP
|
---|
| 111 |
|
---|
| 112 | # 4. change the element
|
---|
| 113 | AT_SETUP([Simple configuration - Changing element])
|
---|
[b2b47f] | 114 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/pre/test.conf test.conf], 0)
|
---|
[ebcade] | 115 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -E 0 6], 0, [ignore], [ignore])
|
---|
[b2b47f] | 116 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/post/$file], 0, [ignore], [ignore])
|
---|
[ebcade] | 117 | AT_CLEANUP
|
---|
| 118 |
|
---|
| 119 | # 5. remove atom
|
---|
| 120 | AT_SETUP([Simple configuration - Atom removal])
|
---|
[b2b47f] | 121 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/pre/test.conf .], 0)
|
---|
[ebcade] | 122 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -r 0], 0, [ignore], [ignore])
|
---|
[b2b47f] | 123 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore])
|
---|
| 124 | AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore])
|
---|
| 125 | AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore])
|
---|
[ebcade] | 126 | AT_CLEANUP
|
---|
| 127 |
|
---|
| 128 | # 6. test some more configuration that all desire parameters and count how many complain
|
---|
| 129 | AT_SETUP([Simple configuration - invalid commands on empty configs])
|
---|
| 130 | AT_CHECK([../../molecuilder empty.conf -e ${abs_top_srcdir}/src/ -t -s -b -E -c -b -a -U -T -u], 255, [ignore], [stderr])
|
---|
| 131 | AT_CHECK([fgrep -c "Not enough or invalid" stderr], 0, [1
|
---|
| 132 | ], [ignore])
|
---|
| 133 | AT_CLEANUP
|
---|
| 134 |
|
---|
| 135 | # 7. test some more configuration that all need parameters and count how many complain
|
---|
| 136 | AT_SETUP([Simple configuration - invalid commands on present configs])
|
---|
[b2b47f] | 137 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/7/pre/test.conf .], 0)
|
---|
[482373] | 138 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -t], 255, [ignore], [stderr])
|
---|
| 139 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 140 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -s -b -E -c -b -a -U -T -u], 255, [ignore], [stderr])
|
---|
| 141 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 142 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -b -E -c -b -a -U -T -u], 255, [ignore], [stderr])
|
---|
| 143 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 144 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -E -c -b -a -U -T -u], 255, [ignore], [stderr])
|
---|
| 145 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 146 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -c -b -a -U -T -u], 255, [ignore], [stderr])
|
---|
| 147 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 148 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -b -a -U -T -u], 255, [ignore], [stderr])
|
---|
| 149 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 150 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -a -U -T -u], 255, [ignore], [stderr])
|
---|
| 151 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 152 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -U -T -u], 255, [ignore], [stderr])
|
---|
| 153 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 154 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -T -u], 255, [ignore], [stderr])
|
---|
| 155 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
| 156 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -u], 255, [ignore], [stderr])
|
---|
| 157 | AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore])
|
---|
[f3cba6] | 158 | AT_CLEANUP
|
---|
| 159 |
|
---|
[ebcade] | 160 |
|
---|
[e3989a] | 161 | AT_BANNER([MoleCuilder - simulation domain])
|
---|
| 162 | # 1. define box setting
|
---|
[c82720] | 163 | AT_SETUP([Domain - defining simulation domain])
|
---|
[e3989a] | 164 | AT_KEYWORDS([defining domain])
|
---|
[c82720] | 165 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -B 10 0 10 0 0 10], 0, [stdout], [stderr])
|
---|
| 166 | AT_CHECK([fgrep "BoxLength" test.conf], 0, [stdout], [stderr])
|
---|
[b2b47f] | 167 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/1/post/test.conf], 0, [stdout], [stderr])
|
---|
[c82720] | 168 | AT_CLEANUP
|
---|
| 169 |
|
---|
[e3989a] | 170 | # 2. center atoms in defined domain
|
---|
| 171 | AT_SETUP([Domain - setting and centering in domain])
|
---|
| 172 | AT_KEYWORDS([setting domain])
|
---|
[b2b47f] | 173 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/2/pre/test.conf .], 0)
|
---|
[e3989a] | 174 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -b 15 0 15 0 0 15], 0, [stdout], [stderr])
|
---|
[b2b47f] | 175 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/2/post/test.conf], 0, [stdout], [stderr])
|
---|
[e3989a] | 176 | AT_CLEANUP
|
---|
[c82720] | 177 |
|
---|
[0335a2] | 178 | # 3. center atoms with defined boundary
|
---|
| 179 | AT_SETUP([Domain - centering with defined boundary])
|
---|
| 180 | AT_KEYWORDS([setting domain])
|
---|
| 181 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/3/pre/test.conf .], 0)
|
---|
| 182 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -c 5 10 15], 0, [stdout], [stderr])
|
---|
| 183 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/3/post/test.conf], 0, [stdout], [stderr])
|
---|
| 184 | AT_CLEANUP
|
---|
| 185 |
|
---|
[745874] | 186 | # 4. center atoms and adjusting boundary
|
---|
| 187 | AT_SETUP([Domain - centering and setting domain])
|
---|
| 188 | AT_KEYWORDS([setting domain])
|
---|
| 189 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/4/pre/test.conf .], 0)
|
---|
| 190 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -O], 0, [stdout], [stderr])
|
---|
| 191 | AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/4/post/test.conf], 0, [stdout], [stderr])
|
---|
| 192 | AT_CLEANUP
|
---|
| 193 |
|
---|
[0335a2] | 194 |
|
---|
[ebcade] | 195 | AT_BANNER([MoleCuilder - Graph routines test])
|
---|
[046a1e] | 196 | # 1. DFS analysis
|
---|
[ebcade] | 197 | AT_SETUP([Graph - DFS analysis])
|
---|
[2a5eb7] | 198 | AT_KEYWORDS([graph])
|
---|
[b2b47f] | 199 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/1/pre/test.conf .], 0)
|
---|
[6670a97] | 200 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -D 2.], 0, [stdout], [stderr])
|
---|
[ebcade] | 201 | AT_CHECK([fgrep -c "No rings were detected in the molecular structure." stdout], 0, [1
|
---|
| 202 | ], [ignore])
|
---|
| 203 | AT_CLEANUP
|
---|
| 204 |
|
---|
[046a1e] | 205 | AT_SETUP([Graph - subgraph dissection])
|
---|
| 206 | AT_KEYWORDS([graph])
|
---|
| 207 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
| 208 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -I], 0, [stdout], [stderr])
|
---|
| 209 | AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore])
|
---|
| 210 | AT_CLEANUP
|
---|
| 211 |
|
---|
| 212 |
|
---|
[c68c90] | 213 | AT_BANNER([MoleCuilder - Molecules])
|
---|
| 214 | # 1. Bonds from file
|
---|
| 215 | AT_SETUP([Graph - Bonds from file])
|
---|
| 216 | AT_KEYWORDS([graph])
|
---|
| 217 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/1/pre/test.* .], 0)
|
---|
| 218 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 4 -A test.dbond], 0, [stdout], [stderr])
|
---|
| 219 | AT_CHECK([fgrep "Looking for atoms 2 and 9." stdout], 0, [ignore], [ignore])
|
---|
| 220 | AT_CLEANUP
|
---|
| 221 |
|
---|
[72e36f] | 222 | # 2. Storing adjacency info
|
---|
| 223 | AT_SETUP([Graph - Storing bond info])
|
---|
| 224 | AT_KEYWORDS([graph])
|
---|
| 225 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/1/pre/test.* .], 0)
|
---|
| 226 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 1 -j test.dbond], 0, [stdout], [stderr])
|
---|
| 227 | AT_CHECK([file=test.dbond; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/2/post/$file], 0, [ignore], [ignore])
|
---|
| 228 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 1 -J test.adj], 0, [stdout], [stderr])
|
---|
| 229 | AT_CHECK([file=test.adj; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/2/post/$file], 0, [ignore], [ignore])
|
---|
| 230 | AT_CLEANUP
|
---|
| 231 |
|
---|
[c68c90] | 232 |
|
---|
[ab3a0e] | 233 | AT_BANNER([MoleCuilder - Fragmentation and Re-fragmentation test])
|
---|
[ebcade] | 234 | # 1. check config
|
---|
| 235 | AT_SETUP([Fragmentation - Checking present config])
|
---|
[2a5eb7] | 236 | AT_KEYWORDS([fragmentation])
|
---|
[b2b47f] | 237 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/1/pre/test.conf .], 0)
|
---|
[c26f44] | 238 | AT_CHECK([fgrep "Ion_Type1_4" test.conf], 0, [Ion_Type1_4 8.532785963 4.787886018 2.645886050 0 # molecule nr 6
|
---|
[3c1dfb] | 239 | ], [ignore])
|
---|
| 240 | AT_CHECK([fgrep "Ion_Type2_4" test.conf], 1, [ignore], [ignore])
|
---|
[ebcade] | 241 | AT_CLEANUP
|
---|
[06f8ee] | 242 |
|
---|
[ebcade] | 243 | # 2. fragment the molecule and check the number of configs
|
---|
| 244 | AT_SETUP([Fragmentation - Fragmentation])
|
---|
[b2b47f] | 245 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/2/pre/test.conf .], 0)
|
---|
[ebcade] | 246 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -f 1.55 2], 0, [ignore], [ignore], [mkdir std; mv BondFragment*.conf* std/])
|
---|
[3c1dfb] | 247 | AT_CHECK([mkdir std; mv BondFragment*.conf* std/], 0)
|
---|
| 248 | AT_CHECK([ls -l std/BondFragment*.conf | wc -l], 0, [5
|
---|
| 249 | ], [ignore])
|
---|
[ebcade] | 250 | AT_CLEANUP
|
---|
[06f8ee] | 251 |
|
---|
[ebcade] | 252 | # 3. check whether parsing of BondFragment files and re-rwriting config files is working (exit code is 2 as we don't need to continue wrt to ...OrderAtSite)
|
---|
| 253 | AT_SETUP([Fragmentation - Fragmentation is at MaxOrder])
|
---|
[b2b47f] | 254 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/3/pre/* .], 0)
|
---|
[ebcade] | 255 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -f 1.55 2], 2, [ignore], [ignore], [mkdir new; mv BondFragment*.conf* new/])
|
---|
[3c1dfb] | 256 | AT_CHECK([mkdir new; mv BondFragment*.conf* new/], 0)
|
---|
| 257 | AT_CLEANUP
|
---|
[f3cba6] | 258 |
|
---|
[ebcade] | 259 |
|
---|
| 260 | AT_BANNER([MoleCuilder - Tesselation test])
|
---|
| 261 | # 1. Non convex tesselation
|
---|
| 262 | AT_SETUP([Tesselation - Non-Convex Envelope])
|
---|
[2a5eb7] | 263 | AT_KEYWORDS([Tesselation])
|
---|
[b2b47f] | 264 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/pre/* .], 0)
|
---|
[ebcade] | 265 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -N 4. NonConvexEnvelope], 0, [stdout], [stderr])
|
---|
[b2b47f] | 266 | AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/post/$file], 0, [ignore], [ignore])
|
---|
| 267 | AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/post/$file], 0, [ignore], [ignore])
|
---|
[ebcade] | 268 | AT_CLEANUP
|
---|
| 269 |
|
---|
| 270 | # 2. convex tesselation (where the non-convex is already convex)
|
---|
| 271 | AT_SETUP([Tesselation - Convex Envelope])
|
---|
[b2b47f] | 272 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/pre/* .], 0)
|
---|
[ebcade] | 273 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -o ConvexEnvelope NonConvexEnvelope], 0, [stdout], [stderr])
|
---|
[b2b47f] | 274 | AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/post/$file], 0, [ignore], [ignore])
|
---|
| 275 | AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/post/$file], 0, [ignore], [ignore])
|
---|
[482373] | 276 | AT_CHECK([fgrep "tesselated volume area is 16.4016 angstrom^3" stdout], 0, [ignore], [ignore])
|
---|
[ebcade] | 277 | AT_CHECK([diff ConvexEnvelope.dat NonConvexEnvelope.dat], 0, [ignore], [ignore])
|
---|
| 278 | AT_CLEANUP
|
---|
| 279 |
|
---|
| 280 | # 3. Big Non convex tesselation
|
---|
| 281 | AT_SETUP([Tesselation - Big non-Convex Envelope])
|
---|
[b2b47f] | 282 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/pre/* .], 0)
|
---|
[ebcade] | 283 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -N 4. NonConvexEnvelope], 0, [stdout], [stderr])
|
---|
[b2b47f] | 284 | AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/post/$file], 0, [ignore], [ignore])
|
---|
| 285 | AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/post/$file], 0, [ignore], [ignore])
|
---|
[ebcade] | 286 | AT_CLEANUP
|
---|
| 287 |
|
---|
| 288 | # 4. Big convex tesselation - is not working yet
|
---|
| 289 | #AT_SETUP([Tesselation - big convex Envelope])
|
---|
[b2b47f] | 290 | #AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/pre/* .], 0)
|
---|
[ebcade] | 291 | #AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -o ConvexEnvelope NonConvexEnvelope], 0, [stdout], [stderr])
|
---|
[b2b47f] | 292 | #AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/post/$file], 0, [ignore], [ignore])
|
---|
| 293 | #AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/post/$file], 0, [ignore], [ignore])
|
---|
[482373] | 294 | #AT_CHECK([fgrep "tesselated volume area is 16.4016 angstrom^3" stdout], 0, [ignore], [ignore])
|
---|
[ebcade] | 295 | #AT_CLEANUP
|
---|
| 296 |
|
---|
[06f8ee] | 297 |
|
---|
[1325ba] | 298 | AT_BANNER([MoleCuilder - Filling in molecules])
|
---|
| 299 | # 1. filling box
|
---|
| 300 | AT_SETUP([Analysis - filling empty box])
|
---|
| 301 | AT_KEYWORDS([analysis])
|
---|
| 302 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Filling/1/pre/test.conf .], 0)
|
---|
| 303 | AT_DATA([water.xyz], [[3
|
---|
| 304 | # test configuration, created by molecuilder test suite
|
---|
| 305 | O 0. 0. 0.
|
---|
| 306 | H 0.758602 0. 0.504284
|
---|
| 307 | H 0.758602 0. -0.504284
|
---|
| 308 | ]])
|
---|
| 309 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -F water.xyz 3.1 3.1 3.1 2.1 0. 0. 0], 0, [stdout], [stderr])
|
---|
| 310 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Filling/1/post/$file], 0, [ignore], [ignore])
|
---|
| 311 | AT_CLEANUP
|
---|
| 312 |
|
---|
| 313 |
|
---|
[06f8ee] | 314 | AT_BANNER([MoleCuilder - Analysis])
|
---|
| 315 | # 1. pair correlation analysis
|
---|
| 316 | AT_SETUP([Analysis - pair correlation])
|
---|
| 317 | AT_KEYWORDS([analysis])
|
---|
| 318 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/1/pre/test.conf .], 0)
|
---|
| 319 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -C E 1 8 output.csv bin_output.csv 0 20], 0, [stdout], [stderr])
|
---|
| 320 | AT_CHECK([fgrep "Begin of PairCorrelation" stdout], 0, [ignore], [ignore])
|
---|
| 321 | AT_CHECK([file=output.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/1/post/$file], 0, [ignore], [ignore])
|
---|
| 322 | AT_CHECK([file=bin_output.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/1/post/$file], 0, [ignore], [ignore])
|
---|
| 323 | AT_CLEANUP
|
---|
| 324 |
|
---|
[08f6ff] | 325 | # 2. pair correlation analysis - range test
|
---|
[06f8ee] | 326 | AT_SETUP([Analysis - pair correlation range test])
|
---|
| 327 | AT_KEYWORDS([analysis])
|
---|
| 328 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/2/pre/test.conf .], 0)
|
---|
| 329 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -C E 1 8 output-5.csv bin_output-5.csv 0 5], 0, [stdout], [stderr])
|
---|
| 330 | AT_CHECK([file=output-5.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/2/post/$file], 0, [ignore], [ignore])
|
---|
| 331 | AT_CHECK([file=bin_output-5.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/2/post/$file], 0, [ignore], [ignore])
|
---|
| 332 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -C E 1 8 output-10.csv bin_output-10.csv 5 10], 0, [stdout], [stderr])
|
---|
| 333 | AT_CHECK([file=output-10.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/2/post/$file], 0, [ignore], [ignore])
|
---|
| 334 | AT_CHECK([file=bin_output-10.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/2/post/$file], 0, [ignore], [ignore])
|
---|
| 335 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -C E 1 8 output-20.csv bin_output-20.csv 10 20], 0, [stdout], [stderr])
|
---|
| 336 | AT_CHECK([file=output-20.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/2/post/$file], 0, [ignore], [ignore])
|
---|
| 337 | AT_CHECK([file=bin_output-20.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/2/post/$file], 0, [ignore], [ignore])
|
---|
| 338 | AT_CLEANUP
|
---|
[08f6ff] | 339 |
|
---|
| 340 | # 3. pair correlation analysis to point
|
---|
[ef2b39] | 341 | AT_SETUP([Analysis - point correlation])
|
---|
[08f6ff] | 342 | AT_KEYWORDS([analysis])
|
---|
| 343 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/3/pre/test.conf .], 0)
|
---|
| 344 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -C P 1 10. 10. 10. output.csv bin_output.csv 0 20], 0, [stdout], [stderr])
|
---|
| 345 | AT_CHECK([fgrep "Begin of CorrelationToPoint" stdout], 0, [ignore], [ignore])
|
---|
| 346 | AT_CHECK([file=output.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/3/post/$file], 0, [ignore], [ignore])
|
---|
| 347 | AT_CHECK([file=bin_output.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/3/post/$file], 0, [ignore], [ignore])
|
---|
| 348 | AT_CLEANUP
|
---|
[ef2b39] | 349 |
|
---|
| 350 | # 4. pair correlation analysis to surface
|
---|
| 351 | AT_SETUP([Analysis - surface correlation])
|
---|
| 352 | AT_KEYWORDS([analysis])
|
---|
| 353 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/4/pre/test.conf .], 0)
|
---|
| 354 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -I -C S 1 output.csv bin_output.csv 1. 0 20], 0, [stdout], [stderr])
|
---|
| 355 | AT_CHECK([fgrep "Begin of CorrelationToSurface" stdout], 0, [ignore], [ignore])
|
---|
| 356 | AT_CHECK([file=output.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/4/post/$file], 0, [ignore], [ignore])
|
---|
| 357 | AT_CHECK([file=bin_output.csv; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Analysis/4/post/$file], 0, [ignore], [ignore])
|
---|
| 358 | AT_CLEANUP
|
---|