Changeset b1d8092 for src/unittests
- Timestamp:
- Feb 17, 2010, 11:15:27 AM (15 years ago)
- 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. - Location:
- src/unittests
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/Makefile.am
r7ba324 rb1d8092 29 29 VectorUnitTest \ 30 30 ObserverTest \ 31 ${MENUTESTS} 32 33 31 CacheableTest \ 32 DescriptorUnittest \ 33 ${MENUTESTS} 34 34 35 check_PROGRAMS = $(TESTS) 35 36 noinst_PROGRAMS = $(TESTS) 36 37 38 GSLLIBS = ../libgslwrapper.a 39 ALLLIBS = ../libmolecuilder.a ${GSLLIBS} $(BOOST_LIB) ${BOOST_THREAD_LIB} 40 37 41 ActOnAllUnitTest_SOURCES = ../test/ActOnAllTest.hpp ActOnAllUnitTest.cpp ActOnAllUnitTest.hpp 38 ActOnAllUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a42 ActOnAllUnitTest_LDADD = ${ALLLIBS} 39 43 40 44 AnalysisBondsUnitTests_SOURCES = analysisbondsunittest.cpp analysisbondsunittest.hpp 41 AnalysisBondsUnitTests_LDADD = ../libmolecuilder.a ../libgslwrapper.a45 AnalysisBondsUnitTests_LDADD = ${ALLLIBS} 42 46 43 47 AnalysisCorrelationToPointUnitTest_SOURCES = analysis_correlation.hpp AnalysisCorrelationToPointUnitTest.cpp AnalysisCorrelationToPointUnitTest.hpp 44 AnalysisCorrelationToPointUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a48 AnalysisCorrelationToPointUnitTest_LDADD = ${ALLLIBS} 45 49 46 50 AnalysisCorrelationToSurfaceUnitTest_SOURCES = analysis_correlation.hpp AnalysisCorrelationToSurfaceUnitTest.cpp AnalysisCorrelationToSurfaceUnitTest.hpp 47 AnalysisCorrelationToSurfaceUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a51 AnalysisCorrelationToSurfaceUnitTest_LDADD = ${ALLLIBS} 48 52 49 53 AnalysisPairCorrelationUnitTest_SOURCES = analysis_correlation.hpp AnalysisPairCorrelationUnitTest.cpp AnalysisPairCorrelationUnitTest.hpp 50 AnalysisPairCorrelationUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a54 AnalysisPairCorrelationUnitTest_LDADD = ${ALLLIBS} 51 55 52 56 BondGraphUnitTest_SOURCES = bondgraphunittest.cpp bondgraphunittest.hpp 53 BondGraphUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a57 BondGraphUnitTest_LDADD = ${ALLLIBS} 54 58 55 59 GSLMatrixSymmetricUnitTest_SOURCES = gslmatrixsymmetricunittest.cpp gslmatrixsymmetricunittest.hpp 56 GSLMatrixSymmetricUnitTest_LDADD = ../libgslwrapper.a60 GSLMatrixSymmetricUnitTest_LDADD = ${GSLLIBS} 57 61 58 62 GSLMatrixUnitTest_SOURCES = gslmatrixunittest.cpp gslmatrixunittest.hpp 59 GSLMatrixUnitTest_LDADD = ../libgslwrapper.a63 GSLMatrixUnitTest_LDADD = ${GSLLIBS} 60 64 61 65 GSLVectorUnitTest_SOURCES = gslvectorunittest.cpp gslvectorunittest.hpp 62 GSLVectorUnitTest_LDADD = ../libgslwrapper.a66 GSLVectorUnitTest_LDADD = ${GSLLIBS} 63 67 64 68 InfoUnitTest_SOURCES = infounittest.cpp infounittest.hpp 65 InfoUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a69 InfoUnitTest_LDADD = ${ALLLIBS} 66 70 67 71 LinearSystemOfEquationsUnitTest_SOURCES = linearsystemofequationsunittest.cpp linearsystemofequationsunittest.hpp 68 LinearSystemOfEquationsUnitTest_LDADD = ../libgslwrapper.a ../libmolecuilder.a72 LinearSystemOfEquationsUnitTest_LDADD = ${ALLLIBS} 69 73 70 74 ListOfBondsUnitTest_SOURCES = listofbondsunittest.cpp listofbondsunittest.hpp 71 ListOfBondsUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a75 ListOfBondsUnitTest_LDADD = ${ALLLIBS} 72 76 73 77 LogUnitTest_SOURCES = logunittest.cpp logunittest.hpp 74 LogUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a78 LogUnitTest_LDADD = ${ALLLIBS} 75 79 76 80 MemoryAllocatorUnitTest_SOURCES = memoryallocatorunittest.cpp memoryallocatorunittest.hpp 77 MemoryAllocatorUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a81 MemoryAllocatorUnitTest_LDADD = ${ALLLIBS} 78 82 79 83 MemoryUsageObserverUnitTest_SOURCES = memoryusageobserverunittest.cpp memoryusageobserverunittest.hpp 80 MemoryUsageObserverUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a84 MemoryUsageObserverUnitTest_LDADD = ${ALLLIBS} 81 85 82 86 StackClassUnitTest_SOURCES = stackclassunittest.cpp stackclassunittest.hpp 83 StackClassUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a87 StackClassUnitTest_LDADD = ${ALLLIBS} 84 88 85 89 TesselationUnitTest_SOURCES = tesselationunittest.cpp tesselationunittest.hpp 86 TesselationUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a90 TesselationUnitTest_LDADD = ${ALLLIBS} 87 91 88 92 Tesselation_BoundaryTriangleUnitTest_SOURCES = tesselation_boundarytriangleunittest.cpp tesselation_boundarytriangleunittest.hpp 89 Tesselation_BoundaryTriangleUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a93 Tesselation_BoundaryTriangleUnitTest_LDADD = ${ALLLIBS} 90 94 91 95 Tesselation_InOutsideUnitTest_SOURCES = tesselation_insideoutsideunittest.cpp tesselation_insideoutsideunittest.hpp 92 Tesselation_InOutsideUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a96 Tesselation_InOutsideUnitTest_LDADD = ${ALLLIBS} 93 97 94 98 VectorUnitTest_SOURCES = vectorunittest.cpp vectorunittest.hpp 95 VectorUnitTest_LDADD = ../libmolecuilder.a ../libgslwrapper.a99 VectorUnitTest_LDADD = ${ALLLIBS} 96 100 97 101 ActionSequenceTest_SOURCES = ActionSequenceTest.cpp ActionSequenceTest.hpp 98 ActionSequenceTest_LDADD = ../libmolecuilder.a../libmenu.a102 ActionSequenceTest_LDADD = ${ALLLIBS} ../libmenu.a 99 103 100 104 ObserverTest_SOURCES = ObserverTest.cpp ObserverTest.hpp 101 ObserverTest_LDADD = ../libmolecuilder.a 105 ObserverTest_LDADD = ${ALLLIBS} 106 107 CacheableTest_SOURCES = CacheableTest.cpp CacheableTest.hpp 108 CacheableTest_LDADD = ${ALLLIBS} 109 110 DescriptorUnittest_SOURCES = DescriptorUnittest.cpp DescriptorUnittest.hpp 111 DescriptorUnittest_LDADD = ${ALLLIBS} 102 112 103 113 #AUTOMAKE_OPTIONS = parallel-tests -
src/unittests/ObserverTest.cpp
r7ba324 rb1d8092 39 39 public: 40 40 void changeMethod() { 41 START_OBSERVER; 42 int i; 43 i++; 44 FINISH_OBSERVER; 41 OBSERVE; 42 int i; 43 i++; 45 44 } 46 45 }; … … 49 48 public: 50 49 void changeMethod1() { 51 START_OBSERVER; 52 int i; 53 i++; 54 FINISH_OBSERVER; 50 OBSERVE; 51 int i; 52 i++; 55 53 } 56 54 57 55 void changeMethod2() { 58 START_OBSERVER;56 OBSERVE; 59 57 int i; 60 58 i++; 61 59 changeMethod1(); 62 FINISH_OBSERVER;63 60 } 64 61 }; … … 74 71 } 75 72 void changeMethod() { 76 START_OBSERVER;73 OBSERVE; 77 74 int i; 78 75 i++; 79 76 subObservable->changeMethod(); 80 FINISH_OBSERVER;81 77 } 82 78 SimpleObservable *subObservable;
Note:
See TracChangeset
for help on using the changeset viewer.