Changeset 57876b for src/Fragmentation


Ignore:
Timestamp:
May 4, 2012, 2:19:06 PM (13 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:
12d15a
Parents:
02f346
git-author:
Frederik Heber <heber@…> (10/23/11 20:54:34)
git-committer:
Frederik Heber <heber@…> (05/04/12 14:19:06)
Message:

Added serialization unit tests on FragmentJob and FragmentResult.

Location:
src/Fragmentation/Automation
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Automation/FragmentJob.hpp

    r02f346 r57876b  
    2121#include "types.hpp"
    2222
     23class FragmentJobTest;
     24class FragmentQueueTest;
    2325class FragmentWorker;
    2426
     
    3133class FragmentJob : public JobId
    3234{
     35  //!> allow FragmentQueue unit test access
    3336  friend class FragmentQueueTest;
     37  //!> allow own unit test access
     38  friend class FragmentJobTest;
    3439public:
    3540  FragmentJob();
  • src/Fragmentation/Automation/FragmentResult.hpp

    r02f346 r57876b  
    2222#include "types.hpp"
    2323
     24class FragmentQueueTest;
     25class FragmentResultTest;
     26
    2427/** This class contains the result to a specific FragmentJob.
    2528 *
     
    2730class FragmentResult : public JobId
    2831{
     32  //!> allow FragmentQueue unit test access
    2933  friend class FragmentQueueTest;
     34  //!> allow own unit test access
     35  friend class FragmentResultTest;
    3036public:
    3137  FragmentResult(const JobId_t id);
  • src/Fragmentation/Automation/unittests/Makefile.am

    r02f346 r57876b  
    33
    44FRAGMENTATIONAUTOMATIONTESTSSOURCES = \
     5  unittests/FragmentJobUnitTest.cpp \
     6  unittests/FragmentResultUnitTest.cpp \
    57  unittests/FragmentQueueUnitTest.cpp
    68
    79FRAGMENTATIONAUTOMATIONTESTSHEADERS = \
     10  unittests/FragmentJobUnitTest.hpp \
     11  unittests/FragmentResultUnitTest.hpp \
    812  unittests/FragmentQueueUnitTest.hpp
    913
    1014FRAGMENTATIONAUTOMATIONTESTS = \
     15  FragmentJobUnitTest \
     16  FragmentResultUnitTest \
    1117  FragmentQueueUnitTest
    1218
     
    2026  $(BOOST_THREAD_LDFLAGS) $(BOOST_THREAD_LIBS) \
    2127  ${CodePatterns_LIBS}
     28
     29FragmentJobUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
     30FragmentJobUnitTest_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
     31FragmentJobUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     32  unittests/FragmentJobUnitTest.cpp \
     33  unittests/FragmentJobUnitTest.hpp \
     34  FragmentJob.cpp \
     35  FragmentJob.hpp \
     36  JobId.cpp \
     37  JobId.hpp
     38FragmentJobUnitTest_LDADD = \
     39  ${FRAGMENTATIONLIBS} \
     40  $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
    2241
    2342FragmentQueueUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
     
    3655FragmentQueueUnitTest_LDADD = $(FRAGMENTATIONAUTOMATIONLIBS)
    3756
     57FragmentResultUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
     58FragmentResultUnitTest_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
     59FragmentResultUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     60  unittests/FragmentResultUnitTest.cpp \
     61  unittests/FragmentResultUnitTest.hpp \
     62  FragmentResult.cpp \
     63  FragmentResult.hpp \
     64  JobId.cpp \
     65  JobId.hpp
     66FragmentResultUnitTest_LDADD = \
     67  ${FRAGMENTATIONLIBS} \
     68  $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
     69
    3870
    3971#AUTOMAKE_OPTIONS = parallel-tests
Note: See TracChangeset for help on using the changeset viewer.