]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Optional argument for DEAL_II_PICKUP_TESTS 10835/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 17 Aug 2020 19:29:34 +0000 (21:29 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 1 Sep 2020 19:34:26 +0000 (21:34 +0200)
cmake/macros/macro_deal_ii_pickup_tests.cmake
doc/news/changes/minor/20200817Munch-2 [new file with mode: 0644]

index 082d9b668b8dde943b38495f4377d9a17ac5ecf6..6959bc8518c5307338eda8f4a4e894db070f27c2 100644 (file)
@@ -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 (file)
index 0000000..f1f5a55
--- /dev/null
@@ -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.
+<br>
+(Peter Munch, 2020/07/23)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.