[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 | #
|
---|
[d70fff] | 18 | ### 6. (un)select molecule from atom selection
|
---|
| 19 |
|
---|
| 20 | AT_SETUP([Selection - Molecules by atom selection])
|
---|
[e611dc] | 21 | AT_KEYWORDS([selection molecule select-atoms-molecules])
|
---|
[d70fff] | 22 |
|
---|
[7db9bd] | 23 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeOfAtom"
|
---|
[d70fff] | 24 | srcfile=box.xyz
|
---|
| 25 | testfile=test.xyz
|
---|
| 26 | targetfile=water.xyz
|
---|
| 27 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 28 | AT_CHECK([../../molecuilder -i $testfile -I --select-atom-by-id 0 --select-atoms-molecules -s $targetfile], 0, [stdout], [stderr])
|
---|
| 29 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 30 |
|
---|
| 31 | AT_CLEANUP
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | AT_SETUP([Selection - Molecules by atom selection with Undo])
|
---|
[e611dc] | 35 | AT_KEYWORDS([selection molecule select-atoms-molecules undo])
|
---|
[d70fff] | 36 |
|
---|
[7db9bd] | 37 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeOfAtom"
|
---|
[d70fff] | 38 | srcfile=box.xyz
|
---|
| 39 | testfile=test.xyz
|
---|
| 40 | targetfile=empty.xyz
|
---|
| 41 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 42 | AT_CHECK([../../molecuilder -i $testfile -I --select-atom-by-id 0 --select-atoms-molecules --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
| 43 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 44 |
|
---|
| 45 | AT_CLEANUP
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | AT_SETUP([Selection - Molecules by atom selection with Redo])
|
---|
[e611dc] | 49 | AT_KEYWORDS([selection molecule select-atoms-molecules redo])
|
---|
[d70fff] | 50 |
|
---|
[7db9bd] | 51 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeOfAtom"
|
---|
[d70fff] | 52 | srcfile=box.xyz
|
---|
| 53 | testfile=test.xyz
|
---|
| 54 | targetfile=water.xyz
|
---|
| 55 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 56 | AT_CHECK([../../molecuilder -i $testfile -I --select-atom-by-id 0 --select-atoms-molecules --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
| 57 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 58 |
|
---|
| 59 | AT_CLEANUP
|
---|