ctest: Parsing files from `TEST_INCLUDE_FILES` is very limited
Example usage
I am trying to insert test property PROCESSORS
to be run appropriately at runtime to account for both OMP_NUM_THREADS
and MPI_EXEC
parallelization. This needs to count dynamically as ${OMP_NUM_THREADS:-1} * ${test_mpi_np}
, where test_mpi_np
is taken from each test's property that were previously parsed from the test file. The key issue here is that OMP_NUM_THREADS
can vary between configure and ctest
execution
Issues encountered
In designing this, I've encountered numerous issues:
-
get_property
orget_test_property
does not work withget_property given TEST name that does not exist
-
TEST_INCLUDE_FILES
prepends the includes, while in this case I want to append these commands to add to all of the known tests in the current directory - CMake functionality in general appears very limited, would
math
even work in such cases