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 | #
|
---|
35 | ### duplicating box
|
---|
36 |
|
---|
37 | AT_SETUP([Domain - duplicating box])
|
---|
38 | AT_KEYWORDS([domain repeat-box])
|
---|
39 |
|
---|
40 | file=test.conf
|
---|
41 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
42 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
43 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 1], 0, [stdout], [stderr])
|
---|
44 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
45 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
46 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
47 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
48 |
|
---|
49 | file=test-x.conf
|
---|
50 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
51 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
52 | AT_CHECK([../../molecuilder -i $file -o xyz -d 2 1 1], 0, [stdout], [stderr])
|
---|
53 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
54 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
55 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
56 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
57 |
|
---|
58 | file=test-y.conf
|
---|
59 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
60 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
61 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 2 1], 0, [stdout], [stderr])
|
---|
62 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
63 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
64 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
65 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
66 |
|
---|
67 | file=test-z.conf
|
---|
68 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
69 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
70 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 2], 0, [stdout], [stderr])
|
---|
71 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
72 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
73 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
74 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
75 |
|
---|
76 | file=ec.data
|
---|
77 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
78 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
79 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2], 0, [stdout], [stderr])
|
---|
80 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
81 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/$file], 0, [ignore], [ignore])
|
---|
82 |
|
---|
83 | AT_CLEANUP
|
---|
84 |
|
---|
85 |
|
---|
86 | AT_SETUP([Domain - duplicating box with Undo])
|
---|
87 | AT_KEYWORDS([domain repeat-box undo])
|
---|
88 |
|
---|
89 | file=test.conf
|
---|
90 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
91 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
92 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 1 --undo], 0, [stdout], [stderr])
|
---|
93 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
94 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
95 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
96 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
97 |
|
---|
98 | file=test-x.conf
|
---|
99 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
100 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
101 | AT_CHECK([../../molecuilder -i $file -o xyz -d 2 1 1 --undo], 0, [stdout], [stderr])
|
---|
102 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
103 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
104 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
105 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
106 |
|
---|
107 | file=test-y.conf
|
---|
108 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
109 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
110 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 2 1 --undo], 0, [stdout], [stderr])
|
---|
111 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
112 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
113 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
114 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
115 |
|
---|
116 | file=test-z.conf
|
---|
117 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
118 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
119 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 2 --undo], 0, [stdout], [stderr])
|
---|
120 | AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
|
---|
121 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
122 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-undo.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
123 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
124 |
|
---|
125 | file=ec.data
|
---|
126 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
127 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
128 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --undo], 0, [stdout], [stderr])
|
---|
129 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
130 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/$file], 0, [ignore], [ignore])
|
---|
131 |
|
---|
132 | AT_CLEANUP
|
---|
133 |
|
---|
134 |
|
---|
135 | AT_SETUP([Domain - duplicating box with Redo])
|
---|
136 | AT_KEYWORDS([domain repeat-box redo])
|
---|
137 |
|
---|
138 | file=test.conf
|
---|
139 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
140 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
141 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 1 --undo --redo], 0, [stdout], [stderr])
|
---|
142 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
143 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
144 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
145 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
146 |
|
---|
147 | file=test-x.conf
|
---|
148 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
149 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
150 | AT_CHECK([../../molecuilder -i $file -o xyz -d 2 1 1 --undo --redo], 0, [stdout], [stderr])
|
---|
151 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
152 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
153 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
154 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
155 |
|
---|
156 | file=test-y.conf
|
---|
157 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
158 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
159 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 2 1 --undo --redo], 0, [stdout], [stderr])
|
---|
160 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
161 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
162 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
163 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
164 |
|
---|
165 | file=test-z.conf
|
---|
166 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
167 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
168 | AT_CHECK([../../molecuilder -i $file -o xyz -d 1 1 2 --undo --redo], 0, [stdout], [stderr])
|
---|
169 | AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
|
---|
170 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
171 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
172 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
173 |
|
---|
174 | file=ec.data
|
---|
175 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/pre/ec.* .], 0)
|
---|
176 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
177 | AT_CHECK([../../molecuilder --parse-tremolo-potentials ec.potentials -i $file -o tremolo -d 2 2 2 --undo --redo], 0, [stdout], [stderr])
|
---|
178 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
179 | AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/RepeatBox/post/$file], 0, [ignore], [ignore])
|
---|
180 |
|
---|
181 | AT_CLEANUP
|
---|