Page MenuHomePhabricator

Extra dependencies for module test drivers
Closed, ResolvedPublic

Description

Unit Tests for modules sometimes need additional dependencies to other modules. The CMake macro MITK_CREATE_MODULE_TESTS() should be extended to allow to specify additionals dependencies.

Possible use cases include

  • modules that create test data (too complicated to copy/paste into diverse tests)
  • dummy backends to simulate database access for test drivers

The fix is a simple change to mitkMacroCreateModuleTest.cmake.

Event Timeline

New remote branch pushed: bug-14599-extra-test-dependencies

Bug is ready for integration, Sascha had no objections. Change does not actually affect the open-source part of MITK

[34ec03]: Merge branch 'bug-14599-extra-test-dependencies'

Merged commits:

2013-02-27 16:45:49 Daniel Maleike [c93243]
Allow for EXTRA_DEPENDS parameter to module tests

This extra parameter allows defining additional modules
as include and link dependencies. Such dependencies are
useful, when test data generation is available through
dedicated modules, which shall not be part of the actual
release/non-testing version of a product