[61c364] | 1 | ### 6. (un)select atom by order
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Selection - atom with specific order])
|
---|
| 4 | AT_KEYWORDS([selection order atom select-atom-by-order])
|
---|
| 5 | # go through all possible orders (0-7) and removed
|
---|
| 6 | i=1
|
---|
| 7 | while test $i -le 8; do
|
---|
| 8 | let id=$i-1
|
---|
| 9 | file=id${id}_missing.xyz
|
---|
| 10 | # normal
|
---|
| 11 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/pre/test.xyz $file])
|
---|
| 12 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 13 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-order ${i} -r], [], [ignore], [ignore])
|
---|
| 14 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/post/id${id}_missing.xyz])
|
---|
| 15 | ((i+=1))
|
---|
| 16 | done
|
---|
| 17 | # go through all possible orders (0-7) and removed
|
---|
| 18 | i=1
|
---|
| 19 | while test $i -le 8; do
|
---|
| 20 | let id=8-$i
|
---|
| 21 | file=id${id}_missing.xyz
|
---|
| 22 | # normal
|
---|
| 23 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/pre/test.xyz $file])
|
---|
| 24 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 25 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-order -${i} -r], [], [ignore], [ignore])
|
---|
| 26 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/post/id${id}_missing.xyz])
|
---|
| 27 | ((i+=1))
|
---|
| 28 | done
|
---|
| 29 | AT_CLEANUP
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | AT_SETUP([Selection - atom with specific order with Undo])
|
---|
| 33 | AT_KEYWORDS([selection order atom select-atom-by-order undo])
|
---|
| 34 | # go through all possible ids (0-7) and removed
|
---|
| 35 | i=1
|
---|
| 36 | while test $i -le 8; do
|
---|
| 37 | let id=$i-1
|
---|
| 38 | file=id${id}_missing.xyz
|
---|
| 39 | # undo
|
---|
| 40 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/pre/test.xyz $file])
|
---|
| 41 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 42 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-order ${i} --undo -r], [], [ignore], [ignore])
|
---|
| 43 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/post/test-undo.xyz])
|
---|
| 44 | ((i+=1))
|
---|
| 45 | done
|
---|
| 46 | # go reverse through all possible ids (0-7) and removed
|
---|
| 47 | i=1
|
---|
| 48 | while test $i -le 8; do
|
---|
| 49 | let id=8-$i
|
---|
| 50 | file=id${id}_missing.xyz
|
---|
| 51 | # undo
|
---|
| 52 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/pre/test.xyz $file])
|
---|
| 53 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 54 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-order -${i} --undo -r], [], [ignore], [ignore])
|
---|
| 55 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/post/test-undo.xyz])
|
---|
| 56 | ((i+=1))
|
---|
| 57 | done
|
---|
| 58 | AT_CLEANUP
|
---|
| 59 |
|
---|
| 60 |
|
---|
| 61 | AT_SETUP([Selection - atom with specific order with Redo])
|
---|
| 62 | AT_KEYWORDS([selection order atom select-atom-by-order redo])
|
---|
| 63 | # go through all possible ids (0-7) and removed
|
---|
| 64 | i=1
|
---|
| 65 | while test $i -le 8; do
|
---|
| 66 | let id=$i-1
|
---|
| 67 | file=id${id}_missing.xyz
|
---|
| 68 | # redo
|
---|
| 69 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/pre/test.xyz $file])
|
---|
| 70 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 71 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-order ${i} --undo --redo -r], [], [ignore], [ignore])
|
---|
| 72 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/post/id${id}_missing.xyz])
|
---|
| 73 | ((i+=1))
|
---|
| 74 | done
|
---|
| 75 | # go reverse through all possible ids (0-7) and removed
|
---|
| 76 | i=1
|
---|
| 77 | while test $i -le 8; do
|
---|
| 78 | let id=8-$i
|
---|
| 79 | file=id${id}_missing.xyz
|
---|
| 80 | # redo
|
---|
| 81 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/pre/test.xyz $file])
|
---|
| 82 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 83 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-order -${i} --undo --redo -r], [], [ignore], [ignore])
|
---|
| 84 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByOrder/post/id${id}_missing.xyz])
|
---|
| 85 | ((i+=1))
|
---|
| 86 | done
|
---|
| 87 | AT_CLEANUP
|
---|