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