Changeset b1d8092 for src/unittests


Ignore:
Timestamp:
Feb 17, 2010, 11:15:27 AM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
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:
326a43b
Parents:
7ba324 (diff), 354859 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'StructureRefactoring' into QT4Refactoring

Conflicts:

molecuilder/src/Makefile.am
molecuilder/src/builder.cpp
molecuilder/src/unittests/Makefile.am

Location:
src/unittests
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/Makefile.am

    r7ba324 rb1d8092  
    2929  VectorUnitTest \
    3030  ObserverTest \
    31   ${MENUTESTS}
    32 
    33  
     31  CacheableTest \
     32  DescriptorUnittest \
     33  ${MENUTESTS} 
     34   
    3435check_PROGRAMS = $(TESTS)
    3536noinst_PROGRAMS = $(TESTS)
    3637
     38GSLLIBS = ../libgslwrapper.a
     39ALLLIBS = ../libmolecuilder.a ${GSLLIBS} $(BOOST_LIB) ${BOOST_THREAD_LIB}
     40
    3741ActOnAllUnitTest_SOURCES = ../test/ActOnAllTest.hpp ActOnAllUnitTest.cpp ActOnAllUnitTest.hpp
    38 ActOnAllUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     42ActOnAllUnitTest_LDADD = ${ALLLIBS}
    3943
    4044AnalysisBondsUnitTests_SOURCES = analysisbondsunittest.cpp analysisbondsunittest.hpp
    41 AnalysisBondsUnitTests_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     45AnalysisBondsUnitTests_LDADD = ${ALLLIBS}
    4246
    4347AnalysisCorrelationToPointUnitTest_SOURCES = analysis_correlation.hpp AnalysisCorrelationToPointUnitTest.cpp AnalysisCorrelationToPointUnitTest.hpp
    44 AnalysisCorrelationToPointUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     48AnalysisCorrelationToPointUnitTest_LDADD = ${ALLLIBS}
    4549
    4650AnalysisCorrelationToSurfaceUnitTest_SOURCES = analysis_correlation.hpp AnalysisCorrelationToSurfaceUnitTest.cpp AnalysisCorrelationToSurfaceUnitTest.hpp
    47 AnalysisCorrelationToSurfaceUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     51AnalysisCorrelationToSurfaceUnitTest_LDADD = ${ALLLIBS}
    4852
    4953AnalysisPairCorrelationUnitTest_SOURCES = analysis_correlation.hpp AnalysisPairCorrelationUnitTest.cpp AnalysisPairCorrelationUnitTest.hpp
    50 AnalysisPairCorrelationUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     54AnalysisPairCorrelationUnitTest_LDADD = ${ALLLIBS}
    5155
    5256BondGraphUnitTest_SOURCES = bondgraphunittest.cpp bondgraphunittest.hpp
    53 BondGraphUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     57BondGraphUnitTest_LDADD = ${ALLLIBS}
    5458
    5559GSLMatrixSymmetricUnitTest_SOURCES = gslmatrixsymmetricunittest.cpp gslmatrixsymmetricunittest.hpp
    56 GSLMatrixSymmetricUnitTest_LDADD = ../libgslwrapper.a
     60GSLMatrixSymmetricUnitTest_LDADD = ${GSLLIBS}
    5761
    5862GSLMatrixUnitTest_SOURCES = gslmatrixunittest.cpp gslmatrixunittest.hpp
    59 GSLMatrixUnitTest_LDADD = ../libgslwrapper.a
     63GSLMatrixUnitTest_LDADD = ${GSLLIBS}
    6064
    6165GSLVectorUnitTest_SOURCES = gslvectorunittest.cpp gslvectorunittest.hpp
    62 GSLVectorUnitTest_LDADD = ../libgslwrapper.a
     66GSLVectorUnitTest_LDADD = ${GSLLIBS}
    6367
    6468InfoUnitTest_SOURCES = infounittest.cpp infounittest.hpp
    65 InfoUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     69InfoUnitTest_LDADD = ${ALLLIBS}
    6670
    6771LinearSystemOfEquationsUnitTest_SOURCES = linearsystemofequationsunittest.cpp linearsystemofequationsunittest.hpp
    68 LinearSystemOfEquationsUnitTest_LDADD = ../libgslwrapper.a ../libmolecuilder.a
     72LinearSystemOfEquationsUnitTest_LDADD = ${ALLLIBS}
    6973
    7074ListOfBondsUnitTest_SOURCES = listofbondsunittest.cpp listofbondsunittest.hpp
    71 ListOfBondsUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     75ListOfBondsUnitTest_LDADD = ${ALLLIBS}
    7276
    7377LogUnitTest_SOURCES = logunittest.cpp logunittest.hpp
    74 LogUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     78LogUnitTest_LDADD = ${ALLLIBS}
    7579
    7680MemoryAllocatorUnitTest_SOURCES = memoryallocatorunittest.cpp memoryallocatorunittest.hpp
    77 MemoryAllocatorUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     81MemoryAllocatorUnitTest_LDADD = ${ALLLIBS}
    7882
    7983MemoryUsageObserverUnitTest_SOURCES = memoryusageobserverunittest.cpp memoryusageobserverunittest.hpp
    80 MemoryUsageObserverUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     84MemoryUsageObserverUnitTest_LDADD = ${ALLLIBS}
    8185
    8286StackClassUnitTest_SOURCES = stackclassunittest.cpp stackclassunittest.hpp
    83 StackClassUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     87StackClassUnitTest_LDADD = ${ALLLIBS}
    8488
    8589TesselationUnitTest_SOURCES = tesselationunittest.cpp tesselationunittest.hpp
    86 TesselationUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     90TesselationUnitTest_LDADD = ${ALLLIBS}
    8791
    8892Tesselation_BoundaryTriangleUnitTest_SOURCES = tesselation_boundarytriangleunittest.cpp tesselation_boundarytriangleunittest.hpp
    89 Tesselation_BoundaryTriangleUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     93Tesselation_BoundaryTriangleUnitTest_LDADD = ${ALLLIBS}
    9094
    9195Tesselation_InOutsideUnitTest_SOURCES = tesselation_insideoutsideunittest.cpp tesselation_insideoutsideunittest.hpp
    92 Tesselation_InOutsideUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     96Tesselation_InOutsideUnitTest_LDADD = ${ALLLIBS}
    9397
    9498VectorUnitTest_SOURCES = vectorunittest.cpp vectorunittest.hpp
    95 VectorUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a
     99VectorUnitTest_LDADD = ${ALLLIBS}
    96100
    97101ActionSequenceTest_SOURCES = ActionSequenceTest.cpp ActionSequenceTest.hpp
    98 ActionSequenceTest_LDADD = ../libmolecuilder.a ../libmenu.a
     102ActionSequenceTest_LDADD = ${ALLLIBS} ../libmenu.a
    99103
    100104ObserverTest_SOURCES = ObserverTest.cpp ObserverTest.hpp
    101 ObserverTest_LDADD = ../libmolecuilder.a
     105ObserverTest_LDADD = ${ALLLIBS}
     106
     107CacheableTest_SOURCES = CacheableTest.cpp CacheableTest.hpp
     108CacheableTest_LDADD = ${ALLLIBS}
     109
     110DescriptorUnittest_SOURCES = DescriptorUnittest.cpp DescriptorUnittest.hpp
     111DescriptorUnittest_LDADD = ${ALLLIBS}
    102112
    103113#AUTOMAKE_OPTIONS = parallel-tests
  • src/unittests/ObserverTest.cpp

    r7ba324 rb1d8092  
    3939public:
    4040  void changeMethod() {
    41     START_OBSERVER;
    42     int i;
    43     i++;
    44     FINISH_OBSERVER;
     41    OBSERVE;
     42    int i;
     43    i++;
    4544  }
    4645};
     
    4948public:
    5049  void changeMethod1() {
    51     START_OBSERVER;
    52     int i;
    53     i++;
    54     FINISH_OBSERVER;
     50    OBSERVE;
     51    int i;
     52    i++;
    5553  }
    5654
    5755  void changeMethod2() {
    58     START_OBSERVER;
     56    OBSERVE;
    5957    int i;
    6058    i++;
    6159    changeMethod1();
    62     FINISH_OBSERVER;
    6360  }
    6461};
     
    7471  }
    7572  void changeMethod() {
    76     START_OBSERVER;
     73    OBSERVE;
    7774    int i;
    7875    i++;
    7976    subObservable->changeMethod();
    80     FINISH_OBSERVER;
    8177  }
    8278  SimpleObservable *subObservable;
Note: See TracChangeset for help on using the changeset viewer.