Ignore:
Timestamp:
Dec 19, 2025, 11:29:38 PM (6 weeks ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
25aa214
Parents:
29ba9a
git-author:
Frederik Heber <frederik.heber@…> (11/16/25 11:12:52)
git-committer:
Frederik Heber <frederik.heber@…> (12/19/25 23:29:38)
Message:

Actions relying on BondGraph fail if not bond table is loaded.

  • this is to ensure to not stumble over missing optimal bond lengths from the table, like with StretchBondAction.
  • TESTFIX: All regression tests that use these actions need to load the bond-table now.
Location:
tests/regression/Options/Session
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • tests/regression/Options/Session/post/complextest.py

    r29ba9a rd2be22  
    77pyMoleCuilder.AtomAdd(add_atom="1", domain_position="1,1,1")
    88pyMoleCuilder.SelectionAtomById(select_atom_by_id="0 0")
     9pyMoleCuilder.CommandBondLengthTable(bond_table="BONDTABLE")
    910pyMoleCuilder.GraphSubgraphDissection()
    1011pyMoleCuilder.SelectionMoleculeOfAtom()
  • tests/regression/Options/Session/post/complextest.sh

    r29ba9a rd2be22  
    11../../molecuilder \
    2 --verbose 2 --set-output "mpqc" "tremolo" --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "p=1;" --change-box "20,0,20,0,0,20" --add-atom 1 --domain-position "1,1,1" --select-atom-by-id 0 0 --subgraph-dissection --select-atoms-molecules --fill-regular-grid --mesh-size 3 3 3 --mesh-offset "0.5,0.5,0.5" --min-distance 1 --tesselation-radius 0 --random-atom-displacement 0 --random-molecule-displacement 0 --DoRotate 0 --version
     2--verbose 2 --set-output "mpqc" "tremolo" --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "p=1;" --change-box "20,0,20,0,0,20" --add-atom 1 --domain-position "1,1,1" --select-atom-by-id 0 0 --bond-table BONDTABLE --subgraph-dissection --select-atoms-molecules --fill-regular-grid --mesh-size 3 3 3 --mesh-offset "0.5,0.5,0.5" --min-distance 1 --tesselation-radius 0 --random-atom-displacement 0 --random-molecule-displacement 0 --DoRotate 0 --version
  • tests/regression/Options/Session/pre/complextest.py

    r29ba9a rd2be22  
    77pyMoleCuilder.AtomAdd("1", "1,1,1")
    88pyMoleCuilder.SelectionAtomById("0 0")
     9pyMoleCuilder.CommandBondLengthTable(bond_table="BONDTABLE")
    910pyMoleCuilder.GraphSubgraphDissection()
    1011pyMoleCuilder.SelectionMoleculeOfAtom()
  • tests/regression/Options/Session/pre/complexwait.py

    r29ba9a rd2be22  
    2323i=i+1
    2424print("wait3 end")
     25mol.CommandBondLengthTable(bond_table="BONDTABLE")
    2526mol.GraphSubgraphDissection()
    2627mol.SelectionMoleculeOfAtom()
  • tests/regression/Options/Session/testsuite-options-load-session-python.at

    r29ba9a rd2be22  
    2020AT_SETUP([Standard Options - load session])
    2121AT_KEYWORDS([options python load-session])
    22 AT_TESTED([python3 diff grep])
     22AT_TESTED([python3 diff grep sed])
    2323AT_SKIP_IF([../../molecuilder --help load-session; if test $? -eq 5; then /bin/true; else /bin/false; fi])
    2424
     
    3838# check that session is stored and can be executed when correctly prefixed
    3939file=complextest.py
    40 AT_CHECK([../../molecuilder --load-session ${abs_top_srcdir}/tests/regression/Options/Session/pre/$file --store-session $file --session-type "python"], 0, [ignore], [ignore])
    41 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Options/Session/post/$file], 0, [ignore], [ignore])
     40AT_CHECK([sed -e "s#BONDTABLE#${abs_top_srcdir}/data/bondtables/bondtable.dat#" ${abs_top_srcdir}/tests/regression/Options/Session/pre/$file >${file/.py}2.py], 0, [ignore], [ignore])
     41AT_CHECK([../../molecuilder --load-session ${file/.py}2.py --store-session $file --session-type "python"], 0, [ignore], [ignore])
     42AT_CHECK([sed -e "s#BONDTABLE#${abs_top_srcdir}/data/bondtables/bondtable.dat#" ${abs_top_srcdir}/tests/regression/Options/Session/post/$file >${file/.py}3.py], 0, [ignore], [ignore])
     43AT_CHECK([diff $file ${file/.py}3.py], 0, [ignore], [ignore])
    4244AT_CHECK([../../runpython ./$file], 0, [ignore], [ignore])
    4345
     
    5052
    5153file=complexwait.py
    52 AT_CHECK([../../molecuilder --load-session ${abs_top_srcdir}/tests/regression/Options/Session/pre/$file], 0, [stdout], [ignore])
     54AT_CHECK([sed -e "s#BONDTABLE#${abs_top_srcdir}/data/bondtables/bondtable.dat#" ${abs_top_srcdir}/tests/regression/Options/Session/pre/$file >$file], 0, [ignore], [ignore])
     55AT_CHECK([../../molecuilder --load-session $file], 0, [stdout], [ignore])
    5356# NOTE: The output from the python script itself may or may not appear. The embedding has weird
    5457# effects, especially with the additional thread for the ActionQueue. Loading a python
  • tests/regression/Options/Session/testsuite-options-store-session-cli.at

    r29ba9a rd2be22  
    4040AT_DATA([$file], [../../molecuilder \
    4141])
    42 AT_CHECK([../../molecuilder --verbose 2 --set-output "mpqc" "tremolo" --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "p=1;" --change-box "20,0,20,0,0,20" --add-atom 1 --domain-position "1,1,1" --select-atom-by-id 0 0 -I --select-atoms-molecules --fill-regular-grid --DoRotate 0 --mesh-offset ".5,.5,.5" --mesh-size 3 3 3 --version --store-session $file], 0, [ignore], [ignore])
    43 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Options/Session/post/$file], 0, [ignore], [ignore])
     42AT_CHECK([../../molecuilder --verbose 2 --set-output "mpqc" "tremolo" --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "p=1;" --change-box "20,0,20,0,0,20" --add-atom 1 --domain-position "1,1,1" --select-atom-by-id 0 0 --bond-table ${abs_top_srcdir}/data/bondtables/bondtable.dat --subgraph-dissection --select-atoms-molecules --fill-regular-grid --DoRotate 0 --mesh-offset ".5,.5,.5" --mesh-size 3 3 3 --version --store-session $file], 0, [ignore], [ignore])
     43AT_CHECK([sed -e "s#BONDTABLE#${abs_top_srcdir}/data/bondtables/bondtable.dat#" ${abs_top_srcdir}/tests/regression/Options/Session/post/$file >${file}2], 0, [ignore], [ignore])
     44AT_CHECK([diff $file ${file}2], 0, [ignore], [ignore])
    4445AT_CHECK([bash ./$file], 0, [ignore], [ignore])
    4546
  • tests/regression/Options/Session/testsuite-options-store-session-python.at

    r29ba9a rd2be22  
    3838# check that session is stored and can be executed when correctly prefixed
    3939file=complextest.py
    40 AT_CHECK([../../molecuilder --verbose 2 --set-output "mpqc" "tremolo" --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "p=1;" --change-box "20,0,20,0,0,20" --add-atom 1 --domain-position "1,1,1" --select-atom-by-id 0 0 -I --select-atoms-molecules --fill-regular-grid --DoRotate 0 --mesh-offset ".5,.5,.5" --mesh-size 3 3 3 --version --store-session $file --session-type "python"], 0, [ignore], [ignore])
    41 AT_CHECK([diff $file ${abs_top_srcdir}/tests/regression/Options/Session/post/$file], 0, [ignore], [ignore])
     40AT_CHECK([../../molecuilder --verbose 2 --set-output "mpqc" "tremolo" --set-random-number-distribution "uniform_int" --random-number-distribution-parameters "p=1;" --change-box "20,0,20,0,0,20" --add-atom 1 --domain-position "1,1,1" --select-atom-by-id 0 0 --bond-table ${abs_top_srcdir}/data/bondtables/bondtable.dat --subgraph-dissection --select-atoms-molecules --fill-regular-grid --DoRotate 0 --mesh-offset ".5,.5,.5" --mesh-size 3 3 3 --version --store-session $file --session-type "python"], 0, [ignore], [ignore])
     41AT_CHECK([sed -e "s#BONDTABLE#${abs_top_srcdir}/data/bondtables/bondtable.dat#" ${abs_top_srcdir}/tests/regression/Options/Session/post/$file >${file/.py}2.py], 0, [ignore], [ignore])
     42AT_CHECK([diff $file ${file/.py}2.py], 0, [ignore], [ignore])
    4243AT_CHECK([../../runpython ./$file], 0, [ignore], [ignore])
    4344
Note: See TracChangeset for help on using the changeset viewer.