source: tests/regression/Selection/Atoms/AtomByElement/testsuite-selection-unselect-atoms-by-element.at@ eea0bb

Last change on this file since eea0bb was 0d97b4, checked in by Frederik Heber <heber@…>, 12 years ago

FIX: Disclaimer appeared twice in each testsuite. Second time removed.

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[6253ed]1#
2# MoleCuilder - creates and alters molecular systems
3# Copyright (C) 2008-2012 University of Bonn
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17#
[512f85]18### 5. (un)select atoms by element
19
[93eb00]20
21# select element by atomic number: 1, 4
22AT_SETUP([Unselection - All atoms with specific element by atomic number])
[e611dc]23AT_KEYWORDS([unselection atom element unselect-atom-by-element])
[93eb00]24
25file=test-H_present.xyz
[7db9bd]26AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
[93eb00]27AT_CHECK([chmod u+w $file], 0)
28AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-element 1 -r], 0, [stdout], [stderr])
[7db9bd]29AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/post/test-H_present.xyz], 0, [ignore], [ignore])
[93eb00]30
31file=test-Be_present.xyz
[7db9bd]32AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
[93eb00]33AT_CHECK([chmod u+w $file], 0)
34AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-element 4 -r], 0, [stdout], [stderr])
[7db9bd]35AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/post/test-Be_present.xyz], 0, [ignore], [ignore])
[93eb00]36
37AT_CLEANUP
38
39
40AT_SETUP([Unselection - All atoms with specific element by symbol with Undo])
[e611dc]41AT_KEYWORDS([unselection atom element unselect-atom-by-element undo])
[93eb00]42
43file=test.xyz
[7db9bd]44AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
[93eb00]45AT_CHECK([chmod u+w $file], 0)
46AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-element 1 --undo -r], 0, [stdout], [stderr])
[7db9bd]47AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/post/empty.xyz], 0, [ignore], [ignore])
[93eb00]48
49file=test.xyz
[7db9bd]50AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
[93eb00]51AT_CHECK([chmod u+w $file], 0)
52AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-element 4 --undo -r], 0, [stdout], [stderr])
[7db9bd]53AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/post/empty.xyz], 0, [ignore], [ignore])
[93eb00]54
55AT_CLEANUP
56
57AT_SETUP([Unselection - All atoms with specific element by symbol with Redo])
[e611dc]58AT_KEYWORDS([unselection atom element unselect-atom-by-element redo])
[93eb00]59
60file=test-H_present.xyz
[7db9bd]61AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
[93eb00]62AT_CHECK([chmod u+w $file], 0)
63AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-element 1 --undo --redo -r], 0, [stdout], [stderr])
[7db9bd]64AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/post/test-H_present.xyz], 0, [ignore], [ignore])
[93eb00]65
66file=test-Be_present.xyz
[7db9bd]67AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/pre/test.xyz $file], 0)
[93eb00]68AT_CHECK([chmod u+w $file], 0)
69AT_CHECK([../../molecuilder -i $file -v 3 --select-all-atoms --unselect-atom-by-element 4 --undo --redo -r], 0, [stdout], [stderr])
[7db9bd]70AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomByElement/post/test-Be_present.xyz], 0, [ignore], [ignore])
[93eb00]71
[512f85]72AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.