1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
|
# $Id$
#
## Find out which tests can be built
#
if ALBERTA
APROG = test-alberta-1-1 test-alberta-1-2 test-alberta-2-2 \
test-alberta-1-3 test-alberta-2-3 \
test-alberta-generic
ALBERTA_EXTRA_PROGS = test-alberta
endif
if ALUGRID
ALUPROG = test-alugrid
endif
if UG
UPROG = test-ug test-parallel-ug
if ALUGRID
DGFALU_UGGRID = test-dgfalu-uggrid-combination
else
DGFALU_UGGRID =
endif
endif
#
## Defines for gridtype.hh
#
GRIDTYPE=YASPGRID
GRIDDIM=2
ALBERTA_DIM = $(WORLDDIM)
#
## Some parameters for the geogrid test
#
COORDFUNCTION = IdenticalCoordFunction\<double,$(GRIDDIM)\>
# COORDFUNCTION = Helix
# COORDFUNCTION = ThickHelix
# COORDFUNCTION = DGFCoordFunction\<$(GRIDDIM),$(GRIDDIM)\>
# COORDFUNCTION = DGFCoordFunction\<2,3\>
CACHECOORDFUNCTION = 0
#
## define the lists of tests to build and run
#
# tests where program to build and program to run are equal
NORMALTESTS = test-sgrid test-oned test-yaspgrid test-geogrid $(APROG) $(UPROG) $(ALUPROG) $(DGFALU_UGGRID) \
test-mcmg-geogrid
# list of tests to run
TESTS = $(NORMALTESTS)
# programs just to build when "make check" is used
check_PROGRAMS = $(NORMALTESTS)
EXTRA_PROGRAMS = $(ALBERTA_EXTRA_PROGS)
#
## common flags
#
# output coverage
#COVERAGE = -fprofile-arcs -ftest-coverage
AM_CXXFLAGS = $(COVERAGE)
AM_CPPFLAGS = @AM_CPPFLAGS@ -DHAVE_DUNE_GRID=1
# The directory where the example grid files used for testing are located
AM_CPPFLAGS+=-DDUNE_GRID_EXAMPLE_GRIDS_PATH=\"$(top_srcdir)/doc/grids/\"
#
## define the programs
#
test_sgrid_SOURCES = test-sgrid.cc
test_oned_SOURCES = test-oned.cc
test_yaspgrid_SOURCES = test-yaspgrid.cc
test_yaspgrid_CPPFLAGS = $(AM_CPPFLAGS) \
$(DUNEMPICPPFLAGS)
test_yaspgrid_LDFLAGS = $(AM_LDFLAGS) \
$(DUNEMPILDFLAGS)
test_yaspgrid_LDADD = \
$(DUNEMPILIBS) \
$(LDADD)
# this implicitly checks the autoconf-test as well...
test_alberta_SOURCES = test-alberta.cc
test_alberta_CPPFLAGS = $(AM_CPPFLAGS) $(ALBERTA_CPPFLAGS) -DGRIDDIM=$(GRIDDIM) $(GRAPE_CPPFLAGS)
test_alberta_LDFLAGS = $(AM_LDFLAGS) $(ALBERTA_LDFLAGS) $(GRAPE_LDFLAGS)
test_alberta_LDADD = \
$(GRAPE_LIBS) \
$(ALBERTA_LIBS) \
$(LDADD)
test_alberta_1_1_SOURCES = test-alberta.cc
test_alberta_1_1_CPPFLAGS = -DGRIDDIM=1 -DWORLDDIM=1 $(ALBERTA1D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_1_1_LDFLAGS = $(ALBERTA1D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_1_1_LDADD = $(ALBERTA1D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_1_2_SOURCES = test-alberta.cc
test_alberta_1_2_CPPFLAGS = -DGRIDDIM=1 -DWORLDDIM=2 $(ALBERTA2D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_1_2_LDFLAGS = $(ALBERTA2D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_1_2_LDADD = $(ALBERTA2D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_2_2_SOURCES = test-alberta.cc
test_alberta_2_2_CPPFLAGS = -DGRIDDIM=2 -DWORLDDIM=2 $(ALBERTA2D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_2_2_LDFLAGS = $(ALBERTA2D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_2_2_LDADD = $(ALBERTA2D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_1_3_SOURCES = test-alberta.cc
test_alberta_1_3_CPPFLAGS = -DGRIDDIM=1 -DWORLDDIM=3 $(ALBERTA3D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_1_3_LDFLAGS = $(ALBERTA3D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_1_3_LDADD = $(ALBERTA3D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_2_3_SOURCES = test-alberta.cc
test_alberta_2_3_CPPFLAGS = -DGRIDDIM=2 -DWORLDDIM=3 $(ALBERTA3D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_2_3_LDFLAGS = $(ALBERTA3D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_2_3_LDADD = $(ALBERTA3D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_3_3_SOURCES = test-alberta.cc
test_alberta_3_3_CPPFLAGS = -DGRIDDIM=3 -DWORLDDIM=3 $(ALBERTA3D_CPPFLAGS) $(GRAPE_CPPFLAGS) $(AM_CPPFLAGS)
test_alberta_3_3_LDFLAGS = $(ALBERTA3D_LDFLAGS) $(GRAPE_LDFLAGS) $(AM_LDFLAGS)
test_alberta_3_3_LDADD = $(ALBERTA3D_LIBS) $(GRAPE_LIBS) $(LDADD)
test_alberta_generic_SOURCES = $(test_alberta_SOURCES)
test_alberta_generic_CPPFLAGS = $(test_alberta_CPPFLAGS) -DDUNE_ALBERTA_USE_GENERICGEOMETRY=1
test_alberta_generic_LDFLAGS = $(test_alberta_LDFLAGS)
test_alberta_generic_LDADD = $(test_alberta_LDADD)
# files for alugrid
test_alugrid_SOURCES = test-alugrid.cc
test_alugrid_CPPFLAGS = $(AM_CPPFLAGS) \
$(ALL_PKG_CPPFLAGS)
test_alugrid_LDFLAGS = $(AM_LDFLAGS) \
$(ALL_PKG_LDFLAGS) \
-static
test_alugrid_LDADD = \
$(ALL_PKG_LIBS) \
$(LDADD)
test_geogrid_SOURCES = test-geogrid.cc functions.hh
test_geogrid_CPPFLAGS = $(AM_CPPFLAGS) \
$(ALL_PKG_CPPFLAGS) \
-DCOORDFUNCTION=$(COORDFUNCTION) \
-DCACHECOORDFUNCTION=$(CACHECOORDFUNCTION)
test_geogrid_LDFLAGS = $(AM_LDFLAGS) \
$(ALL_PKG_LDFLAGS)
test_geogrid_LDADD = \
$(ALL_PKG_LIBS) \
$(LDADD)
test_mcmg_geogrid_SOURCES = test-mcmg-geogrid.cc
test_mcmg_geogrid_CPPFLAGS = $(AM_CPPFLAGS)
test_mcmg_geogrid_LDFLAGS = $(AM_LDFLAGS)
test_mcmg_geogrid_LDADD = $(LDADD)
# libdune contains both libugX2 and libugX3, always test both dimensions
test_ug_SOURCES = test-ug.cc
test_ug_CPPFLAGS = $(AM_CPPFLAGS) \
$(DUNEMPICPPFLAGS) \
$(UG_CPPFLAGS)
test_ug_LDFLAGS = $(AM_LDFLAGS) \
$(DUNEMPILDFLAGS) \
$(UG_LDFLAGS)
test_ug_LDADD = \
$(UG_LIBS) \
$(DUNEMPILIBS) \
$(LDADD)
# libdune contains both libugX2 and libugX3, always test both dimensions
test_parallel_ug_SOURCES = test-parallel-ug.cc
test_parallel_ug_CPPFLAGS = $(AM_CPPFLAGS) \
$(DUNEMPICPPFLAGS) \
$(UG_CPPFLAGS)
test_parallel_ug_LDFLAGS = $(AM_LDFLAGS) \
$(DUNEMPILDFLAGS) \
$(UG_LDFLAGS)
test_parallel_ug_LDADD = \
$(UG_LIBS) \
$(DUNEMPILIBS) \
$(LDADD)
# Test whether you can combine the different implementations in one file
test_dgfalu_uggrid_combination_SOURCES = test-dgfalu-uggrid-combination.cc
test_dgfalu_uggrid_combination_CPPFLAGS = $(AM_CPPFLAGS) $(UG_CPPFLAGS) $(ALUGRID_CPPFLAGS)
test_dgfalu_uggrid_combination_LDFLAGS = $(AM_LDFLAGS) $(UG_LDFLAGS) $(ALUGRID_LDFLAGS)
test_dgfalu_uggrid_combination_LDADD = \
$(ALUGRID_LIBS) \
$(UG_LIBS) \
$(LDADD)
## distribution tarball
SOURCES = basicunitcube.hh \
check-albertareader.cc \
checkadaptation.cc \
checkcommunicate.cc \
checkentityseed.cc \
checkgeometry.cc \
checkgeometryinfather.cc \
checkindexset.cc \
checkintersectionit.cc \
checkiterators.cc \
checkjacobians.cc \
checkpartition.cc \
checktwists.cc \
functions.hh \
gridcheck.cc \
staticcheck.hh
# gridcheck not used explicitly, we should still ship it :)
EXTRA_DIST = CMakeLists.txt $(SOURCES)
CLEANFILES = *.gcda *.gcno semantic.cache simplex-testgrid*.dgf.* cube-testgrid*.dgf.* dgfparser.log
# install the tests as we want to support testing 3rdparty grids with installed dune-grid
testgriddir = $(includedir)/dune/grid/test
testgrid_HEADERS = $(SOURCES)
include $(top_srcdir)/am/global-rules
|