| 1 | AT_BANNER([MoleCuilder - molecular config creation from xyz file and atom adding])
|
|---|
| 2 | # 1. create some simplest molecular geometry
|
|---|
| 3 | AT_SETUP([Simple configuration - xyz file generation])
|
|---|
| 4 | AT_KEYWORDS([configuration])
|
|---|
| 5 | AT_DATA([test.xyz], [[1
|
|---|
| 6 | # test configuration, created by molecuilder test suite
|
|---|
| 7 | H 10. 10. 10.
|
|---|
| 8 | ]])
|
|---|
| 9 | AT_CHECK([file=test.xyz; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/1/post/$file], 0, [ignore], [ignore])
|
|---|
| 10 | AT_CLEANUP
|
|---|
| 11 |
|
|---|
| 12 | # 2. parsing and storing an xyz
|
|---|
| 13 | AT_SETUP([Simple configuration - loading conf file])
|
|---|
| 14 | AT_KEYWORDS([configuration])
|
|---|
| 15 | AT_CHECK([../../molecuilder -i test.conf -o pcp -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.conf], 0, [ignore], [ignore])
|
|---|
| 16 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore])
|
|---|
| 17 | AT_CLEANUP
|
|---|
| 18 | AT_SETUP([Simple configuration - not implemented: loading mpqc file])
|
|---|
| 19 | AT_KEYWORDS([configuration])
|
|---|
| 20 | #AT_CHECK([../../molecuilder -i test.in -o mpqc -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.in], 139, [ignore], [ignore])
|
|---|
| 21 | # not working with NDEBUG it's 139, without its 132
|
|---|
| 22 | AT_CLEANUP
|
|---|
| 23 | AT_SETUP([Simple configuration - storing mpqc from loaded xyz file])
|
|---|
| 24 | AT_KEYWORDS([configuration])
|
|---|
| 25 | AT_CHECK([../../molecuilder -i test.xyz -o mpqc -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.xyz], 0, [ignore], [ignore])
|
|---|
| 26 | AT_CHECK([file=test.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore])
|
|---|
| 27 | AT_CLEANUP
|
|---|
| 28 | AT_SETUP([Simple configuration - loading mpqc file])
|
|---|
| 29 | AT_KEYWORDS([configuration])
|
|---|
| 30 | #AT_CHECK([../../molecuilder -i test.in -o mpqc -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.in], 139, [ignore], [ignore])
|
|---|
| 31 | # not working with NDEBUG it's 139, without its 132
|
|---|
| 32 | AT_CLEANUP
|
|---|
| 33 | AT_SETUP([Simple configuration - loading pdb file])
|
|---|
| 34 | AT_KEYWORDS([configuration])
|
|---|
| 35 | AT_CHECK([../../molecuilder -i test.pdb -o pdb -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.pdb], 0, [ignore], [ignore])
|
|---|
| 36 | AT_CHECK([file=test.pdb; diff -I '.*created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore])
|
|---|
| 37 | AT_CLEANUP
|
|---|
| 38 | AT_SETUP([Simple configuration - loading xyz file])
|
|---|
| 39 | AT_KEYWORDS([configuration])
|
|---|
| 40 | AT_CHECK([../../molecuilder -i test.xyz -o xyz -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.xyz], 0, [ignore], [ignore])
|
|---|
| 41 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore])
|
|---|
| 42 | AT_CLEANUP
|
|---|
| 43 | AT_SETUP([Simple configuration - saving conf file])
|
|---|
| 44 | AT_KEYWORDS([configuration])
|
|---|
| 45 | AT_CHECK([../../molecuilder -i test.conf -o pcp -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.conf --output store.conf], 0, [ignore], [ignore])
|
|---|
| 46 | AT_CHECK([diff store.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/test.conf], 0, [ignore], [ignore])
|
|---|
| 47 | AT_CLEANUP
|
|---|
| 48 | AT_SETUP([Simple configuration - saving mpqc (from parsed xyz) file])
|
|---|
| 49 | AT_KEYWORDS([configuration])
|
|---|
| 50 | AT_CHECK([../../molecuilder -i test.xyz -o mpqc -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.xyz --output store.in], 0, [ignore], [ignore])
|
|---|
| 51 | AT_CHECK([diff store.in ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/test.in], 0, [ignore], [ignore])
|
|---|
| 52 | AT_CLEANUP
|
|---|
| 53 | AT_SETUP([Simple configuration - saving pdb file])
|
|---|
| 54 | AT_KEYWORDS([configuration])
|
|---|
| 55 | AT_CHECK([../../molecuilder -i test.pdb -o pdb -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.pdb --output store.pdb], 0, [ignore], [ignore])
|
|---|
| 56 | AT_CHECK([diff -I '.*created by molecuilder.*' store.pdb ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/test.pdb], 0, [ignore], [ignore])
|
|---|
| 57 | AT_CLEANUP
|
|---|
| 58 | AT_SETUP([Simple configuration - saving xyz file])
|
|---|
| 59 | AT_KEYWORDS([configuration])
|
|---|
| 60 | AT_CHECK([../../molecuilder -i test.xyz -o xyz -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.xyz --output store.xyz], 0, [ignore], [ignore])
|
|---|
| 61 | AT_CHECK([diff -I '.*Created by molecuilder.*' store.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/test.xyz], 0, [ignore], [ignore])
|
|---|
| 62 | AT_CLEANUP
|
|---|
| 63 |
|
|---|
| 64 | # 3a. add atom
|
|---|
| 65 | AT_SETUP([Simple configuration - adding atom])
|
|---|
| 66 | AT_KEYWORDS([configuration])
|
|---|
| 67 | AT_CHECK([../../molecuilder -i test.conf -o mpqc pcp xyz -a 1 --domain-position "10., 10., 10."], 0, [ignore], [ignore])
|
|---|
| 68 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
|---|
| 69 | AT_CHECK([file=test.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
|---|
| 70 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
|---|
| 71 | AT_CHECK([../../molecuilder -i test2.conf -o mpqc pcp xyz -a 1 --domain-position "0., 0., -1."], 134, [ignore], [ignore])
|
|---|
| 72 | AT_CLEANUP
|
|---|
| 73 | AT_SETUP([Simple configuration - adding atom with Undo/Redo])
|
|---|
| 74 | AT_KEYWORDS([configuration])
|
|---|
| 75 | AT_CHECK([../../molecuilder -i empty.conf -o pcp -a 1 --domain-position "10., 10., 10." --undo], 0, [ignore], [ignore])
|
|---|
| 76 | AT_CHECK([file=empty.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
|---|
| 77 | AT_CHECK([../../molecuilder -i test.conf -o mpqc pcp xyz -a 1 --domain-position "10., 10., 10." --undo --redo], 0, [ignore], [ignore])
|
|---|
| 78 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
|---|
| 79 | AT_CHECK([file=test.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
|---|
| 80 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore])
|
|---|
| 81 | AT_CLEANUP
|
|---|
| 82 |
|
|---|
| 83 | # 4. change the element
|
|---|
| 84 | AT_SETUP([Simple configuration - Changing element])
|
|---|
| 85 | AT_KEYWORDS([configuration])
|
|---|
| 86 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/pre/test.xyz test.xyz], 0)
|
|---|
| 87 | AT_CHECK([../../molecuilder -i test.xyz --select-atom-by-id 0 -E 6 ], 0, [ignore], [ignore])
|
|---|
| 88 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/post/$file], 0, [ignore], [ignore])
|
|---|
| 89 | AT_CLEANUP
|
|---|
| 90 | AT_SETUP([Simple configuration - Changing element with Undo/Redo])
|
|---|
| 91 | AT_KEYWORDS([configuration])
|
|---|
| 92 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/pre/test.xyz test.xyz], 0)
|
|---|
| 93 | AT_CHECK([../../molecuilder -i test.xyz --select-atom-by-id 0 -E 6 --undo], 0, [ignore], [ignore])
|
|---|
| 94 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/pre/$file], 0, [ignore], [ignore])
|
|---|
| 95 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/pre/test.xyz test.xyz], 0)
|
|---|
| 96 | AT_CHECK([../../molecuilder -i test.xyz --select-atom-by-id 0 -E 6 --undo --redo], 0, [ignore], [ignore])
|
|---|
| 97 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/post/$file], 0, [ignore], [ignore])
|
|---|
| 98 | AT_CLEANUP
|
|---|
| 99 |
|
|---|
| 100 | # 5. remove atom
|
|---|
| 101 | AT_SETUP([Simple configuration - Atom removal])
|
|---|
| 102 | AT_KEYWORDS([configuration])
|
|---|
| 103 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/pre/test.conf .], 0)
|
|---|
| 104 | AT_CHECK([../../molecuilder -i test.conf -o mpqc pcp xyz --select-atom-by-id 0 -r], 0, [ignore], [ignore])
|
|---|
| 105 | AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore])
|
|---|
| 106 | AT_CHECK([file=test.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore])
|
|---|
| 107 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore])
|
|---|
| 108 | AT_CLEANUP
|
|---|
| 109 | AT_SETUP([Simple configuration - Atom removal with Undo/Redo])
|
|---|
| 110 | AT_KEYWORDS([configuration])
|
|---|
| 111 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/pre/test.conf .], 0)
|
|---|
| 112 | AT_CHECK([../../molecuilder -i test.conf --select-atom-by-id 0 -r --undo], 0, [ignore], [ignore])
|
|---|
| 113 | AT_CHECK([file=test.conf; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/pre/$file], 0, [ignore], [ignore])
|
|---|
| 114 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/pre/test.conf .], 0)
|
|---|
| 115 | AT_CHECK([../../molecuilder -i test.conf --select-atom-by-id 0 -r --undo --redo], 0, [ignore], [ignore])
|
|---|
| 116 | AT_CHECK([file=test.conf; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore])
|
|---|
| 117 | AT_CLEANUP
|
|---|
| 118 |
|
|---|
| 119 | # 6. test some more configuration that all desire parameters and count how many complain
|
|---|
| 120 | AT_SETUP([Simple configuration - invalid commands on empty configs])
|
|---|
| 121 | AT_KEYWORDS([configuration])
|
|---|
| 122 | AT_CHECK([../../molecuilder -i empty.conf -t -s -b -E -c -b -a -U -T -u], 134, [ignore], [stderr])
|
|---|
| 123 | AT_CLEANUP
|
|---|
| 124 |
|
|---|
| 125 | # 7. test some more configuration that all need parameters and count how many complain
|
|---|
| 126 | AT_SETUP([Simple configuration - invalid commands on present configs])
|
|---|
| 127 | AT_KEYWORDS([configuration])
|
|---|
| 128 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/7/pre/test.conf .], 0)
|
|---|
| 129 | AT_CHECK([../../molecuilder -i test.conf -t], 134, [ignore], [stderr])
|
|---|
| 130 | AT_CHECK([../../molecuilder -i test.conf -s -b -E -c -b -a -U -T -u], 134, [ignore], [stderr])
|
|---|
| 131 | AT_CHECK([../../molecuilder -i test.conf -b -E -c -b -a -U -T -u], 134, [ignore], [stderr])
|
|---|
| 132 | AT_CHECK([../../molecuilder -i test.conf -E -c -b -a -U -T -u], 134, [ignore], [stderr])
|
|---|
| 133 | AT_CHECK([../../molecuilder -i test.conf -c -b -a -U -T -u], 134, [ignore], [stderr])
|
|---|
| 134 | AT_CHECK([../../molecuilder -i test.conf -b -a -U -T -u], 134, [ignore], [stderr])
|
|---|
| 135 | AT_CHECK([../../molecuilder -i test.conf -a -U -T -u], 134, [ignore], [stderr])
|
|---|
| 136 | AT_CHECK([../../molecuilder -i test.conf -U -T -u], 134, [ignore], [stderr])
|
|---|
| 137 | AT_CHECK([../../molecuilder -i test.conf -T -u], 134, [ignore], [stderr])
|
|---|
| 138 | AT_CHECK([../../molecuilder -i test.conf -u], 134, [ignore], [stderr])
|
|---|
| 139 | AT_CLEANUP
|
|---|
| 140 |
|
|---|
| 141 | # 8. Removing _shape_ of atoms
|
|---|
| 142 | AT_SETUP([Simple configuration - Removing sphere of atoms])
|
|---|
| 143 | AT_KEYWORDS([configuration])
|
|---|
| 144 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz test-withoutsphere.xyz], 0)
|
|---|
| 145 | AT_CHECK([../../molecuilder -i test-withoutsphere.xyz --select-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0. -r], 0, [stdout], [stderr])
|
|---|
| 146 | AT_CHECK([sort -n test-withoutsphere.xyz | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-withoutsphere.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 147 | AT_CHECK([file=test-withoutsphere.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 148 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz test-sphere.xyz], 0)
|
|---|
| 149 | AT_CHECK([../../molecuilder -i test-sphere.xyz --select-all-atoms --unselect-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0. -r], 0, [stdout], [stderr])
|
|---|
| 150 | AT_CHECK([sort -n test-sphere.xyz | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-sphere.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 151 | AT_CHECK([file=test-sphere.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 152 | AT_CHECK([cat test-sphere.xyz-sorted test-withoutsphere.xyz-sorted | sort -n >test.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 153 | AT_CHECK([file=test.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 154 | AT_CLEANUP
|
|---|
| 155 | AT_SETUP([Simple configuration - Removing sphere of atoms with Undo/Redo])
|
|---|
| 156 | AT_KEYWORDS([configuration])
|
|---|
| 157 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz .], 0)
|
|---|
| 158 | AT_CHECK([../../molecuilder -i test.xyz --select-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0. -r --undo], 0, [stdout], [stderr])
|
|---|
| 159 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/$file], 0, [ignore], [ignore])
|
|---|
| 160 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz test-withoutsphere.xyz], 0)
|
|---|
| 161 | AT_CHECK([../../molecuilder -i test-withoutsphere.xyz --select-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0. -r --undo --redo], 0, [stdout], [stderr])
|
|---|
| 162 | AT_CHECK([sort -n test-withoutsphere.xyz | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-withoutsphere.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 163 | AT_CHECK([file=test-withoutsphere.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 164 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz .], 0)
|
|---|
| 165 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms --unselect-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0. -r --undo], 0, [stdout], [stderr])
|
|---|
| 166 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/$file], 0, [ignore], [ignore])
|
|---|
| 167 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz test-sphere.xyz], 0)
|
|---|
| 168 | AT_CHECK([../../molecuilder -i test-sphere.xyz --select-all-atoms --unselect-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0. -r --undo --redo], 0, [stdout], [stderr])
|
|---|
| 169 | AT_CHECK([sort -n test-sphere.xyz | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-sphere.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 170 | AT_CHECK([file=test-sphere.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 171 | AT_CHECK([cat test-sphere.xyz-sorted test-withoutsphere.xyz-sorted | sort -n >test.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 172 | AT_CHECK([file=test.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 173 | AT_CLEANUP
|
|---|
| 174 |
|
|---|
| 175 | AT_SETUP([Simple configuration - Removing cuboid of atoms])
|
|---|
| 176 | AT_KEYWORDS([configuration])
|
|---|
| 177 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz test-withoutcuboid.xyz], 0)
|
|---|
| 178 | AT_CHECK([../../molecuilder -i test-withoutcuboid.xyz --select-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0. -r], 0, [stdout], [stderr])
|
|---|
| 179 | AT_CHECK([sort -n test-withoutcuboid.xyz | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-withoutcuboid.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 180 | AT_CHECK([file=test-withoutcuboid.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 181 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz test-cuboid.xyz], 0)
|
|---|
| 182 | AT_CHECK([../../molecuilder -i test-cuboid.xyz --select-all-atoms --unselect-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0. -r], 0, [stdout], [stderr])
|
|---|
| 183 | AT_CHECK([sort -n test-cuboid.xyz | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-cuboid.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 184 | AT_CHECK([file=test-cuboid.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 185 | AT_CHECK([cat test-cuboid.xyz-sorted test-withoutcuboid.xyz-sorted | sort -n >test.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 186 | AT_CHECK([file=test.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 187 | AT_CLEANUP
|
|---|
| 188 | AT_SETUP([Simple configuration - Removing cuboid of atoms with Undo/Redo])
|
|---|
| 189 | AT_KEYWORDS([configuration])
|
|---|
| 190 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz .], 0)
|
|---|
| 191 | AT_CHECK([../../molecuilder -i test.xyz --select-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0. -r --undo], 0, [stdout], [stderr])
|
|---|
| 192 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/$file], 0, [ignore], [ignore])
|
|---|
| 193 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz test-withoutcuboid.xyz], 0)
|
|---|
| 194 | AT_CHECK([../../molecuilder -i test-withoutcuboid.xyz --select-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0. -r --undo --redo], 0, [stdout], [stderr])
|
|---|
| 195 | AT_CHECK([sort -n test-withoutcuboid.xyz | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-withoutcuboid.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 196 | AT_CHECK([file=test-withoutcuboid.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 197 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz .], 0)
|
|---|
| 198 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms --unselect-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0. -r --undo], 0, [stdout], [stderr])
|
|---|
| 199 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/$file], 0, [ignore], [ignore])
|
|---|
| 200 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/pre/test.xyz test-cuboid.xyz], 0)
|
|---|
| 201 | AT_CHECK([../../molecuilder -i test-cuboid.xyz --select-all-atoms --unselect-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0. -r --undo --redo], 0, [stdout], [stderr])
|
|---|
| 202 | AT_CHECK([sort -n test-cuboid.xyz | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-cuboid.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 203 | AT_CHECK([file=test-cuboid.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 204 | AT_CHECK([cat test-cuboid.xyz-sorted test-withoutcuboid.xyz-sorted | sort -n >test.xyz-sorted], 0, [ignore], [ignore])
|
|---|
| 205 | AT_CHECK([file=test.xyz-sorted; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/8/post/$file], 0, [ignore], [ignore])
|
|---|
| 206 | AT_CLEANUP
|
|---|
| 207 |
|
|---|
| 208 | # 9. Undo and redo a translation
|
|---|
| 209 | AT_SETUP([Simple configuration - Translation])
|
|---|
| 210 | AT_KEYWORDS([configuration])
|
|---|
| 211 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/9/pre/test.xyz .], 0)
|
|---|
| 212 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms -t "1,0,0"], 0, [stdout], [stderr])
|
|---|
| 213 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/9/post/test-shifted.xyz], 0, [ignore], [ignore])
|
|---|
| 214 | AT_CLEANUP
|
|---|
| 215 | AT_SETUP([Simple configuration - Translation with Undo/Redo])
|
|---|
| 216 | AT_KEYWORDS([configuration])
|
|---|
| 217 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/9/pre/test.xyz .], 0)
|
|---|
| 218 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms -t "1,0,0" --undo], 0, [stdout], [stderr])
|
|---|
| 219 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/9/pre/test.xyz], 0, [ignore], [ignore])
|
|---|
| 220 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/9/pre/test.xyz .], 0)
|
|---|
| 221 | AT_CHECK([../../molecuilder -i test.xyz --select-all-atoms -t "1,0,0" --undo --redo], 0, [stdout], [stderr])
|
|---|
| 222 | AT_CHECK([diff -I '.*Created by molecuilder.*' test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/9/post/test-shifted.xyz], 0, [ignore], [ignore])
|
|---|
| 223 | AT_CLEANUP
|
|---|