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