Changeset e9e86f for src/unittests


Ignore:
Timestamp:
Aug 20, 2014, 12:59:14 PM (11 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:
d93b4b3
Parents:
09806a
git-author:
Frederik Heber <heber@…> (08/17/14 21:31:27)
git-committer:
Frederik Heber <heber@…> (08/20/14 12:59:14)
Message:

FIX: UnitTestMain placed into convenience libUnitTest.

  • removed UnitTestMain.cpp from all .._SOURCES (except LinearAlgebra).
  • this is due to subdir-objects: we cannot use absolute paths anymore. automake tries to place .deps folder in the respective source path. Wrapping it up in a library removes this.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/Makefile.am

    r09806a re9e86f  
    77XFAIL_TESTS =
    88MOSTLYCLEANFILES =
     9noinst_LTLIBRARIES =
     10
     11#AUTOMAKE_OPTIONS = no-dependencies
    912
    1013if CONDCPPUNIT
     
    6669endif
    6770
     71noinst_LTLIBRARIES += libUnitTest.la
     72libUnitTest_la_LDFLAGS = \
     73        $(AM_LDFLAGS)
     74libUnitTest_la_LIBADD =
     75
     76#nobase_libUnitTest_la_include_HEADERS =
     77
     78## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
     79## target.  Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
     80## will therefore be treated as if it were literally part of the target name,
     81## and the variable name derived from that.
     82## The file extension .cc is recognized by Automake, and makes it produce
     83## rules which invoke the C++ compiler to produce a libtool object file (.lo)
     84## from each source file.  Note that it is not necessary to list header files
     85## which are already listed elsewhere in a _HEADERS variable assignment.
     86libUnitTest_la_SOURCES = UnitTestMain.cpp
     87
     88## Instruct libtool to include ABI version information in the generated shared
     89## library file (.so).  The library ABI version is defined in configure.ac, so
     90## that all version information is kept in one place.
     91#libUnitTest_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
     92
     93## The generated configuration header is installed in its own subdirectory of
     94## $(libdir).  The reason for this is that the configuration information put
     95## into this header file describes the target platform the installed library
     96## has been built for.  Thus the file must not be installed into a location
     97## intended for architecture-independent files, as defined by the Filesystem
     98## Hierarchy Standard (FHS).
     99## The nodist_ prefix instructs Automake to not generate rules for including
     100## the listed files in the distribution on 'make dist'.  Files that are listed
     101## in _HEADERS variables are normally included in the distribution, but the
     102## configuration header file is generated at configure time and should not be
     103## shipped with the source tarball.
     104#libUnitTest_la_libincludedir = $(libdir)/MoleCuilder/include
     105#nodist_libUnitTest_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
     106
     107## Install the generated pkg-config file (.pc) into the expected location for
     108## architecture-dependent package configuration information.  Occasionally,
     109## pkg-config files are also used for architecture-independent data packages,
     110## in which case the correct install location would be $(datadir)/pkgconfig.
     111#pkgconfigdir = $(libdir)/pkgconfig
     112#pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
     113
    68114
    69115BOOST_LIB = \
     
    81127
    82128ALLLIBS = \
     129        libUnitTest.la \
    83130        ../libMolecuilderUI.la
    84131if CONDJOBMARKET
     
    144191 
    145192
    146 BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     193BoxUnitTest_SOURCES = \
    147194        BoxUnitTest.cpp \
    148195        BoxUnitTest.hpp \
     
    152199        ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
    153200BoxUnitTest_LDADD = \
     201        libUnitTest.la \
    154202        ../libMolecuilder.la \
    155203        ../libMolecuilderShapes.la \
     
    159207        $(BOOST_LIB)
    160208
    161 AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     209AtomIdSetUnitTest_SOURCES = \
    162210        AtomIdSetUnitTest.cpp \
    163211        AtomIdSetUnitTest.hpp
    164212AtomIdSetUnitTest_LDADD =  $(ALLLIBS)
    165213
    166 Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     214Box_BoundaryConditionsTest_SOURCES = \
    167215        Box_BoundaryConditionsUnitTest.cpp \
    168216        Box_BoundaryConditionsUnitTest.hpp \
     
    170218        ../Box_BoundaryConditions.hpp
    171219Box_BoundaryConditionsTest_LDADD = \
    172         ${CodePatterns_LIBS} \
    173         $(BOOST_LIB)
    174 
    175 FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     220        libUnitTest.la \
     221        ${CodePatterns_LIBS} \
     222        $(BOOST_LIB)
     223
     224FormulaUnittest_SOURCES = \
    176225        FormulaUnitTest.cpp \
    177226        FormulaUnitTest.hpp
    178227FormulaUnittest_LDADD = $(ALLLIBS)
    179228
    180 ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     229ListOfBondsUnitTest_SOURCES = \
    181230        ListOfBondsUnitTest.cpp \
    182231        ListOfBondsUnitTest.hpp
    183232ListOfBondsUnitTest_LDADD = $(ALLLIBS)
    184233
    185 MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     234MoleculeUnitTest_SOURCES = \
    186235        MoleculeUnitTest.cpp \
    187236        MoleculeUnitTest.hpp
     
    191240        ../libMolecuilderHelpers.la
    192241
    193 WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     242WorldTimeUnitTest_SOURCES = \
    194243        WorldTimeUnitTest.cpp \
    195244        WorldTimeUnitTest.hpp \
    196245        ../WorldTime.cpp \
    197246        ../WorldTime.hpp
    198 WorldTimeUnitTest_LDADD = ${BOOST_LIB}
     247WorldTimeUnitTest_LDADD = \
     248        libUnitTest.la \
     249        ${BOOST_LIB}
    199250
    200251
Note: See TracChangeset for help on using the changeset viewer.