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