# # MoleCuilder - creates and alters molecular systems # Copyright (C) 2016 Frederik Heber # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # ### step through world time AT_SETUP([Worldtime - stepping]) AT_KEYWORDS([worldtime step-world-time set-world-time]) AT_CHECK([../../molecuilder --dry-run --step-world-time 1 --no-dry-run --store-session session-worldtime-step-world-time.py --session-type python], 0, [stdout], [stderr]) AT_CHECK([grep -v "Command.*DryRun" session-worldtime-step-world-time.py >session-worldtime-step-world-time_new.py], 0, [ignore], [ignore]) AT_CHECK([../../molecuilderguitest session-worldtime-step-world-time_new.py], 0, [stdout], [stderr]) AT_CHECK([../../molecuilder --dry-run --set-world-time 4 --step-world-time -2 --no-dry-run --store-session session-worldtime-step-world-time.py --session-type python], 0, [stdout], [stderr]) AT_CHECK([grep -v "Command.*DryRun" session-worldtime-step-world-time.py >session-worldtime-step-world-time_new.py], 0, [ignore], [ignore]) AT_CHECK([../../molecuilderguitest session-worldtime-step-world-time_new.py], 0, [stdout], [stderr]) # stepping back too far fails AT_CHECK([../../molecuilder --dry-run --set-world-time 1 --step-world-time -2 --no-dry-run --store-session session-worldtime-step-world-time.py --session-type python], 0, [stdout], [stderr]) AT_CHECK([grep -v "Command.*DryRun" session-worldtime-step-world-time.py >session-worldtime-step-world-time_new.py], 0, [ignore], [ignore]) AT_CHECK([../../molecuilderguitest session-worldtime-step-world-time_new.py], 5, [stdout], [stderr]) AT_CLEANUP AT_SETUP([Worldtime - stepping with Undo]) AT_KEYWORDS([worldtime step-world-time set-world-time undo]) AT_CHECK([../../molecuilder --dry-run --set-world-time 2 --step-world-time -1 --undo --no-dry-run --store-session session-worldtime-step-world-time.py --session-type python], 0, [stdout], [stderr]) AT_CHECK([grep -v "Command.*DryRun" session-worldtime-step-world-time.py >session-worldtime-step-world-time_new.py], 0, [ignore], [ignore]) AT_CHECK([../../molecuilderguitest session-worldtime-step-world-time_new.py], 0, [stdout], [stderr]) AT_CLEANUP AT_SETUP([Worldtime - stepping with Redo]) AT_KEYWORDS([worldtime step-world-time set-world-time undo redo]) AT_CHECK([../../molecuilder --dry-run --set-world-time 2 --step-world-time -1 --undo --redo --no-dry-run --store-session session-worldtime-step-world-time.py --session-type python], 0, [stdout], [stderr]) AT_CHECK([grep -v "Command.*DryRun" session-worldtime-step-world-time.py >session-worldtime-step-world-time_new.py], 0, [ignore], [ignore]) AT_CHECK([../../molecuilderguitest session-worldtime-step-world-time_new.py], 0, [stdout], [stderr]) AT_CLEANUP