source: tests/regression/Filling/FillVoidWithMolecule/testsuite-fill-void-with-molecule.at@ 0f3042

Last change on this file since 0f3042 was 0d97b4, checked in by Frederik Heber <heber@…>, 12 years ago

FIX: Disclaimer appeared twice in each testsuite. Second time removed.

  • Property mode set to 100644
File size: 3.0 KB
Line 
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### filling box
19
20AT_SETUP([Filling - filling void space in box])
21AT_KEYWORDS([filling fill-void])
22
23file=test.conf
24AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVoidWithMolecule/pre/test.conf $file], 0)
25AT_DATA([water.xyz], [[3
26 # test configuration, created by molecuilder test suite
27O 0. 0. 0.
28H 0.758602 0. 0.504284
29H 0.758602 0. -0.504284
30]])
31AT_CHECK([../../molecuilder -i $file -o xyz --fill-void water.xyz --distances "3.1, 3.1, 3.1" --distance-to-molecule "1.5" --DoRotate 0], 0, [stdout], [stderr])
32AT_CHECK([diff -I '.*reated by molecuilder.*' test.xyz ${abs_top_srcdir}/tests/regression/Filling/FillVoidWithMolecule/post/test.xyz], 0, [ignore], [ignore])
33
34AT_CLEANUP
35
36
37AT_SETUP([Filling - filling void space in box with Undo])
38AT_KEYWORDS([filling fill-void undo])
39
40file=empty.conf
41AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVoidWithMolecule/pre/test.conf $file], 0)
42AT_DATA([water.xyz], [[3
43 # test configuration, created by molecuilder test suite
44O 0. 0. 0.
45H 0.758602 0. 0.504284
46H 0.758602 0. -0.504284
47]])
48AT_CHECK([../../molecuilder -i $file -o xyz --fill-void water.xyz --distances "3.1, 3.1, 3.1" --distance-to-molecule "1.5" --DoRotate 0 --undo], 0, [stdout], [stderr])
49AT_CHECK([diff -I '.*reated by molecuilder.*' empty.xyz ${abs_top_srcdir}/tests/regression/Filling/FillVoidWithMolecule/post/propane.xyz], 0, [ignore], [ignore])
50
51AT_CLEANUP
52
53
54AT_SETUP([Filling - filling void space in box with Redo])
55AT_XFAIL_IF([/bin/true])
56AT_KEYWORDS([filling fill-void redo])
57
58file=test.conf
59AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVoidWithMolecule/pre/test.conf $file], 0)
60AT_DATA([water.xyz], [[3
61 # test configuration, created by molecuilder test suite
62O 0. 0. 0.
63H 0.758602 0. 0.504284
64H 0.758602 0. -0.504284
65]])
66AT_CHECK([../../molecuilder -i $file -o xyz --fill-void water.xyz --distances "3.1, 3.1, 3.1" --distance-to-molecule "1.5" --DoRotate 0 --undo --redo], 0, [stdout], [stderr])
67AT_CHECK([diff -I '.*reated by molecuilder.*' test.xyz ${abs_top_srcdir}/tests/regression/Filling/FillVoidWithMolecule/post/test.xyz], 0, [ignore], [ignore])
68
69AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.