| 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 --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 25 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 26 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 27 | BC="Bounce Bounce Bounce" | 
|---|
| 28 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 29 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 30 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 31 | BC="Ignore Ignore Ignore" | 
|---|
| 32 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 33 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 34 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 35 | BC="Wrap Bounce Ignore" | 
|---|
| 36 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 37 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 38 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 39 |  | 
|---|
| 40 | AT_CLEANUP | 
|---|
| 41 |  | 
|---|
| 42 |  | 
|---|
| 43 | AT_SETUP([Domain - set boundary conditions with Undo]) | 
|---|
| 44 | AT_KEYWORDS([domain set-boundary-conditions undo]) | 
|---|
| 45 |  | 
|---|
| 46 | Check_BC="Wrap Wrap Wrap" | 
|---|
| 47 | BC="Wrap Wrap Wrap" | 
|---|
| 48 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 49 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 50 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 51 | BC="Bounce Bounce Bounce" | 
|---|
| 52 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 53 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 54 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 55 | BC="Ignore Ignore Ignore" | 
|---|
| 56 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 57 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 58 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 59 | BC="Wrap Bounce Ignore" | 
|---|
| 60 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 61 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 62 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 63 |  | 
|---|
| 64 | AT_CLEANUP | 
|---|
| 65 |  | 
|---|
| 66 |  | 
|---|
| 67 | AT_SETUP([Domain - set boundary conditions with Redo]) | 
|---|
| 68 | AT_KEYWORDS([domain set-boundary-conditions redo]) | 
|---|
| 69 |  | 
|---|
| 70 | BC="Wrap Wrap Wrap" | 
|---|
| 71 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --redo --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 72 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 73 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 74 | BC="Bounce Bounce Bounce" | 
|---|
| 75 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --redo --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 76 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 77 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 78 | BC="Ignore Ignore Ignore" | 
|---|
| 79 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --redo --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 80 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 81 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 82 | BC="Wrap Bounce Ignore" | 
|---|
| 83 | AT_CHECK([../../molecuilder --dry-run -B "5,0,5,0,0,5" --set-boundary-conditions $BC --undo --redo --no-dry-run --store-session session-domain-set-boundary-conditions.py --session-type python], 0, [stdout], [stderr]) | 
|---|
| 84 | AT_CHECK([grep -v "Command.*DryRun" session-domain-set-boundary-conditions.py >session-domain-set-boundary-conditions_new.py], 0, [ignore], [ignore]) | 
|---|
| 85 | AT_CHECK([../../molecuilderguitest session-domain-set-boundary-conditions_new.py], 0, [stdout], [stderr]) | 
|---|
| 86 |  | 
|---|
| 87 | AT_CLEANUP | 
|---|