[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 | #
|
---|
| 18 | #
|
---|
| 19 | # MoleCuilder - creates and alters molecular systems
|
---|
| 20 | # Copyright (C) 2008-2012 University of Bonn
|
---|
| 21 | #
|
---|
| 22 | # This program is free software: you can redistribute it and/or modify
|
---|
| 23 | # it under the terms of the GNU General Public License as published by
|
---|
| 24 | # the Free Software Foundation, either version 3 of the License, or
|
---|
| 25 | # (at your option) any later version.
|
---|
| 26 | #
|
---|
| 27 | # This program is distributed in the hope that it will be useful,
|
---|
| 28 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 29 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 30 | # GNU General Public License for more details.
|
---|
| 31 | #
|
---|
| 32 | # You should have received a copy of the GNU General Public License
|
---|
| 33 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 34 | #
|
---|
[c77ac8] | 35 | ### 5. (un)select molecule by name
|
---|
| 36 |
|
---|
| 37 | AT_SETUP([Selection - Molecules by name])
|
---|
[e611dc] | 38 | AT_KEYWORDS([selection molecule select-molecules-by-name])
|
---|
[7c958e] | 39 |
|
---|
[7db9bd] | 40 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
[c77ac8] | 41 | srcfile=test.xyz
|
---|
[7c958e] | 42 | testfile=test.xyz
|
---|
| 43 | targetfile=water.xyz
|
---|
| 44 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 45 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" -s $targetfile], 0, [stdout], [stderr])
|
---|
| 46 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 47 |
|
---|
| 48 | AT_CLEANUP
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | AT_SETUP([Selection - Molecules by name with Undo])
|
---|
[e611dc] | 52 | AT_KEYWORDS([selection molecule select-molecules-by-name undo])
|
---|
[7c958e] | 53 |
|
---|
[7db9bd] | 54 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
[7c958e] | 55 | srcfile=test.xyz
|
---|
| 56 | testfile=test.xyz
|
---|
| 57 | targetfile=empty.xyz
|
---|
| 58 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 59 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
| 60 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 61 |
|
---|
[c77ac8] | 62 | AT_CLEANUP
|
---|
| 63 |
|
---|
[7c958e] | 64 |
|
---|
| 65 | AT_SETUP([Selection - Molecules by name with Redo])
|
---|
[e611dc] | 66 | AT_KEYWORDS([selection molecule select-molecules-by-name redo])
|
---|
[7c958e] | 67 |
|
---|
[7db9bd] | 68 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
[7c958e] | 69 | srcfile=test.xyz
|
---|
| 70 | testfile=test.xyz
|
---|
| 71 | targetfile=water.xyz
|
---|
| 72 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 73 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
| 74 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 75 |
|
---|
| 76 | AT_CLEANUP
|
---|
| 77 |
|
---|