[6253ed] | 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 | #
|
---|
[c52e08] | 18 | ### set boundary conditions
|
---|
| 19 |
|
---|
| 20 | AT_SETUP([Domain - set boundary conditions])
|
---|
| 21 | AT_KEYWORDS([domain set-boundary-conditions])
|
---|
| 22 |
|
---|
[97f9b9] | 23 | BC="Wrap Wrap Wrap"
|
---|
| 24 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC], 0, [stdout], [stderr])
|
---|
[c52e08] | 25 | AT_CHECK([fgrep "Boundary conditions are now ${BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 26 | BC="Bounce Bounce Bounce"
|
---|
| 27 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC], 0, [stdout], [stderr])
|
---|
[c52e08] | 28 | AT_CHECK([fgrep "Boundary conditions are now ${BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 29 | BC="Ignore Ignore Ignore"
|
---|
| 30 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC], 0, [stdout], [stderr])
|
---|
[c52e08] | 31 | AT_CHECK([fgrep "Boundary conditions are now ${BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 32 | BC="Wrap Bounce Ignore"
|
---|
| 33 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC], 0, [stdout], [stderr])
|
---|
[c52e08] | 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 |
|
---|
[97f9b9] | 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])
|
---|
[c52e08] | 45 | AT_CHECK([fgrep "Boundary conditions are set back to ${Check_BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 46 | BC="Bounce Bounce Bounce"
|
---|
| 47 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo], 0, [stdout], [stderr])
|
---|
[c52e08] | 48 | AT_CHECK([fgrep "Boundary conditions are set back to ${Check_BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 49 | BC="Ignore Ignore Ignore"
|
---|
| 50 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo], 0, [stdout], [stderr])
|
---|
[c52e08] | 51 | AT_CHECK([fgrep "Boundary conditions are set back to ${Check_BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 52 | BC="Wrap Bounce Ignore"
|
---|
| 53 | AT_CHECK([../../molecuilder -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo], 0, [stdout], [stderr])
|
---|
[c52e08] | 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 |
|
---|
[97f9b9] | 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])
|
---|
[c52e08] | 64 | AT_CHECK([fgrep "Boundary conditions are again ${BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 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])
|
---|
[c52e08] | 67 | AT_CHECK([fgrep "Boundary conditions are again ${BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 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])
|
---|
[c52e08] | 70 | AT_CHECK([fgrep "Boundary conditions are again ${BC}" stdout], 0, [ignore], [ignore])
|
---|
[97f9b9] | 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])
|
---|
[c52e08] | 73 | AT_CHECK([fgrep "Boundary conditions are again ${BC}" stdout], 0, [ignore], [ignore])
|
---|
| 74 |
|
---|
| 75 | AT_CLEANUP
|
---|