test-alberta.cc: same test built multiple times?
From dune/grid/test/CMakeLists.txt
:
add_executable(test-alberta-1-3 EXCLUDE_FROM_ALL test-alberta.cc)
add_dune_alberta_flags(test-alberta-1-3 WORLDDIM 3)
target_compile_definitions(test-alberta-1-3 PUBLIC DUNE_GRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\")
dune_add_test(TARGET test-alberta-1-3)
add_executable(test-alberta-2-3 EXCLUDE_FROM_ALL test-alberta.cc)
add_dune_alberta_flags(test-alberta-2-3 WORLDDIM 3)
target_compile_definitions(test-alberta-2-3 PUBLIC DUNE_GRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\")
dune_add_test(TARGET test-alberta-2-3)
add_executable(test-alberta-3-3 EXCLUDE_FROM_ALL test-alberta.cc)
add_dune_alberta_flags(test-alberta-3-3 WORLDDIM 3)
target_compile_definitions(test-alberta-3-3 PUBLIC DUNE_GRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\")
dune_add_test(TARGET test-alberta-3-3)
I see no difference between these three tests: they use the same source file and the same definitions. This is the case since 61f3e2da where the GRIDDIM
definition which differed between the tests was removed.
The same duplication is also present for WORLDDIM 2
.
@gruenich As you removed the GRIDDIM
definition: are the tests identical now and should one be removed?