source: src/unittests/Makefile.am@ 0cfc27

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
Last change on this file since 0cfc27 was 0cfc27, checked in by Frederik Heber <heber@…>, 12 years ago

If no CPPUNIT is found, compilation of unit tests is disabled.

  • uses conditional CONDCPPUNIT.
  • Property mode set to 100644
File size: 5.6 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4check_PROGRAMS =
5noinst_PROGRAMS =
6TESTS =
7XFAIL_TESTS =
8
9if CONDCPPUNIT
10
11include ../../src/Actions/unittests/Makefile.am
12include ../../src/Analysis/unittests/Makefile.am
13include ../../src/Atom/unittests/Makefile.am
14include ../../src/Descriptors/unittests/Makefile.am
15include ../../src/Element/unittests/Makefile.am
16include ../../src/Filling/unittests/Makefile.am
17include ../../src/Fragmentation/unittests/Makefile.am
18include ../../src/Fragmentation/Homology/unittests/Makefile.am
19include ../../src/Fragmentation/Summation/unittests/Makefile.am
20include ../../src/Fragmentation/SetValues/unittests/Makefile.am
21include ../../src/Graph/unittests/Makefile.am
22
23if CONDJOBMARKET
24include ../../src/Jobs/unittests/Makefile.am
25include ../../src/Jobs/Grid/unittests/Makefile.am
26endif
27
28include ../../src/LinkedCell/unittests/Makefile.am
29include ../../src/Parameters/unittests/Makefile.am
30include ../../src/Parser/unittests/Makefile.am
31include ../../src/RandomNumbers/unittests/Makefile.am
32include ../../src/Shapes/unittests/Makefile.am
33include ../../src/Tesselation/unittests/Makefile.am
34include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
35include ../../src/UIElements/Menu/unittests/Makefile.am
36
37INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
38
39AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
40AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
41
42GENERALTESTS = \
43 AtomIdSetUnitTest \
44 BoxUnitTest \
45 Box_BoundaryConditionsTest \
46 FormulaUnittest \
47 ListOfBondsUnitTest \
48 MoleculeUnitTest \
49 WorldTimeUnitTest
50
51# these ones are checked
52TESTS += $(GENERALTESTS)
53# these ones are built for checking only
54check_PROGRAMS += $(GENERALTESTS)
55# ... and not installed
56noinst_PROGRAMS += $(GENERALTESTS)
57
58if CONDECUT
59noinst_PROGRAMS += TestRunner
60endif
61
62
63BOOST_LIB = \
64 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
65 $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
66 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
67 $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS)
68
69GENERALLIBS = \
70 ../libMolecuilder.la \
71 ../libMolecuilderHelpers.la \
72 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
73 ${CodePatterns_LIBS} \
74 $(BOOST_LIB)
75
76ALLLIBS = \
77 ../libMolecuilderFilling.la \
78 ../libMolecuilderUI.la \
79 ../libMolecuilder.la
80if CONDJOBMARKET
81ALLLIBS += \
82 ../libMolecuilderJobs.la
83endif
84ALLLIBS += \
85 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
86 ${CodePatterns_LIBS} \
87 $(BOOST_LIB)
88
89TESTSOURCES = \
90 ${ACTIONTESTSSOURCES} \
91 ${ANALYSISTESTSSOURCES} \
92 ${DESCRIPTORTESTSSOURCES} \
93 ${ELEMENTTESTSSOURCES} \
94 ${FILLINGTESTSSOURCES} \
95 ${FRAGMENTATIONTESTSSOURCES} \
96 ${GRAPHTESTSSOURCES} \
97 ${LINKEDCELLTESTSSOURCES} \
98 ${LINEARALGEBRATESTSSOURCES} \
99 ${PARAMETERTESTSSOURCES} \
100 ${PARSERTESTSSOURCES} \
101 ${RANDOMNUMBERTESTSSOURCES} \
102 ${SHAPETESTSSOURCES} \
103 ${TESSELATIONTESTSSOURCES} \
104 $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
105 ${UIELEMENTSMENUTESTSSOURCES} \
106 stubs/ObserverStub.cpp \
107 AtomIdSetUnitTest.cpp \
108 BoxUnitTest.cpp \
109 Box_BoundaryConditionsUnitTest.cpp \
110 FormulaUnitTest.cpp \
111 ListOfBondsUnitTest.cpp \
112 MoleculeUnitTest.cpp \
113 WorldTimeUnitTest.cpp
114
115TESTHEADERS = \
116 ${ACTIONTESTSHEADERS} \
117 ${ANALYSISTESTSHEADERS} \
118 ${DESCRIPTORTESTSHEADERS} \
119 ${ELEMENTTESTSHEADERS} \
120 ${FILLINGTESTSHEADERS} \
121 ${FRAGMENTATIONTESTSHEADERS} \
122 ${GRAPHTESTSHEADERS} \
123 ${LINKEDCELLTESTHEADERS} \
124 ${LINEARALGEBRATESTSHEADERS} \
125 ${PARAMETERTESTSHEADERS} \
126 ${PARSERTESTSHEADERS} \
127 ${RANDOMNUMBERTESTSHEADERS} \
128 ${SHAPETESTSHEADERS} \
129 ${TESSELATIONTESTSHEADERS} \
130 $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
131 ${UIELEMENTSMENUTESTSHEADERS} \
132 stubs/ObserverStub.hpp \
133 AtomIdSetUnitTest.hpp \
134 BoxUnitTest.hpp \
135 Box_BoundaryConditionsUnitTest.hpp \
136 FormulaUnitTest.hpp \
137 ListOfBondsUnitTest.hpp \
138 MoleculeUnitTest.hpp \
139 WorldTimeUnitTest.hpp
140
141
142BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
143 BoxUnitTest.cpp \
144 BoxUnitTest.hpp \
145 stubs/ObserverStub.cpp \
146 stubs/ObserverStub.hpp \
147 ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
148 ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
149BoxUnitTest_LDADD = \
150 ../libMolecuilder.la \
151 ../libMolecuilderShapes.la \
152 ../libMolecuilderHelpers.la \
153 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
154 ${CodePatterns_LIBS}
155
156AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
157 AtomIdSetUnitTest.cpp \
158 AtomIdSetUnitTest.hpp
159AtomIdSetUnitTest_LDADD = $(ALLLIBS)
160
161Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
162 Box_BoundaryConditionsUnitTest.cpp \
163 Box_BoundaryConditionsUnitTest.hpp \
164 ../Box_BoundaryConditions.cpp \
165 ../Box_BoundaryConditions.hpp
166Box_BoundaryConditionsTest_LDADD = \
167 ${CodePatterns_LIBS} \
168 $(BOOST_LIB)
169
170FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
171 FormulaUnitTest.cpp \
172 FormulaUnitTest.hpp
173FormulaUnittest_LDADD = $(ALLLIBS)
174
175ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
176 ListOfBondsUnitTest.cpp \
177 ListOfBondsUnitTest.hpp
178ListOfBondsUnitTest_LDADD = $(ALLLIBS)
179
180MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
181 MoleculeUnitTest.cpp \
182 MoleculeUnitTest.hpp
183MoleculeUnitTest_LDADD = $(ALLLIBS)
184
185WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
186 WorldTimeUnitTest.cpp \
187 WorldTimeUnitTest.hpp \
188 ../WorldTime.cpp \
189 ../WorldTime.hpp
190WorldTimeUnitTest_LDADD = ${BOOST_LIB}
191
192
193TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
194TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
195
196#AUTOMAKE_OPTIONS = parallel-tests
197
198endif
Note: See TracBrowser for help on using the repository browser.