Changeset 780bfa for tests/regression/Options
- Timestamp:
- Aug 13, 2025, 9:46:30 PM (3 months ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 463bfb
- Parents:
- bcc29ca
- git-author:
- Frederik Heber <frederik.heber@…> (08/13/25 08:41:09)
- git-committer:
- Frederik Heber <frederik.heber@…> (08/13/25 21:46:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/regression/Options/UndoMark/testsuite-options-undo-mark.at
rbcc29ca r780bfa 26 26 # add an atom prior to undo-mark 27 27 AT_CHECK([../../molecuilder -i test-simple-prior.conf --add-atom 1 --domain-position "5,5,5" --set-undo-mark 1 --undo-till-mark], 0, [stdout], [ignore]) 28 AT_CHECK([grep - c "ATOM" test-simple-prior.conf], 1, [ignore], [ignore])28 AT_CHECK([grep -q "^Ion_Type" test-simple-prior.conf], 0, [ignore], [ignore]) 29 29 30 30 # add an atom after to undo-mark 31 31 AT_CHECK([../../molecuilder -i test-simple-after.conf --set-undo-mark 1 --add-atom 1 --domain-position "5,5,5" --undo-till-mark], 0, [stdout], [ignore]) 32 AT_CHECK([grep - c "ATOM" test-simple-after.conf], 1, [ignore], [ignore])32 AT_CHECK([grep -q "^Ion_Type" test-simple-after.conf], 1, [ignore], [ignore]) 33 33 34 # add an atom prior to undo-mark reset35 AT_CHECK([../../molecuilder -i test-simple- prior-reset.conf --set-undo-mark 0--add-atom 1 --domain-position "5,5,5" --select-all-atoms --undo-till-mark], 0, [stdout], [ignore])36 AT_CHECK([grep - c "ATOM" test-simple-prior-reset.conf], 1, [ignore], [ignore])34 # add an atom and select after undo-mark: both undone 35 AT_CHECK([../../molecuilder -i test-simple-two-undo.conf --set-undo-mark 1 --add-atom 1 --domain-position "5,5,5" --select-all-atoms --undo-till-mark], 0, [stdout], [ignore]) 36 AT_CHECK([grep -q "^Ion_Type" test-simple-two-undo.conf], 1, [ignore], [ignore]) 37 37 38 # input file with added atom 38 # input file with added atom: undo all (input has no undo) 39 39 AT_CHECK([../../molecuilder --set-undo-mark 1 --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --undo-till-mark --select-all-atoms], 0, [stdout], [ignore]) 40 40 AT_CHECK([grep "0 atoms selected" stdout], 0, [ignore], [ignore]) 41 41 42 # input file with added atom 43 AT_CHECK([../../molecuilder --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --set-undo-mark 0--undo-till-mark], 0, [stdout], [ignore])44 AT_CHECK([grep "Resetting mark" stdout], 0, [ignore], [ignore])42 # input file with added atom, then undo-mark: nothing undone 43 AT_CHECK([../../molecuilder --input hydrogen.xyz --add-atom 1 --domain-position "5,5,5" --set-undo-mark 1 --undo-till-mark], 0, [stdout], [ignore]) 44 AT_CHECK([grep -q "H" hydrogen.xyz], 0, [ignore], [ignore]) 45 45 46 46 AT_CLEANUP
Note:
See TracChangeset
for help on using the changeset viewer.
