[18eecf] | 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
| 2 | # Also indentation by a single tab
|
---|
| 3 |
|
---|
[455573] | 4 | check_PROGRAMS =
|
---|
| 5 | noinst_PROGRAMS =
|
---|
| 6 | TESTS =
|
---|
[53bc04] | 7 | XFAIL_TESTS =
|
---|
[455573] | 8 |
|
---|
[0cfc27] | 9 | if CONDCPPUNIT
|
---|
| 10 |
|
---|
[455573] | 11 | include ../../src/Actions/unittests/Makefile.am
|
---|
[9b5a2c] | 12 | include ../../src/Analysis/unittests/Makefile.am
|
---|
[97c2550] | 13 | include ../../src/Atom/unittests/Makefile.am
|
---|
[455573] | 14 | include ../../src/Descriptors/unittests/Makefile.am
|
---|
[592be9] | 15 | include ../../src/Element/unittests/Makefile.am
|
---|
[600a52] | 16 | include ../../src/Filling/unittests/Makefile.am
|
---|
[355af8] | 17 | include ../../src/FunctionApproximation/unittests/Makefile.am
|
---|
[feb7df] | 18 | include ../../src/Fragmentation/unittests/Makefile.am
|
---|
[c3df23] | 19 | include ../../src/Fragmentation/Exporters/unittests/Makefile.am
|
---|
[4694df] | 20 | include ../../src/Fragmentation/Homology/unittests/Makefile.am
|
---|
[e920061] | 21 | include ../../src/Fragmentation/Summation/unittests/Makefile.am
|
---|
[fbf143] | 22 | include ../../src/Fragmentation/Summation/Containers/unittests/Makefile.am
|
---|
| 23 | include ../../src/Fragmentation/Summation/SetValues/unittests/Makefile.am
|
---|
[629e43] | 24 | include ../../src/Graph/unittests/Makefile.am
|
---|
[004d5c] | 25 |
|
---|
| 26 | if CONDJOBMARKET
|
---|
[cc5db5] | 27 | include ../../src/Jobs/unittests/Makefile.am
|
---|
[004d5c] | 28 | endif
|
---|
| 29 |
|
---|
[91f592] | 30 | include ../../src/LinkedCell/unittests/Makefile.am
|
---|
[dbb533] | 31 | include ../../src/Parameters/unittests/Makefile.am
|
---|
[455573] | 32 | include ../../src/Parser/unittests/Makefile.am
|
---|
[6efcae] | 33 | include ../../src/Potentials/unittests/Makefile.am
|
---|
[3c1465] | 34 | include ../../src/Potentials/Specifics/unittests/Makefile.am
|
---|
[455573] | 35 | include ../../src/RandomNumbers/unittests/Makefile.am
|
---|
| 36 | include ../../src/Shapes/unittests/Makefile.am
|
---|
[0b004b] | 37 | include ../../src/Tesselation/unittests/Makefile.am
|
---|
[455573] | 38 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
---|
| 39 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
---|
[c0bccb] | 40 |
|
---|
[004d5c] | 41 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
---|
[b9907c] | 42 |
|
---|
[f08ae7] | 43 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
---|
[a0064e] | 44 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
---|
[be90f1] | 45 |
|
---|
[455573] | 46 | GENERALTESTS = \
|
---|
[5e6534] | 47 | AtomIdSetUnitTest \
|
---|
[f844ef] | 48 | BoxUnitTest \
|
---|
[dd067a] | 49 | Box_BoundaryConditionsTest \
|
---|
[9f632c] | 50 | FormulaUnittest \
|
---|
[9fb860] | 51 | ListOfBondsUnitTest \
|
---|
[c67ff9] | 52 | MoleculeUnitTest \
|
---|
[f649de] | 53 | WorldTimeUnitTest
|
---|
[4fbca9c] | 54 |
|
---|
[455573] | 55 | # these ones are checked
|
---|
| 56 | TESTS += $(GENERALTESTS)
|
---|
| 57 | # these ones are built for checking only
|
---|
| 58 | check_PROGRAMS += $(GENERALTESTS)
|
---|
| 59 | # ... and not installed
|
---|
[fbbcde] | 60 | noinst_PROGRAMS += $(GENERALTESTS)
|
---|
| 61 |
|
---|
| 62 | if CONDECUT
|
---|
| 63 | noinst_PROGRAMS += TestRunner
|
---|
| 64 | endif
|
---|
| 65 |
|
---|
[b9907c] | 66 |
|
---|
[f08ae7] | 67 | BOOST_LIB = \
|
---|
| 68 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
---|
[d7d022] | 69 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
---|
[31ca5f] | 70 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
|
---|
| 71 | $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS)
|
---|
[455573] | 72 |
|
---|
[9d4ff35] | 73 | GENERALLIBS = \
|
---|
| 74 | ../libMolecuilder.la \
|
---|
| 75 | ../libMolecuilderHelpers.la \
|
---|
| 76 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
| 77 | ${CodePatterns_LIBS} \
|
---|
| 78 | $(BOOST_LIB)
|
---|
| 79 |
|
---|
[f4b5b7] | 80 | ALLLIBS = \
|
---|
[600a52] | 81 | ../libMolecuilderFilling.la \
|
---|
[455573] | 82 | ../libMolecuilderUI.la \
|
---|
[eb0d77] | 83 | ../libMolecuilder.la
|
---|
| 84 | if CONDJOBMARKET
|
---|
| 85 | ALLLIBS += \
|
---|
| 86 | ../libMolecuilderJobs.la
|
---|
| 87 | endif
|
---|
| 88 | ALLLIBS += \
|
---|
[455573] | 89 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
| 90 | ${CodePatterns_LIBS} \
|
---|
| 91 | $(BOOST_LIB)
|
---|
[4d9c01] | 92 |
|
---|
[9b6b2f] | 93 | TESTSOURCES = \
|
---|
[455573] | 94 | ${ACTIONTESTSSOURCES} \
|
---|
[9b5a2c] | 95 | ${ANALYSISTESTSSOURCES} \
|
---|
[455573] | 96 | ${DESCRIPTORTESTSSOURCES} \
|
---|
[592be9] | 97 | ${ELEMENTTESTSSOURCES} \
|
---|
[600a52] | 98 | ${FILLINGTESTSSOURCES} \
|
---|
[feb7df] | 99 | ${FRAGMENTATIONTESTSSOURCES} \
|
---|
[629e43] | 100 | ${GRAPHTESTSSOURCES} \
|
---|
[794bc8] | 101 | ${LINKEDCELLTESTSSOURCES} \
|
---|
[455573] | 102 | ${LINEARALGEBRATESTSSOURCES} \
|
---|
[dbb533] | 103 | ${PARAMETERTESTSSOURCES} \
|
---|
[455573] | 104 | ${PARSERTESTSSOURCES} \
|
---|
| 105 | ${RANDOMNUMBERTESTSSOURCES} \
|
---|
| 106 | ${SHAPETESTSSOURCES} \
|
---|
[0b004b] | 107 | ${TESSELATIONTESTSSOURCES} \
|
---|
[455573] | 108 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
---|
| 109 | ${UIELEMENTSMENUTESTSSOURCES} \
|
---|
[99f4ee] | 110 | stubs/ObserverStub.cpp \
|
---|
[5e6534] | 111 | AtomIdSetUnitTest.cpp \
|
---|
[f844ef] | 112 | BoxUnitTest.cpp \
|
---|
[dd067a] | 113 | Box_BoundaryConditionsUnitTest.cpp \
|
---|
[f844ef] | 114 | FormulaUnitTest.cpp \
|
---|
| 115 | ListOfBondsUnitTest.cpp \
|
---|
[c67ff9] | 116 | MoleculeUnitTest.cpp \
|
---|
[f649de] | 117 | WorldTimeUnitTest.cpp
|
---|
[9b6b2f] | 118 |
|
---|
| 119 | TESTHEADERS = \
|
---|
[455573] | 120 | ${ACTIONTESTSHEADERS} \
|
---|
[9b5a2c] | 121 | ${ANALYSISTESTSHEADERS} \
|
---|
[455573] | 122 | ${DESCRIPTORTESTSHEADERS} \
|
---|
[592be9] | 123 | ${ELEMENTTESTSHEADERS} \
|
---|
[600a52] | 124 | ${FILLINGTESTSHEADERS} \
|
---|
[feb7df] | 125 | ${FRAGMENTATIONTESTSHEADERS} \
|
---|
[629e43] | 126 | ${GRAPHTESTSHEADERS} \
|
---|
[794bc8] | 127 | ${LINKEDCELLTESTHEADERS} \
|
---|
[455573] | 128 | ${LINEARALGEBRATESTSHEADERS} \
|
---|
[dbb533] | 129 | ${PARAMETERTESTSHEADERS} \
|
---|
[455573] | 130 | ${PARSERTESTSHEADERS} \
|
---|
| 131 | ${RANDOMNUMBERTESTSHEADERS} \
|
---|
| 132 | ${SHAPETESTSHEADERS} \
|
---|
[0b004b] | 133 | ${TESSELATIONTESTSHEADERS} \
|
---|
[455573] | 134 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
---|
| 135 | ${UIELEMENTSMENUTESTSHEADERS} \
|
---|
[99f4ee] | 136 | stubs/ObserverStub.hpp \
|
---|
[5e6534] | 137 | AtomIdSetUnitTest.hpp \
|
---|
[f844ef] | 138 | BoxUnitTest.hpp \
|
---|
[dd067a] | 139 | Box_BoundaryConditionsUnitTest.hpp \
|
---|
[f844ef] | 140 | FormulaUnitTest.hpp \
|
---|
| 141 | ListOfBondsUnitTest.hpp \
|
---|
[c67ff9] | 142 | MoleculeUnitTest.hpp \
|
---|
[bf4b9f] | 143 | WorldTimeUnitTest.hpp
|
---|
[9fb860] | 144 |
|
---|
[9b6b2f] | 145 |
|
---|
[f844ef] | 146 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 147 | BoxUnitTest.cpp \
|
---|
[99f4ee] | 148 | BoxUnitTest.hpp \
|
---|
| 149 | stubs/ObserverStub.cpp \
|
---|
[da1e92] | 150 | stubs/ObserverStub.hpp \
|
---|
| 151 | ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
|
---|
| 152 | ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
|
---|
[9d4ff35] | 153 | BoxUnitTest_LDADD = \
|
---|
| 154 | ../libMolecuilder.la \
|
---|
| 155 | ../libMolecuilderShapes.la \
|
---|
| 156 | ../libMolecuilderHelpers.la \
|
---|
[31ca5f] | 157 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
| 158 | ${CodePatterns_LIBS}
|
---|
[77bc4f] | 159 |
|
---|
[5e6534] | 160 | AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 161 | AtomIdSetUnitTest.cpp \
|
---|
| 162 | AtomIdSetUnitTest.hpp
|
---|
| 163 | AtomIdSetUnitTest_LDADD = $(ALLLIBS)
|
---|
| 164 |
|
---|
[dd067a] | 165 | Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 166 | Box_BoundaryConditionsUnitTest.cpp \
|
---|
| 167 | Box_BoundaryConditionsUnitTest.hpp \
|
---|
| 168 | ../Box_BoundaryConditions.cpp \
|
---|
| 169 | ../Box_BoundaryConditions.hpp
|
---|
| 170 | Box_BoundaryConditionsTest_LDADD = \
|
---|
| 171 | ${CodePatterns_LIBS} \
|
---|
| 172 | $(BOOST_LIB)
|
---|
| 173 |
|
---|
[f844ef] | 174 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 175 | FormulaUnitTest.cpp \
|
---|
| 176 | FormulaUnitTest.hpp
|
---|
[9d4ff35] | 177 | FormulaUnittest_LDADD = $(ALLLIBS)
|
---|
[9f632c] | 178 |
|
---|
[f844ef] | 179 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 180 | ListOfBondsUnitTest.cpp \
|
---|
| 181 | ListOfBondsUnitTest.hpp
|
---|
[9d4ff35] | 182 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
---|
[266237] | 183 |
|
---|
[c67ff9] | 184 | MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 185 | MoleculeUnitTest.cpp \
|
---|
| 186 | MoleculeUnitTest.hpp
|
---|
[eb0d77] | 187 | MoleculeUnitTest_LDADD = $(ALLLIBS)
|
---|
[c67ff9] | 188 |
|
---|
[f649de] | 189 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 190 | WorldTimeUnitTest.cpp \
|
---|
| 191 | WorldTimeUnitTest.hpp \
|
---|
| 192 | ../WorldTime.cpp \
|
---|
| 193 | ../WorldTime.hpp
|
---|
| 194 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
---|
| 195 |
|
---|
| 196 |
|
---|
[36166d] | 197 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
---|
[b37436] | 198 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
---|
[7a1ce5] | 199 |
|
---|
[18eecf] | 200 | #AUTOMAKE_OPTIONS = parallel-tests
|
---|
[0cfc27] | 201 |
|
---|
| 202 | endif
|
---|