Skip to content

Testing: Renovate CMake, Introduce Templating

Simon Spannagel requested to merge named_args into master

This Mr renovates the testing CMake code a bit:

  • move working directory of tests into PROJECT_BINARY_DIR and don't do it in the source folder
  • use named arguments for the ADD_ALLPIX_TEST function
  • make the method itself more generic, allow to e.g. overwrite EXECUTABLE and WORKING_DIRECTORY
  • Make use of the above: module tests are now handled as templates using CONFIGURE_FILE which enables use of @VARIABLES@.
  • Use this new feature to replace hardcoded ../../../-references in tests with proper paths.
  • document this.

🎉

Merge request reports