| 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 |
|
|---|
| 20 | AT_SETUP([Filling - filling cylinder's volume])
|
|---|
| 21 | AT_KEYWORDS([filling fill-volume cylinder])
|
|---|
| 22 |
|
|---|
| 23 | file=water_cylinder.xyz
|
|---|
| 24 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVolume/pre/water.xyz water.xyz], 0)
|
|---|
| 25 | AT_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])
|
|---|
| 38 | AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillVolume/post/$file], 0, [ignore], [ignore])
|
|---|
| 39 |
|
|---|
| 40 | AT_CLEANUP
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 | AT_SETUP([Filling - filling cylinder's volume with undo])
|
|---|
| 44 | AT_KEYWORDS([filling fill-volume cylinder undo])
|
|---|
| 45 |
|
|---|
| 46 | file=water_cylinder.xyz
|
|---|
| 47 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVolume/pre/water.xyz water.xyz], 0)
|
|---|
| 48 | AT_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])
|
|---|
| 62 | AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillVolume/post/water_undo.xyz], 0, [ignore], [ignore])
|
|---|
| 63 |
|
|---|
| 64 | AT_CLEANUP
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 | AT_SETUP([Filling - filling cylinder's volume with redo])
|
|---|
| 68 | AT_KEYWORDS([filling fill-volume cylinder undo redo])
|
|---|
| 69 |
|
|---|
| 70 | file=water_cylinder.xyz
|
|---|
| 71 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/FillVolume/pre/water.xyz water.xyz], 0)
|
|---|
| 72 | AT_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])
|
|---|
| 87 | AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/FillVolume/post/$file], 0, [ignore], [ignore])
|
|---|
| 88 |
|
|---|
| 89 | AT_CLEANUP
|
|---|