CMake macro add_dune_test_for_target
A Cmake macro that generates ctests when targets are already available. Those Targets have been
- Generated by user
- Generated by a add_dune_static_variants macro (issue #7 (closed))
add_dune_test_for_target(
TARGET target1 [, target2, ...]
INIFILE ini
[SCRIPT] script
[LABELS label1 [, label2, ...]
[REFERENCE_VTU vtu]
[REFERENCE_DATA dat]
)
For case 1. the function takes several targets for convenience, all of those are related to the same metaini-file, and same set of labels, referencevtu, referencedata.
For case 2. another macro generated the targets from the commands in the given metaini file. The same metaini file will be parsed again by this script.
The optional arguments LABELS/REFERENCE_VTU/REFERENCE_DATA are not used if the same information is already provided in the metaini file.
The SCRIPT argument provided a python test scripts e.g. fuzzycomparevtu. However, a default wrapper for ctest e.g. fuzzycomparevtu should be available, in case no script is provided.
Features:
- Expand metaini file in buildtree
- Copy additional data? (DGF)