Changeset 455573 for src/unittests


Ignore:
Timestamp:
Apr 18, 2011, 12:45:06 PM (14 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:
4217e7
Parents:
ca2cfa
git-author:
Frederik Heber <heber@…> (03/02/11 16:25:13)
git-committer:
Frederik Heber <heber@…> (04/18/11 12:45:06)
Message:

Large Commit: SUBDIRS in src/Makefile.am replaced by include.

  • This should let make decide on the dependencies automatically.
  • We had to change each Makefile.am due to different relative location now.
  • FIX: convenience libs were not created due to lib_LT... instead of noinst_LT... (thanks, Ralf!)
  • FIX: convenience libs cannot pass on dependencies on real libs, these (seemingly: libLinearAlgebra) have to be re-specified.
  • FIX: RANDOMSOURCE/HEADER were still present to include in libMolecuilder although RandomNumbers have been outsourced for some time already.
  • this should make it a lot easier for unit tests to get away with the massive dependencies because we may now include single libs and can construct stubs in replacement.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/Makefile.am

    rca2cfa r455573  
    22# Also indentation by a single tab
    33
    4 SUBDIRS = \
    5         ../Actions/unittests \
    6         ../Descriptors/unittests \
    7         ../Parser/unittests \
    8         ../RandomNumbers/unittests \
    9         ../Shapes/unittests \
    10         ../UIElements/CommandLineUI/unittests \
    11         ../UIElements/Menu/unittests
     4check_PROGRAMS =
     5noinst_PROGRAMS =
     6TESTS =
     7
     8include ../../src/Actions/unittests/Makefile.am
     9include ../../src/Descriptors/unittests/Makefile.am
     10include ../../src/Parser/unittests/Makefile.am
     11include ../../src/RandomNumbers/unittests/Makefile.am
     12include ../../src/Shapes/unittests/Makefile.am
     13include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
     14include ../../src/UIElements/Menu/unittests/Makefile.am
    1215
    1316INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
     
    1619AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
    1720
    18 TESTS = \
     21GENERALTESTS = \
    1922  AnalysisBondsUnitTest \
    2023  AnalysisCorrelationToPointUnitTest \
     
    3336  WorldTimeUnitTest
    3437
    35 
    36 check_PROGRAMS = $(TESTS)
    37 noinst_PROGRAMS = $(TESTS) TestRunner
     38# these ones are checked
     39TESTS += $(GENERALTESTS)
     40# these ones are built for checking only
     41check_PROGRAMS += $(GENERALTESTS)
     42# ... and not installed
     43noinst_PROGRAMS += $(GENERALTESTS) TestRunner
    3844
    3945BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
    40 GSLLIBS = \
    41         ../Shapes/libMolecuilderShapes.la \
     46
     47ALLLIBS = \
     48        ../libMolecuilderUI.la \
     49        ../libMolecuilder.la \
    4250        $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    43         ../RandomNumbers/libMolecuilderRandomNumbers.la \
     51        ${CodePatterns_LIBS} \
    4452        $(BOOST_LIB)
    45 ALLLIBS = \
    46         ../UIElements/libMolecuilderUI.la \
    47         ../Actions/libMolecuilderActions.la \
    48         ${PARSERLIBS} \
    49         ../libMolecuilder.la \
    50         ${GSLLIBS}
    51 
    52 PARSERLIBS = ../Parser/libMolecuilderParser.la
    53 UILIBS = ../UIElements/libMolecuilderUI.la
    5453
    5554TESTSOURCES = \
    56   ../Actions/unittests/ActionRegistryUnitTest.cpp \
    57   ../Actions/unittests/ActionSequenceUnitTest.cpp \
     55        ${ACTIONTESTSSOURCES} \
     56        ${DESCRIPTORTESTSSOURCES} \
     57        ${LINEARALGEBRATESTSSOURCES} \
     58        ${PARSERTESTSSOURCES} \
     59        ${RANDOMNUMBERTESTSSOURCES} \
     60        ${SHAPETESTSSOURCES} \
     61        $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
     62        ${UIELEMENTSMENUTESTSSOURCES} \
    5863  AnalysisBondsUnitTest.cpp \
    5964  AnalysisCorrelationToPointUnitTest.cpp \
    6065  AnalysisCorrelationToSurfaceUnitTest.cpp  \
    6166  AnalysisPairCorrelationUnitTest.cpp \
    62   ../Descriptors/unittests/AtomDescriptorUnitTest.cpp \
    63   ../Actions/unittests/AtomsCalculationUnitTest.cpp \
    6467  BondGraphUnitTest.cpp \
    6568  BoxUnitTest.cpp \
     
    6871  LinkedCellUnitTest.cpp \
    6972  ListOfBondsUnitTest.cpp \
    70   ../Actions/unittests/ManipulateAtomsUnitTest.cpp \
    71   ../UIElements/CommandLineUI/unittests/CommandLineParser_ActionRegistry_ConsistenyUnitTest.cpp \
    72   ../UIElements/Menu/unittests/MenuDescriptionUnitTest.cpp \
    73   ../Descriptors/unittests/MoleculeDescriptorUnitTest.cpp \
    74   ../Parser/unittests/ParserMpqcUnitTest.cpp \
    75   ../Parser/unittests/ParserPcpUnitTest.cpp \
    76   ../Parser/unittests/ParserPdbUnitTest.cpp \
    77   ../Parser/unittests/ParserTremoloUnitTest.cpp \
    78   ../Parser/unittests/ParserXyzUnitTest.cpp \
    7973  PeriodentafelUnitTest.cpp \
    80   ../Shapes/unittests/ShapeUnitTest.cpp \
    8174  TesselationUnitTest.cpp \
    8275  Tesselation_BoundaryTriangleUnitTest.cpp \
     
    8578
    8679TESTHEADERS = \
    87   ../Actions/unittests/ActionRegistryUnitTest.hpp \
    88   ../Actions/unittests/ActionSequenceUnitTest.hpp \
     80        ${ACTIONTESTSHEADERS} \
     81        ${DESCRIPTORTESTSHEADERS} \
     82        ${LINEARALGEBRATESTSHEADERS} \
     83        ${PARSERTESTSHEADERS} \
     84        ${RANDOMNUMBERTESTSHEADERS} \
     85        ${SHAPETESTSHEADERS} \
     86        $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
     87        ${UIELEMENTSMENUTESTSHEADERS} \
    8988  AnalysisBondsUnitTest.hpp \
    9089  AnalysisCorrelationToPointUnitTest.hpp \
    9190  AnalysisCorrelationToSurfaceUnitTest.hpp  \
    9291  AnalysisPairCorrelationUnitTest.hpp \
    93   ../Descriptors/unittests/AtomDescriptorUnitTest.hpp \
    94   ../Actions/unittests/AtomsCalculationUnitTest.hpp \
    9592  BondGraphUnitTest.hpp \
    9693  BoxUnitTest.hpp \
     
    9996  LinkedCellUnitTest.hpp \
    10097  ListOfBondsUnitTest.hpp \
    101   ../Actions/unittests/ManipulateAtomsUnitTest.hpp \
    102   ../UIElements/CommandLineUI/unittests/CommandLineParser_ActionRegistry_ConsistenyUnitTest.hpp \
    103   ../UIElements/Menu/unittests/MenuDescriptionUnitTest.hpp \
    104   ../Descriptors/unittests/MoleculeDescriptorUnitTest.hpp \
    105   ../Parser/unittests/ParserMpqcUnitTest.hpp \
    106   ../Parser/unittests/ParserPcpUnitTest.hpp \
    107   ../Parser/unittests/ParserPdbUnitTest.hpp \
    108   ../Parser/unittests/ParserTremoloUnitTest.hpp \
    109   ../Parser/unittests/ParserXyzUnitTest.hpp \
    11098  PeriodentafelUnitTest.hpp \
    111   ../Shapes/unittests/ShapeUnitTest.hpp \
    11299  TesselationUnitTest.hpp \
    113100  Tesselation_BoundaryTriangleUnitTest.hpp \
Note: See TracChangeset for help on using the changeset viewer.