[512f85] | 1 | ### 4. (un)select all atoms of molecule
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Selection - All atoms of selected molecules])
|
---|
| 4 | AT_KEYWORDS([selection])
|
---|
| 5 | file=molecule1.xyz
|
---|
| 6 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 7 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 1 --select-molecules-atoms -r], 0, [stdout], [stderr])
|
---|
[512f85] | 8 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/$file], 0, [ignore], [ignore])
|
---|
| 9 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 10 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 1 --select-molecules-atoms --undo -r], 0, [stdout], [stderr])
|
---|
[512f85] | 11 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz], 0, [ignore], [ignore])
|
---|
| 12 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 13 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 1 --select-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
|
---|
[512f85] | 14 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/$file], 0, [ignore], [ignore])
|
---|
| 15 | file=molecule0.xyz
|
---|
| 16 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 17 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 2 --select-molecules-atoms -r], 0, [stdout], [stderr])
|
---|
[512f85] | 18 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/$file], 0, [ignore], [ignore])
|
---|
| 19 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 20 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 2 --select-molecules-atoms --undo -r], 0, [stdout], [stderr])
|
---|
[512f85] | 21 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz], 0, [ignore], [ignore])
|
---|
| 22 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 23 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-molecule-by-id 2 --select-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
|
---|
[512f85] | 24 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/$file], 0, [ignore], [ignore])
|
---|
| 25 | AT_CLEANUP
|
---|
| 26 |
|
---|
| 27 | AT_SETUP([Unselection - All atoms of selected molecules])
|
---|
| 28 | AT_KEYWORDS([selection])
|
---|
| 29 | file=molecule0.xyz
|
---|
| 30 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 31 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 1 --unselect-molecules-atoms -r], 0, [stdout], [stderr])
|
---|
[512f85] | 32 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/$file], 0, [ignore], [ignore])
|
---|
| 33 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 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])
|
---|
[512f85] | 35 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/empty.xyz], 0, [ignore], [ignore])
|
---|
| 36 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 37 | 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])
|
---|
[512f85] | 38 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/$file], 0, [ignore], [ignore])
|
---|
| 39 | file=molecule1.xyz
|
---|
| 40 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 41 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 2 --unselect-molecules-atoms -r], 0, [stdout], [stderr])
|
---|
[512f85] | 42 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/$file], 0, [ignore], [ignore])
|
---|
| 43 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 44 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 2 --unselect-molecules-atoms --undo -r], 0, [stdout], [stderr])
|
---|
[512f85] | 45 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/empty.xyz], 0, [ignore], [ignore])
|
---|
| 46 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/pre/test.xyz $file], 0)
|
---|
[c42e60] | 47 | AT_CHECK([../../molecuilder -i $file -v 3 -I --select-all-atoms --select-molecule-by-id 2 --unselect-molecules-atoms --undo --redo -r], 0, [stdout], [stderr])
|
---|
[512f85] | 48 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/4/post/$file], 0, [ignore], [ignore])
|
---|
| 49 | AT_CLEANUP
|
---|