[6253ed] | 1 | #
|
---|
| 2 | # MoleCuilder - creates and alters molecular systems
|
---|
| 3 | # Copyright (C) 2008-2012 University of Bonn
|
---|
[72e40d0] | 4 | # Copyright (C) 2016 Frederik Heber
|
---|
[6253ed] | 5 | #
|
---|
| 6 | # This program is free software: you can redistribute it and/or modify
|
---|
| 7 | # it under the terms of the GNU General Public License as published by
|
---|
| 8 | # the Free Software Foundation, either version 3 of the License, or
|
---|
| 9 | # (at your option) any later version.
|
---|
| 10 | #
|
---|
| 11 | # This program is distributed in the hope that it will be useful,
|
---|
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 14 | # GNU General Public License for more details.
|
---|
| 15 | #
|
---|
| 16 | # You should have received a copy of the GNU General Public License
|
---|
| 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 18 | #
|
---|
[72e40d0] | 19 | ### set world time
|
---|
[aa04ae] | 20 |
|
---|
[72e40d0] | 21 | AT_SETUP([Worldtime - set])
|
---|
| 22 | AT_KEYWORDS([worldtime set-world-time])
|
---|
[e69c87] | 23 |
|
---|
[aa04ae] | 24 | AT_CHECK([../../molecuilder --set-world-time 10], 0, [stdout], [stderr])
|
---|
| 25 | AT_CHECK([fgrep "Current time step is now: 10" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 26 |
|
---|
| 27 | AT_CLEANUP
|
---|
| 28 |
|
---|
| 29 |
|
---|
[72e40d0] | 30 | AT_SETUP([Worldtime - set with Undo])
|
---|
| 31 | AT_KEYWORDS([worldtime set-world-time undo])
|
---|
[e69c87] | 32 |
|
---|
[aa04ae] | 33 | AT_CHECK([../../molecuilder --set-world-time 10 --undo], 0, [stdout], [stderr])
|
---|
| 34 | AT_CHECK([fgrep "Current time step is now again: 0" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 35 |
|
---|
| 36 | AT_CLEANUP
|
---|
| 37 |
|
---|
| 38 |
|
---|
[72e40d0] | 39 | AT_SETUP([Worldtime - set with Redo])
|
---|
| 40 | AT_KEYWORDS([worldtime set-world-time undo redo])
|
---|
[e69c87] | 41 |
|
---|
[aa04ae] | 42 | AT_CHECK([../../molecuilder --set-world-time 10 --undo --redo], 0, [stdout], [stderr])
|
---|
| 43 | AT_CHECK([fgrep "Current time step is now: 10" stdout], 0, [ignore], [ignore])
|
---|
[e69c87] | 44 |
|
---|
[aa04ae] | 45 | AT_CLEANUP
|
---|