| 1 | ### 1. (un)select all atoms
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 | AT_SETUP([Unselection - All Atoms])
|
|---|
| 5 | AT_KEYWORDS([unselection unselect-all-atoms])
|
|---|
| 6 |
|
|---|
| 7 | file=box.xyz
|
|---|
| 8 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtoms/pre/box.xyz $file], 0)
|
|---|
| 9 | AT_CHECK([chmod u+w $file], 0)
|
|---|
| 10 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms -r], 0, [stdout], [stderr])
|
|---|
| 11 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtoms/post/box.xyz], 0, [ignore], [ignore])
|
|---|
| 12 |
|
|---|
| 13 | AT_CLEANUP
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | AT_SETUP([Unselection - All Atoms with Undo])
|
|---|
| 17 | AT_KEYWORDS([unselection unselect-all-atoms undo])
|
|---|
| 18 |
|
|---|
| 19 | file=id0_missing.xyz
|
|---|
| 20 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtoms/pre/box.xyz $file], 0)
|
|---|
| 21 | AT_CHECK([chmod u+w $file], 0)
|
|---|
| 22 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo -r], 0, [stdout], [stderr])
|
|---|
| 23 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtoms/post/id0_missing.xyz], 0, [ignore], [ignore])
|
|---|
| 24 |
|
|---|
| 25 | AT_CLEANUP
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | AT_SETUP([Unselection - All Atoms with Redo])
|
|---|
| 29 | AT_KEYWORDS([unselection unselect-all-atoms undo])
|
|---|
| 30 |
|
|---|
| 31 | file=box.xyz
|
|---|
| 32 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtoms/pre/box.xyz .], 0)
|
|---|
| 33 | AT_CHECK([chmod u+w $file], 0)
|
|---|
| 34 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo --redo -r], 0, [stdout], [stderr])
|
|---|
| 35 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtoms/post/box.xyz], 0, [ignore], [ignore])
|
|---|
| 36 |
|
|---|
| 37 | AT_CLEANUP |
|---|