source: tests/regression/Filling/FillVolume/testsuite-fill-volume-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: 2.9 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 various shapes
19
20AT_SETUP([Filling - filling cylinder's volume])
21AT_KEYWORDS([filling fill-volume cylinder])
22
23file=water_cylinder.xyz
24AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVolume/pre/water.xyz water.xyz], 0)
25AT_CHECK([../../molecuilder \
26 -i $file \
27 -o xyz \
28 -l water.xyz \
29 --select-all-molecules \
30 --create-shape \
31 --shape-name "cylinder" \
32 --shape-type cylinder \
33 --translation 5,5,5 \
34 --stretch 3,3,3 \
35 --select-shape-by-name "cylinder" \
36 --fill-volume \
37 --count 12], 0, [stdout], [stderr])
38AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillVolume/post/$file], 0, [ignore], [ignore])
39
40AT_CLEANUP
41
42
43AT_SETUP([Filling - filling cylinder's volume with undo])
44AT_KEYWORDS([filling fill-volume cylinder undo])
45
46file=water_cylinder.xyz
47AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVolume/pre/water.xyz water.xyz], 0)
48AT_CHECK([../../molecuilder \
49 -i $file \
50 -o xyz \
51 -l water.xyz \
52 --select-all-molecules \
53 --create-shape \
54 --shape-name "cylinder" \
55 --shape-type cylinder \
56 --translation 5,5,5 \
57 --stretch 3,3,3 \
58 --select-shape-by-name "cylinder" \
59 --fill-volume \
60 --count 12 \
61 --undo], 0, [stdout], [stderr])
62AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillVolume/post/water_undo.xyz], 0, [ignore], [ignore])
63
64AT_CLEANUP
65
66
67AT_SETUP([Filling - filling cylinder's volume with redo])
68AT_KEYWORDS([filling fill-volume cylinder undo redo])
69
70file=water_cylinder.xyz
71AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVolume/pre/water.xyz water.xyz], 0)
72AT_CHECK([../../molecuilder \
73 -i $file \
74 -o xyz \
75 -l water.xyz \
76 --select-all-molecules \
77 --create-shape \
78 --shape-name "cylinder" \
79 --shape-type cylinder \
80 --translation 5,5,5 \
81 --stretch 3,3,3 \
82 --select-shape-by-name "cylinder" \
83 --fill-volume \
84 --count 12 \
85 --undo \
86 --redo], 0, [stdout], [stderr])
87AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillVolume/post/$file], 0, [ignore], [ignore])
88
89AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.