From: Peter Munch Date: Mon, 17 Aug 2020 19:29:34 +0000 (+0200) Subject: Optional argument for DEAL_II_PICKUP_TESTS X-Git-Tag: v9.3.0-rc1~1147^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af324b53b1b12a83caed23d3a0fa97c1174db70f;p=dealii.git Optional argument for DEAL_II_PICKUP_TESTS --- diff --git a/cmake/macros/macro_deal_ii_pickup_tests.cmake b/cmake/macros/macro_deal_ii_pickup_tests.cmake index 082d9b668b..6959bc8518 100644 --- a/cmake/macros/macro_deal_ii_pickup_tests.cmake +++ b/cmake/macros/macro_deal_ii_pickup_tests.cmake @@ -183,7 +183,12 @@ MACRO(DEAL_II_PICKUP_TESTS) ENABLE_TESTING() SET_IF_EMPTY(TEST_PICKUP_REGEX "$ENV{TEST_PICKUP_REGEX}") - GET_FILENAME_COMPONENT(_category ${CMAKE_CURRENT_SOURCE_DIR} NAME) + + IF("${ARGN}" STREQUAL "") + GET_FILENAME_COMPONENT(_category ${CMAKE_CURRENT_SOURCE_DIR} NAME) + ELSE() + SET(_category "${ARGN}") + ENDIF() SET(DEAL_II_SOURCE_DIR) # avoid a bogus warning diff --git a/doc/news/changes/minor/20200817Munch-2 b/doc/news/changes/minor/20200817Munch-2 new file mode 100644 index 0000000000..f1f5a5555e --- /dev/null +++ b/doc/news/changes/minor/20200817Munch-2 @@ -0,0 +1,5 @@ +Improved: The macro DEAL_II_PICKUP_TESTS can now also be run with on optional +input parameter that can be used to manipulate the folder name of tests during +ctest. +
+(Peter Munch, 2020/07/23)