[512f85] | 1 | ### 4. (un)select all atoms of molecule
|
---|
| 2 |
|
---|
[e69c87] | 3 |
|
---|
| 4 | AT_SETUP([Unselection - All atoms of selected molecules])
|
---|
[718542] | 5 | AT_KEYWORDS([unselection,unselect-molecules-atoms])
|
---|
[23b0c2] | 6 |
|
---|
| 7 | file=molecule0.xyz
|
---|
[7db9bd] | 8 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 9 | AT_CHECK([chmod u+w $file], 0)
|
---|
[e69c87] | 10 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 0 --unselect-molecules-atoms -r], 0, [stdout], [stderr])
|
---|
[7db9bd] | 11 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/post/molecule0.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 12 |
|
---|
[512f85] | 13 | file=molecule1.xyz
|
---|
[7db9bd] | 14 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 15 | AT_CHECK([chmod u+w $file], 0)
|
---|
[49c059] | 16 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 1 --unselect-molecules-atoms -r], 0, [stdout], [stderr])
|
---|
[7db9bd] | 17 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/post/molecule1.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 18 |
|
---|
[e69c87] | 19 | AT_CLEANUP
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | AT_SETUP([Unselection - All atoms of selected molecules with Undo])
|
---|
[718542] | 23 | AT_KEYWORDS([unselection,unselect-molecules-atoms,undo])
|
---|
[e69c87] | 24 |
|
---|
| 25 | file=molecule0.xyz
|
---|
[7db9bd] | 26 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
|
---|
[e69c87] | 27 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 28 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 0 --unselect-molecules-atoms --undo -r], 0, [stdout], [stderr])
|
---|
[7db9bd] | 29 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/post/empty.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 30 |
|
---|
[23b0c2] | 31 | file=molecule1.xyz
|
---|
[7db9bd] | 32 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 33 | AT_CHECK([chmod u+w $file], 0)
|
---|
[49c059] | 34 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 1 --unselect-molecules-atoms --undo -r], 0, [stdout], [stderr])
|
---|
[7db9bd] | 35 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/post/empty.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 36 |
|
---|
[e69c87] | 37 | AT_CLEANUP
|
---|
| 38 |
|
---|
| 39 |
|
---|
| 40 | AT_SETUP([Unselection - All atoms of selected molecules with Redo])
|
---|
[718542] | 41 | AT_KEYWORDS([unselection,unselect-molecules-atoms,redo])
|
---|
[e69c87] | 42 |
|
---|
| 43 | file=molecule0.xyz
|
---|
[7db9bd] | 44 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
|
---|
[e69c87] | 45 | AT_CHECK([chmod u+w $file], 0)
|
---|
| 46 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 0 --unselect-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
|
---|
[7db9bd] | 47 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/post/molecule0.xyz], 0, [ignore], [ignore])
|
---|
[e69c87] | 48 |
|
---|
[23b0c2] | 49 | file=molecule1.xyz
|
---|
[7db9bd] | 50 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/pre/test.xyz $file], 0)
|
---|
[23b0c2] | 51 | AT_CHECK([chmod u+w $file], 0)
|
---|
[49c059] | 52 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 1 --unselect-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
|
---|
[7db9bd] | 53 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AllAtomsOfMolecule/post/molecule1.xyz], 0, [ignore], [ignore])
|
---|
[23b0c2] | 54 |
|
---|
[512f85] | 55 | AT_CLEANUP
|
---|