Changeset e588312 for src/unittests


Ignore:
Timestamp:
Aug 6, 2010, 2:10:26 PM (14 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:
b5c53d
Parents:
822f01 (diff), 311d688 (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 'stable' into StructureRefactoring

Location:
src/unittests
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/ActOnAllUnitTest.cpp

    r822f01 re588312  
    1414#include "../test/ActOnAlltest.hpp"
    1515#include "ActOnAllUnitTest.hpp"
    16 #include "vector.hpp"
     16#include "LinearAlgebra/Vector.hpp"
    1717
    1818#ifdef HAVE_TESTRUNNER
  • src/unittests/ActionSequenceTest.cpp

    r822f01 re588312  
    243243
    244244  CPPUNIT_ASSERT_EQUAL(true,wasCalled1->wasCalled());
    245   CPPUNIT_ASSERT_EQUAL(true,wasCalled1->wasCalled());
     245  CPPUNIT_ASSERT_EQUAL(true,wasCalled2->wasCalled());
    246246
    247247  ActionHistory::getInstance().undoLast();
    248248
    249249  CPPUNIT_ASSERT_EQUAL(false,wasCalled1->wasCalled());
    250   CPPUNIT_ASSERT_EQUAL(false,wasCalled1->wasCalled());
    251 
    252 }
    253 
    254 
     250  CPPUNIT_ASSERT_EQUAL(false,wasCalled2->wasCalled());
     251
     252}
     253
     254
  • src/unittests/BoxUnittest.cpp

    r822f01 re588312  
    1616#endif /*HAVE_TESTRUNNER*/
    1717
    18 #include "vector.hpp"
    19 #include "Matrix.hpp"
     18#include "LinearAlgebra/Vector.hpp"
     19#include "LinearAlgebra/Matrix.hpp"
    2020#include "Box.hpp"
    2121#include "Helpers/Assert.hpp"
  • src/unittests/LineUnittest.cpp

    r822f01 re588312  
    88#include "LineUnittest.hpp"
    99
    10 #include "vector.hpp"
     10#include "LinearAlgebra/Vector.hpp"
    1111#include "Exceptions/LinearDependenceException.hpp"
    1212#include "Exceptions/SkewException.hpp"
  • src/unittests/LineUnittest.hpp

    r822f01 re588312  
    1111#include <cppunit/extensions/HelperMacros.h>
    1212
    13 #include "Line.hpp"
     13#include "LinearAlgebra/Line.hpp"
    1414
    1515class LineUnittest : public CppUnit::TestFixture
  • src/unittests/Makefile.am

    r822f01 re588312  
    4949noinst_PROGRAMS = $(TESTS) TestRunner
    5050
    51 GSLLIBS = ../libgslwrapper.a ../libmolecuilderbase.a $(BOOST_LIB) ${BOOST_THREAD_LIB}
    52 ALLLIBS = ../libmolecuilder.a ${GSLLIBS}
    53 PARSERLIBS = ../libparser.a ${ALLLIBS}
    54 UILIBS = ../UIElements/libMolecuilderUI.a ../Actions/libMolecuilderActions.a ${ALLLIBS} ${BOOST_PROGRAM_OPTIONS_LIB}
     51GSLLIBS = \
     52        ../LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
     53        ../Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
     54        ../Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
     55        $(BOOST_LIB) \
     56        ${BOOST_THREAD_LIB}
     57ALLLIBS = \
     58        ../Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
     59        ${PARSERLIBS} \
     60        ../libMolecuilder-@MOLECUILDER_API_VERSION@.la \
     61        ${GSLLIBS} \
     62        ${BOOST_PROGRAM_OPTIONS_LIB}
     63PARSERLIBS = ../Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la
     64UILIBS = ../UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la 
    5565
    5666TESTSOURCES = \
     
    119129  MoleculeDescriptorTest.hpp \
    120130  periodentafelTest.hpp \
     131  ParserUnitTest.hpp \
    121132  PlaneUnittest.hpp \
    122133  ObserverTest.hpp \
     
    129140 
    130141
    131 ActionSequenceTest_SOURCES = UnitTestMain.cpp ActionSequenceTest.cpp ActionSequenceTest.hpp $(srcdir)/../version.c
    132 ActionSequenceTest_LDADD = ${UILIBS}
     142ActionSequenceTest_SOURCES = UnitTestMain.cpp ActionSequenceTest.cpp ActionSequenceTest.hpp
     143ActionSequenceTest_LDADD = ${UILIBS} ${ALLLIBS}
    133144
    134145ActOnAllUnitTest_SOURCES = UnitTestMain.cpp ../test/ActOnAllTest.hpp ActOnAllUnitTest.cpp ActOnAllUnitTest.hpp
     
    169180
    170181GSLMatrixSymmetricUnitTest_SOURCES = UnitTestMain.cpp gslmatrixsymmetricunittest.cpp gslmatrixsymmetricunittest.hpp
    171 GSLMatrixSymmetricUnitTest_LDADD = ${GSLLIBS}
     182GSLMatrixSymmetricUnitTest_LDADD = ${ALLLIBS}
    172183
    173184GSLMatrixUnitTest_SOURCES = UnitTestMain.cpp gslmatrixunittest.cpp gslmatrixunittest.hpp
    174 GSLMatrixUnitTest_LDADD = ${GSLLIBS}
     185GSLMatrixUnitTest_LDADD = ${ALLLIBS}
    175186
    176187GSLVectorUnitTest_SOURCES = UnitTestMain.cpp gslvectorunittest.cpp gslvectorunittest.hpp
    177 GSLVectorUnitTest_LDADD = ${GSLLIBS}
     188GSLVectorUnitTest_LDADD = ${ALLLIBS}
    178189
    179190InfoUnitTest_SOURCES = UnitTestMain.cpp infounittest.cpp infounittest.hpp
     
    195206LogUnitTest_LDADD = ${ALLLIBS}
    196207
    197 manipulateAtomsTest_SOURCES = UnitTestMain.cpp manipulateAtomsTest.cpp manipulateAtomsTest.hpp $(srcdir)/../version.c
    198 manipulateAtomsTest_LDADD = ${UILIBS}
     208manipulateAtomsTest_SOURCES = UnitTestMain.cpp manipulateAtomsTest.cpp manipulateAtomsTest.hpp
     209manipulateAtomsTest_LDADD = ${UILIBS} ${ALLLIBS}
    199210
    200211MatrixUnittest_SOURCES = UnitTestMain.cpp MatrixUnittest.cpp MatrixUnittest.hpp
     
    208219
    209220ParserUnitTest_SOURCES = UnitTestMain.cpp ParserUnitTest.cpp ParserUnitTest.hpp
    210 ParserUnitTest_LDADD = ${PARSERLIBS}
     221ParserUnitTest_LDADD = ${ALLLIBS}
    211222
    212223periodentafelTest_SOURCES = UnitTestMain.cpp periodentafelTest.cpp periodentafelTest.hpp
     
    234245Tesselation_InOutsideUnitTest_LDADD = ${ALLLIBS}
    235246
    236 TestRunner_SOURCES = TestRunnerMain.cpp $(srcdir)/../version.c $(TESTSOURCES) $(TESTHEADERS)
    237 TestRunner_LDADD = ../UIElements/libMolecuilderUI.a ../Actions/libMolecuilderActions.a ../libmolecuilder.a ../libparser.a ../libgslwrapper.a ../libmolecuilderbase.a $(BOOST_LIB) ${BOOST_THREAD_LIB} ${BOOST_PROGRAM_OPTIONS_LIB}
     247TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
     248TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
    238249
    239250VectorUnitTest_SOURCES = UnitTestMain.cpp vectorunittest.cpp vectorunittest.hpp
  • src/unittests/MatrixUnittest.cpp

    r822f01 re588312  
    1111
    1212#include "MatrixUnittest.hpp"
    13 #include "Matrix.hpp"
    14 #include "vector.hpp"
     13#include "LinearAlgebra/Matrix.hpp"
     14#include "LinearAlgebra/Vector.hpp"
    1515#include "Exceptions/NotInvertibleException.hpp"
    1616
  • src/unittests/PlaneUnittest.cpp

    r822f01 re588312  
    1818#endif /*HAVE_TESTRUNNER*/
    1919
    20 #include "vector.hpp"
    21 #include "Line.hpp"
     20#include "LinearAlgebra/Vector.hpp"
     21#include "LinearAlgebra/Line.hpp"
    2222
    2323CPPUNIT_TEST_SUITE_REGISTRATION( PlaneUnittest );
  • src/unittests/PlaneUnittest.hpp

    r822f01 re588312  
    1111#include <cppunit/extensions/HelperMacros.h>
    1212
    13 #include "Plane.hpp"
     13#include "LinearAlgebra/Plane.hpp"
    1414
    1515class PlaneUnittest : public CppUnit::TestFixture
  • src/unittests/ShapeUnittest.cpp

    r822f01 re588312  
    1616#endif /*HAVE_TESTRUNNER*/
    1717
     18#include "LinearAlgebra/Vector.hpp"
    1819#include "Shapes/Shape.hpp"
    19 #include "vector.cpp"
    2020
    2121// Registers the fixture into the 'registry'
  • src/unittests/ShapeUnittest.hpp

    r822f01 re588312  
    1414class Vector;
    1515
    16 #include "vector.hpp"
     16#include "LinearAlgebra/Vector.hpp"
    1717
    1818class ShapeUnittest : public CppUnit::TestFixture
  • src/unittests/bondgraphunittest.cpp

    r822f01 re588312  
    2323#include "bondgraph.hpp"
    2424#include "element.hpp"
    25 #include "log.hpp"
     25#include "Helpers/Log.hpp"
    2626#include "molecule.hpp"
    2727#include "periodentafel.hpp"
  • src/unittests/gslmatrixsymmetricunittest.hpp

    r822f01 re588312  
    1111#include <cppunit/extensions/HelperMacros.h>
    1212
    13 #include "gslmatrix.hpp"
     13#include "LinearAlgebra/gslmatrix.hpp"
    1414
    1515/********************************************** Test classes **************************************/
  • src/unittests/gslmatrixunittest.hpp

    r822f01 re588312  
    1111#include <cppunit/extensions/HelperMacros.h>
    1212
    13 #include "gslmatrix.hpp"
     13#include "LinearAlgebra/gslmatrix.hpp"
    1414
    1515/********************************************** Test classes **************************************/
  • src/unittests/gslvectorunittest.hpp

    r822f01 re588312  
    1111#include <cppunit/extensions/HelperMacros.h>
    1212
    13 #include "gslvector.hpp"
     13#include "LinearAlgebra/gslvector.hpp"
    1414
    1515/********************************************** Test classes **************************************/
  • src/unittests/infounittest.cpp

    r822f01 re588312  
    1515#include <stdio.h>
    1616
    17 #include "info.hpp"
     17#include "Helpers/Info.hpp"
    1818#include "infounittest.hpp"
    19 #include "log.hpp"
     19#include "Helpers/Log.hpp"
    2020
    2121#ifdef HAVE_TESTRUNNER
  • src/unittests/linearsystemofequationsunittest.cpp

    r822f01 re588312  
    1515
    1616#include "linearsystemofequationsunittest.hpp"
    17 #include "vector.hpp"
     17#include "LinearAlgebra/Vector.hpp"
    1818
    1919#ifdef HAVE_TESTRUNNER
  • src/unittests/linearsystemofequationsunittest.hpp

    r822f01 re588312  
    1111#include <cppunit/extensions/HelperMacros.h>
    1212
    13 #include "linearsystemofequations.hpp"
     13#include "LinearAlgebra/linearsystemofequations.hpp"
    1414
    1515/********************************************** Test classes **************************************/
  • src/unittests/logunittest.cpp

    r822f01 re588312  
    1111
    1212#include "logunittest.hpp"
    13 #include "log.hpp"
     13#include "Helpers/Log.hpp"
    1414#include "defs.hpp"
    15 #include "verbose.hpp"
     15#include "Helpers/Verbose.hpp"
    1616
    1717#ifdef HAVE_TESTRUNNER
  • src/unittests/memoryallocatorunittest.cpp

    r822f01 re588312  
    1313#include "memoryallocatorunittest.hpp"
    1414#include "memoryusageobserver.hpp"
    15 #include "helpers.hpp"
    16 #include "log.hpp"
     15#include "Helpers/helpers.hpp"
     16#include "Helpers/Log.hpp"
    1717#include "defs.hpp"
    1818
  • src/unittests/stackclassunittest.cpp

    r822f01 re588312  
    1313
    1414#include "stackclassunittest.hpp"
    15 #include "log.hpp"
     15#include "Helpers/Log.hpp"
    1616
    1717#ifdef HAVE_TESTRUNNER
  • src/unittests/tesselation_insideoutsideunittest.cpp

    r822f01 re588312  
    1717#include "tesselation.hpp"
    1818#include "tesselation_insideoutsideunittest.hpp"
    19 #include "verbose.hpp"
     19#include "Helpers/Verbose.hpp"
    2020
    2121#ifdef HAVE_TESTRUNNER
  • src/unittests/vectorunittest.cpp

    r822f01 re588312  
    1414
    1515#include "defs.hpp"
    16 #include "log.hpp"
    17 #include "vector.hpp"
     16#include "Helpers/Log.hpp"
     17#include "LinearAlgebra/Vector.hpp"
    1818#include "vector_ops.hpp"
    1919#include "vectorunittest.hpp"
    20 #include "Plane.hpp"
     20#include "LinearAlgebra/Plane.hpp"
    2121#include "Exceptions/LinearDependenceException.hpp"
    22 #include "Matrix.hpp"
     22#include "LinearAlgebra/Matrix.hpp"
    2323
    2424#ifdef HAVE_TESTRUNNER
  • src/unittests/vectorunittest.hpp

    r822f01 re588312  
    1111#include <cppunit/extensions/HelperMacros.h>
    1212
    13 #include "vector.hpp"
     13#include "LinearAlgebra/Vector.hpp"
    1414
    1515/********************************************** Test classes **************************************/
Note: See TracChangeset for help on using the changeset viewer.