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 | ### set boundary conditions
|
---|
19 |
|
---|
20 | AT_SETUP([Domain - set boundary conditions])
|
---|
21 | AT_KEYWORDS([domain set-boundary-conditions])
|
---|
22 |
|
---|
23 | BC="Wrap Wrap Wrap"
|
---|
24 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC], 0, [stdout], [stderr])
|
---|
25 | AT_CHECK([fgrep "Boundary conditions are now ${BC}" stdout], 0, [ignore], [ignore])
|
---|
26 | BC="Bounce Bounce Bounce"
|
---|
27 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC], 0, [stdout], [stderr])
|
---|
28 | AT_CHECK([fgrep "Boundary conditions are now ${BC}" stdout], 0, [ignore], [ignore])
|
---|
29 | BC="Ignore Ignore Ignore"
|
---|
30 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC], 0, [stdout], [stderr])
|
---|
31 | AT_CHECK([fgrep "Boundary conditions are now ${BC}" stdout], 0, [ignore], [ignore])
|
---|
32 | BC="Wrap Bounce Ignore"
|
---|
33 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC], 0, [stdout], [stderr])
|
---|
34 | AT_CHECK([fgrep "Boundary conditions are now ${BC}" stdout], 0, [ignore], [ignore])
|
---|
35 |
|
---|
36 | AT_CLEANUP
|
---|
37 |
|
---|
38 |
|
---|
39 | AT_SETUP([Domain - set boundary conditions with Undo])
|
---|
40 | AT_KEYWORDS([domain set-boundary-conditions undo])
|
---|
41 |
|
---|
42 | Check_BC="Wrap Wrap Wrap"
|
---|
43 | BC="Wrap Wrap Wrap"
|
---|
44 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo], 0, [stdout], [stderr])
|
---|
45 | AT_CHECK([fgrep "Boundary conditions are set back to ${Check_BC}" stdout], 0, [ignore], [ignore])
|
---|
46 | BC="Bounce Bounce Bounce"
|
---|
47 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo], 0, [stdout], [stderr])
|
---|
48 | AT_CHECK([fgrep "Boundary conditions are set back to ${Check_BC}" stdout], 0, [ignore], [ignore])
|
---|
49 | BC="Ignore Ignore Ignore"
|
---|
50 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo], 0, [stdout], [stderr])
|
---|
51 | AT_CHECK([fgrep "Boundary conditions are set back to ${Check_BC}" stdout], 0, [ignore], [ignore])
|
---|
52 | BC="Wrap Bounce Ignore"
|
---|
53 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo], 0, [stdout], [stderr])
|
---|
54 | AT_CHECK([fgrep "Boundary conditions are set back to ${Check_BC}" stdout], 0, [ignore], [ignore])
|
---|
55 |
|
---|
56 | AT_CLEANUP
|
---|
57 |
|
---|
58 |
|
---|
59 | AT_SETUP([Domain - set boundary conditions with Redo])
|
---|
60 | AT_KEYWORDS([domain set-boundary-conditions redo])
|
---|
61 |
|
---|
62 | BC="Wrap Wrap Wrap"
|
---|
63 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --redo], 0, [stdout], [stderr])
|
---|
64 | AT_CHECK([fgrep "Boundary conditions are again ${BC}" stdout], 0, [ignore], [ignore])
|
---|
65 | BC="Bounce Bounce Bounce"
|
---|
66 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --redo], 0, [stdout], [stderr])
|
---|
67 | AT_CHECK([fgrep "Boundary conditions are again ${BC}" stdout], 0, [ignore], [ignore])
|
---|
68 | BC="Ignore Ignore Ignore"
|
---|
69 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --redo], 0, [stdout], [stderr])
|
---|
70 | AT_CHECK([fgrep "Boundary conditions are again ${BC}" stdout], 0, [ignore], [ignore])
|
---|
71 | BC="Wrap Bounce Ignore"
|
---|
72 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --redo], 0, [stdout], [stderr])
|
---|
73 | AT_CHECK([fgrep "Boundary conditions are again ${BC}" stdout], 0, [ignore], [ignore])
|
---|
74 |
|
---|
75 | AT_CLEANUP
|
---|