[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 | ### (un)select molecules by order
|
---|
[c77ac8] | 19 |
|
---|
| 20 |
|
---|
[d70fff] | 21 | AT_SETUP([Selection - Molecule by order, forward])
|
---|
[e611dc] | 22 | AT_KEYWORDS([selection molecule select-molecule-by-order])
|
---|
[7c958e] | 23 |
|
---|
[7db9bd] | 24 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
[d70fff] | 25 | srcfile=twowater.xyz
|
---|
[7c958e] | 26 | testfile=test.xyz
|
---|
[d70fff] | 27 | targetfile=water_id0.xyz
|
---|
[7c958e] | 28 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
[d70fff] | 29 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-order 1 -s $targetfile], 0, [stdout], [stderr])
|
---|
[7c958e] | 30 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 31 |
|
---|
[7db9bd] | 32 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
[d70fff] | 33 | srcfile=twowater.xyz
|
---|
[7c958e] | 34 | testfile=test.xyz
|
---|
[d70fff] | 35 | targetfile=water_id1.xyz
|
---|
[7c958e] | 36 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
[d70fff] | 37 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-order 2 -s $targetfile], 0, [stdout], [stderr])
|
---|
[7c958e] | 38 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 39 |
|
---|
[c77ac8] | 40 | AT_CLEANUP
|
---|
| 41 |
|
---|
[7c958e] | 42 |
|
---|
[d70fff] | 43 | AT_SETUP([Selection - Molecule by order, forward with Undo])
|
---|
[e611dc] | 44 | AT_KEYWORDS([selection molecule select-molecule-by-order undo])
|
---|
[7c958e] | 45 |
|
---|
[23958d] | 46 | comparisonfile=empty.xyz
|
---|
[7db9bd] | 47 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
[d70fff] | 48 | srcfile=twowater.xyz
|
---|
[7c958e] | 49 | testfile=test.xyz
|
---|
[23958d] | 50 | targetfile=empty1.xyz
|
---|
[7c958e] | 51 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
[d70fff] | 52 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-order 1 --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
[23958d] | 53 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$comparisonfile], 0, [ignore], [ignore])
|
---|
[7c958e] | 54 |
|
---|
[7db9bd] | 55 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
[d70fff] | 56 | srcfile=twowater.xyz
|
---|
[7c958e] | 57 | testfile=test.xyz
|
---|
[23958d] | 58 | targetfile=empty2.xyz
|
---|
[7c958e] | 59 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
[d70fff] | 60 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-order 2 --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
[23958d] | 61 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$comparisonfile], 0, [ignore], [ignore])
|
---|
[7c958e] | 62 |
|
---|
| 63 | AT_CLEANUP
|
---|
| 64 |
|
---|
| 65 |
|
---|
[d70fff] | 66 | AT_SETUP([Selection - Molecule by order, forward with Redo])
|
---|
[e611dc] | 67 | AT_KEYWORDS([selection molecule select-molecule-by-order redo])
|
---|
[7c958e] | 68 |
|
---|
[7db9bd] | 69 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
[d70fff] | 70 | srcfile=twowater.xyz
|
---|
[7c958e] | 71 | testfile=test.xyz
|
---|
[d70fff] | 72 | targetfile=water_id0.xyz
|
---|
[7c958e] | 73 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
[d70fff] | 74 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-order 1 --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
[7c958e] | 75 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 76 |
|
---|
[7db9bd] | 77 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByOrder"
|
---|
[d70fff] | 78 | srcfile=twowater.xyz
|
---|
[7c958e] | 79 | testfile=test.xyz
|
---|
[d70fff] | 80 | targetfile=water_id1.xyz
|
---|
[7c958e] | 81 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
[d70fff] | 82 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-order 2 --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
[7c958e] | 83 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 84 |
|
---|
[c77ac8] | 85 | AT_CLEANUP
|
---|