Changeset f5724f for tests


Ignore:
Timestamp:
Aug 12, 2013, 11:30:33 AM (12 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
93909a
Parents:
24e19e
git-author:
Frederik Heber <heber@…> (07/26/13 09:08:31)
git-committer:
Frederik Heber <heber@…> (08/12/13 11:30:33)
Message:

Moved all FragmentationActions related to potentials into own menu and folder.

  • changed class names Fragmentation... -> Potential...
  • changed tokens in GlobalListOfActions.
  • added menu entry "potential" and CommandLineParser program_options variable.
  • moved regression tests into own folder as well and renamed folder in files.
Location:
tests/regression
Files:
1 added
3 edited
10 moved

Legend:

Unmodified
Added
Removed
  • tests/regression/Fragmentation/testsuite-fragmentation.at

    r24e19e rf5724f  
    3030# check storing saturated fragment
    3131m4_include([Fragmentation/StoreSaturatedFragment/testsuite-fragmentation-store-saturated-fragment.at])
    32 
    33 # fitting potential to fragment results
    34 m4_include([Fragmentation/FitPotential/testsuite-fragmentation-fit-potential.at])
    35 
    36 # fitting particle charges to fragment results
    37 m4_include([Fragmentation/FitParticleCharges/testsuite-fragmentation-fit-particle-charges.at])
  • tests/regression/Makefile.am

    r24e19e rf5724f  
    1717        Options \
    1818        Parser \
     19        Potential \
    1920        RandomNumbers \
    2021        Selection \
     
    7374        $(srcdir)/Fragmentation/testsuite-fragmentation.at \
    7475        $(srcdir)/Fragmentation/AnalyseFragmentationResults/testsuite-fragmentation-analyse-fragment-results.at \
    75         $(srcdir)/Fragmentation/FitParticleCharges/testsuite-fragmentation-fit-particle-charges.at \
    76         $(srcdir)/Fragmentation/FitPotential/testsuite-fragmentation-fit-potential.at \
    7776        $(srcdir)/Fragmentation/FragmentMolecule/testsuite-fragmentation-fragment-molecule.at \
    7877        $(srcdir)/Fragmentation/FragmentMolecule-MaxOrder/testsuite-fragmentation-fragment-molecule-maxorder.at \
     
    161160        $(srcdir)/Parser/Xyz/testsuite-parser-xyz-multiple-timesteps.at \
    162161        $(srcdir)/Parser/Xyz/testsuite-parser-xyz-save.at \
     162        $(srcdir)/Potential/FitParticleCharges/testsuite-potential-fit-particle-charges.at \
     163        $(srcdir)/Potential/FitPotential/testsuite-potential-fit-potential.at \
    163164        $(srcdir)/RandomNumbers/testsuite-randomnumbers.at \
    164165        $(srcdir)/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at \
  • tests/regression/Potential/FitParticleCharges/testsuite-potential-fit-particle-charges.at

    r24e19e rf5724f  
    2121# ./molecuilder -i pre/water.pdb --center-in-box "8,0,8,0,0,8" --select-all-atoms --fragment-molecule BondFragment --distance 2 --order 1 --fragment-automation --server-address 127.0.0.1 --server-port 1026 --DoLongrange 1 --grid 4 --DoPrintDebug 1 --DoValenceOnly 0 --analyse-fragment-results --store-grids 1 --save-homologies homology_grid_4_full.dat
    2222
    23 AT_SETUP([Fragmentation - Fit particle charges to water])
    24 AT_KEYWORDS([fragmentation parse-homologies fit-particle-charges])
     23AT_SETUP([Potential - Fit particle charges to water])
     24AT_KEYWORDS([potential parse-homologies fit-particle-charges])
    2525AT_SKIP_IF([../../molecuilder --help --actionname fit-particle-charges; if test $? -eq 5; then /bin/true; else /bin/false; fi])
    2626
     
    2828# molecuilder -i water.pdb --select-all-atoms --fragment-molecule --distance 2 --order 1 --fragment-automation --server-address 127.0.0.1 --server-port 1026 --DoLongrange 1 --grid 5 --store-grids 1 --analyse-fragment-results --save-homologies homology_grid.dat
    2929file=homology_grid.dat
    30 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FitParticleCharges/pre/$file $file], 0)
     30AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitParticleCharges/pre/$file $file], 0)
    3131AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
    3232AT_CHECK([../../molecuilder --parse-homologies $file --fit-particle-charges --potential-file water.particles --fragment-charges 8 1 1 --radius 1.5], 0, [stdout], [ignore])
  • tests/regression/Potential/FitPotential/testsuite-potential-fit-potential.at

    r24e19e rf5724f  
    1919### fit some potentials
    2020
    21 AT_SETUP([Fragmentation - Fit morse potential to water])
    22 AT_KEYWORDS([fragmentation parse-homologies fit-potential morse])
     21AT_SETUP([Potential - Fit morse potential to water])
     22AT_KEYWORDS([potential parse-homologies fit-potential morse])
    2323AT_SKIP_IF([../../molecuilder --help --actionname fit-potential; if test $? -eq 5; then /bin/true; else /bin/false; fi])
    2424
    2525file=length_homology.dat
    26 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FitPotential/pre/$file $file], 0)
     26AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPotential/pre/$file $file], 0)
    2727AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
    2828AT_CHECK([../../molecuilder --parse-homologies $file --fit-potential --potential-type "morse" --potential-charges 8 1 --fragment-charges 1 8 1 --set-threshold 1e-6], 0, [stdout], [ignore])
     
    3434AT_CLEANUP
    3535
    36 AT_SETUP([Fragmentation - Fit harmonic potential to water])
    37 AT_KEYWORDS([fragmentation parse-homologies fit-potential harmonic])
     36AT_SETUP([Potential - Fit harmonic potential to water])
     37AT_KEYWORDS([potential parse-homologies fit-potential harmonic])
    3838AT_SKIP_IF([../../molecuilder --help --actionname fit-potential; if test $? -eq 5; then /bin/true; else /bin/false; fi])
    3939
    4040file=harmonic_homology.dat
    41 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FitPotential/pre/$file $file], 0)
     41AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPotential/pre/$file $file], 0)
    4242AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
    4343AT_CHECK([../../molecuilder --parse-homologies $file --fit-potential --potential-type "harmonic_bond" --potential-charges 8 1 --fragment-charges 1 8 1 --set-threshold 1e-6], 0, [stdout], [ignore])
     
    4949AT_CLEANUP
    5050
    51 AT_SETUP([Fragmentation - Fit harmonic_angle potential to water])
    52 AT_KEYWORDS([fragmentation parse-homologies fit-potential harmonic_angle])
     51AT_SETUP([Potential - Fit harmonic_angle potential to water])
     52AT_KEYWORDS([potential parse-homologies fit-potential harmonic_angle])
    5353AT_SKIP_IF([../../molecuilder --help --actionname fit-potential; if test $? -eq 5; then /bin/true; else /bin/false; fi])
    5454
    5555file=angle_homology.dat
    56 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FitPotential/pre/$file $file], 0)
     56AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPotential/pre/$file $file], 0)
    5757AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
    5858AT_CHECK([../../molecuilder --parse-homologies $file --fit-potential --potential-type "harmonic_angle" --potential-charges 1 8 1 --fragment-charges 1 8 1 --set-threshold 1e-6], 0, [stdout], [ignore])
     
    6464AT_CLEANUP
    6565
    66 AT_SETUP([Fragmentation - Fit torsion potential to butane])
    67 AT_KEYWORDS([fragmentation parse-homologies fit-potential torsion])
     66AT_SETUP([Potential - Fit torsion potential to butane])
     67AT_KEYWORDS([potential parse-homologies fit-potential torsion])
    6868AT_SKIP_IF([../../molecuilder --help --actionname fit-potential; if test $? -eq 5; then /bin/true; else /bin/false; fi])
    6969
    7070file=torsion_homology.dat
    71 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FitPotential/pre/$file $file], 0)
     71AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPotential/pre/$file $file], 0)
    7272AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
    7373AT_CHECK([../../molecuilder --parse-homologies $file --fit-potential --potential-type "torsion" --potential-charges 6 6 6 6 --fragment-charges 6 6 6 6 1 1 1 1 1 1 1 1 1 1 --set-threshold 9e-12], 0, [stdout], [ignore])
     
    7878AT_CLEANUP
    7979
    80 AT_SETUP([Fragmentation - Fit improper potential to ammonia])
    81 AT_KEYWORDS([fragmentation parse-homologies fit-potential improper])
     80AT_SETUP([Potential - Fit improper potential to ammonia])
     81AT_KEYWORDS([potential parse-homologies fit-potential improper])
    8282AT_XFAIL_IF([/bin/true])
    8383AT_SKIP_IF([../../molecuilder --help --actionname fit-potential; if test $? -eq 5; then /bin/true; else /bin/false; fi])
    8484
    8585file=improper_homology.dat
    86 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FitPotential/pre/$file $file], 0)
     86AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPotential/pre/$file $file], 0)
    8787AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
    8888AT_CHECK([../../molecuilder --parse-homologies $file --fit-potential --potential-type "improper" --potential-charges 1 7 1 1 --fragment-charges 7 1 1 1 --set-threshold 3e-4], 0, [stdout], [ignore])
     
    9494AT_CLEANUP
    9595
    96 AT_SETUP([Fragmentation - Fit LJ potential to argon])
    97 AT_KEYWORDS([fragmentation parse-homologies fit-potential lennardjones])
     96AT_SETUP([Potential - Fit LJ potential to argon])
     97AT_KEYWORDS([potential parse-homologies fit-potential lennardjones])
    9898AT_SKIP_IF([../../molecuilder --help --actionname fit-potential; if test $? -eq 5; then /bin/true; else /bin/false; fi])
    9999
    100100file=lj_homology.dat
    101 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Fragmentation/FitPotential/pre/$file $file], 0)
     101AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Potential/FitPotential/pre/$file $file], 0)
    102102AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
    103103AT_CHECK([../../molecuilder --parse-homologies $file --fit-potential --potential-type "lennardjones" --potential-charges 18 18 --fragment-charges 18 18 --set-threshold 7e-11], 0, [stdout], [ignore])
  • tests/regression/testsuite.at

    r24e19e rf5724f  
    5454m4_include(Fragmentation/testsuite-fragmentation.at)
    5555
     56m4_include(Potential/testsuite-potential.at)
     57
    5658m4_include(Tesselation/testsuite-tesselation.at)
    5759
Note: See TracChangeset for help on using the changeset viewer.