source: tests/regression/Filling/FillSurface/testsuite-fill-surface-cylinder.at

Candidate_v1.6.1
Last change on this file was 209f4c, checked in by Frederik Heber <frederik.heber@…>, 6 years ago

TESTS: Fixed FillSurface and FillVolumne, recreated GuiChecks.

  • createGuiChecks.sh cannot decipher when AT_CHECK is on single line or when result code is not connected to last line but on new line. Hence, we had to fold some lines FillSurface and FillVolume back.
  • Property mode set to 100644
File size: 3.4 KB
Line 
1#
2# MoleCuilder - creates and alters molecular systems
3# Copyright (C) 2014 Frederik Heber
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 cylinder's surface
19
20AT_SETUP([Filling - Fill cylinder's surface])
21AT_KEYWORDS([filling fill-surface cylinder rotate-to-principal-axis-system])
22
23file=water_cylinder.xyz
24AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillSurface/pre/water.xyz water.xyz], 0)
25AT_CHECK([chmod u+w water.xyz], 0)
26AT_CHECK([../../molecuilder \
27 -i $file \
28 -l water.xyz \
29 --select-all-molecules \
30 --rotate-to-principal-axis-system "0,0,-1" \
31 --create-shape \
32 --shape-name "cylinder1" \
33 --shape-type "cylinder" \
34 --translation "10,10,0." \
35 --stretch "5.,5.,20." \
36 --select-shape-by-name "cylinder1" \
37 --fill-surface \
38 --count 20 \
39 --min-distance 3.1 \
40 --Alignment-Axis "0,0,-1"], 0, [stdout], [stderr])
41AT_CHECK([grep "32 out of 32 returned true from predicate" stdout], 0, [ignore], [ignore])
42AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillSurface/post/$file], 0, [ignore], [ignore])
43
44AT_CLEANUP
45
46
47AT_SETUP([Filling - Fill cylinder's surface with Undo])
48AT_KEYWORDS([filling fill-surface cylinder rotate-to-principal-axis-system undo])
49
50file=water_undo.xyz
51AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillSurface/pre/water.xyz water.xyz], 0)
52AT_CHECK([chmod u+w water.xyz], 0)
53AT_CHECK([../../molecuilder \
54 -i $file \
55 -l water.xyz \
56 --select-all-molecules \
57 --rotate-to-principal-axis-system "0,0,-1" \
58 --create-shape \
59 --shape-name "cylinder1" \
60 --shape-type "cylinder" \
61 --translation "10,10,0." \
62 --stretch "5.,5.,20." \
63 --select-shape-by-name "cylinder1" \
64 --fill-surface \
65 --count 20 \
66 --min-distance 3.1 \
67 --Alignment-Axis "0,0,-1" \
68 --undo], 0, [stdout], [stderr])
69AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillSurface/post/$file], 0, [ignore], [ignore])
70
71AT_CLEANUP
72
73
74AT_SETUP([Filling - Fill cylinder's surface with Redo])
75AT_KEYWORDS([filling fill-surface cylinder rotate-to-principal-axis-system redo])
76
77file=water_cylinder.xyz
78AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillSurface/pre/water.xyz water.xyz], 0)
79AT_CHECK([chmod u+w water.xyz], 0)
80AT_CHECK([../../molecuilder \
81 -i $file \
82 -l water.xyz \
83 --select-all-molecules \
84 --rotate-to-principal-axis-system "0,0,-1" \
85 --create-shape \
86 --shape-name "cylinder1" \
87 --shape-type "cylinder" \
88 --translation "10,10,0." \
89 --stretch "5.,5.,20." \
90 --select-shape-by-name "cylinder1" \
91 --fill-surface \
92 --count 20 \
93 --min-distance 3.1 \
94 --Alignment-Axis "0,0,-1" \
95 --undo \
96 --redo], 0, [stdout], [stderr])
97AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillSurface/post/$file], 0, [ignore], [ignore])
98
99AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.