[512f85] | 1 | ### 5. (un)select atoms by element
|
---|
| 2 |
|
---|
| 3 | # select element by atomic number: 1, 4
|
---|
| 4 | AT_SETUP([Selection - All atoms with specific element by atomic number])
|
---|
| 5 | AT_KEYWORDS([selection,atom,element,atomic number])
|
---|
| 6 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/pre/test.xyz test-H_missing.xyz], 0)
|
---|
| 7 | AT_CHECK([../../molecuilder -i test-H_missing.xyz -v 3 --select-atom-by-element 1 -r], 0, [stdout], [stderr])
|
---|
| 8 | AT_CHECK([file=test-H_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/post/$file], 0, [ignore], [ignore])
|
---|
| 9 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/pre/test.xyz test-Be_missing.xyz], 0)
|
---|
| 10 | AT_CHECK([../../molecuilder -i test-Be_missing.xyz -v 3 --select-atom-by-element 4 -r], 0, [stdout], [stderr])
|
---|
| 11 | AT_CHECK([file=test-Be_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/post/$file], 0, [ignore], [ignore])
|
---|
| 12 | AT_CLEANUP
|
---|
| 13 |
|
---|
| 14 | AT_SETUP([Selection - All atoms with specific element by symbol with Undo/Redo])
|
---|
| 15 | AT_KEYWORDS([element,symbol])
|
---|
| 16 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/pre/test.xyz test.xyz], 0)
|
---|
| 17 | AT_CHECK([../../molecuilder -i test.xyz -v 3 --select-atom-by-element 1 --undo -r], 0, [stdout], [stderr])
|
---|
| 18 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/post/$file], 0, [ignore], [ignore])
|
---|
| 19 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/pre/test.xyz test.xyz], 0)
|
---|
| 20 | AT_CHECK([../../molecuilder -i test.xyz -v 3 --select-atom-by-element 4 --undo -r], 0, [stdout], [stderr])
|
---|
| 21 | AT_CHECK([file=test.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/post/$file], 0, [ignore], [ignore])
|
---|
| 22 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/pre/test.xyz test-H_missing.xyz], 0)
|
---|
| 23 | AT_CHECK([../../molecuilder -i test-H_missing.xyz -v 3 --select-atom-by-element 1 --undo --redo -r], 0, [stdout], [stderr])
|
---|
| 24 | AT_CHECK([file=test-H_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/post/$file], 0, [ignore], [ignore])
|
---|
| 25 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/pre/test.xyz test-Be_missing.xyz], 0)
|
---|
| 26 | AT_CHECK([../../molecuilder -i test-Be_missing.xyz -v 3 --select-atom-by-element 4 --undo --redo -r], 0, [stdout], [stderr])
|
---|
| 27 | AT_CHECK([file=test-Be_missing.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Atoms/5/post/$file], 0, [ignore], [ignore])
|
---|
| 28 | AT_CLEANUP |
---|