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