Ignore:
Timestamp:
Jun 12, 2016, 8:48:21 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Fix_BoundInBox_CenterInBox_MoleculeActions
Parents:
996ef1
git-author:
Frederik Heber <heber@…> (06/11/16 16:43:54)
git-committer:
Frederik Heber <heber@…> (06/12/16 08:48:21)
Message:

FIX: CenterInBox and BoundInBox are actions acting on molecules, not world.

  • just stumbled over this when realizing that center-in-box does not center all selected atoms within the box but each of the currently present molecules individually.
  • this is also changed to act only on selected molecules.
  • TEST: extended regression test to only test centering and bounding of some molecules (and not only all).
  • TESTFIX: needed to change regression tests on all molecules to prepend action with select-all-molecules.
  • Needed to renamed python action in boxmaker.py.in.
  • DOCU: Corrected description in userguide.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • tests/regression/Domain/CenterInBox/testsuite-domain-center-in-box-allmolecules.at

    r996ef1 r25d9d9  
    1818### center atoms in defined domain
    1919
    20 AT_SETUP([Domain - setting and centering in domain])
     20AT_SETUP([Domain - setting and centering in domain all molecules])
    2121AT_KEYWORDS([domain center-in-box])
    2222
     
    2424AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/pre/test.conf $file], 0)
    2525AT_CHECK([chmod u+w $file], 0)
    26 AT_CHECK([../../molecuilder -i $file -b "15, 0, 15, 0, 0, 15"], 0, [stdout], [stderr])
     26AT_CHECK([../../molecuilder -i $file --select-all-molecules -b "15, 0, 15, 0, 0, 15"], 0, [stdout], [stderr])
    2727AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
    2828AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test.conf], 0, [stdout], [stderr])
     
    3131
    3232
    33 AT_SETUP([Domain - setting and centering in domain with Undo])
     33AT_SETUP([Domain - setting and centering in domain all molecules with Undo])
    3434AT_KEYWORDS([domain center-in-box undo])
    3535
     
    3737AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/pre/test.conf $file], 0)
    3838AT_CHECK([chmod u+w $file], 0)
    39 AT_CHECK([../../molecuilder -i $file -b "15, 0, 15, 0, 0, 15" --undo], 0, [stdout], [stderr])
     39AT_CHECK([../../molecuilder -i $file --select-all-molecules -b "15, 0, 15, 0, 0, 15" --undo], 0, [stdout], [stderr])
    4040AT_CHECK([fgrep "Box domain restored to" stdout], 0, [ignore], [ignore])
    4141AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test-undo.conf], 0, [stdout], [stderr])
     
    4444
    4545
    46 AT_SETUP([Domain - setting and centering in domain with Redo])
     46AT_SETUP([Domain - setting and centering in domain all molecules with Redo])
    4747AT_KEYWORDS([domain center-in-box redo])
    4848
     
    5050AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/pre/test.conf $file], 0)
    5151AT_CHECK([chmod u+w $file], 0)
    52 AT_CHECK([../../molecuilder -i $file -b "15, 0, 15, 0, 0, 15" --undo --redo], 0, [stdout], [stderr])
     52AT_CHECK([../../molecuilder -i $file --select-all-molecules -b "15, 0, 15, 0, 0, 15" --undo --redo], 0, [stdout], [stderr])
    5353AT_CHECK([fgrep "Box domain is again" stdout], 0, [ignore], [ignore])
    5454AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Domain/CenterInBox/post/test.conf], 0, [stdout], [stderr])
Note: See TracChangeset for help on using the changeset viewer.