diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-03-20 08:40:13 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-03-20 08:40:13 +0100 |
commit | 9bfeeba1c51e709740b222a7f62bdb1391de8f1a (patch) | |
tree | 37f419b2cdf4a2a6b4a4f71d8dd18609b4715e3f /cmake | |
parent | 11a9091084a68689a4434a546547c30ca94efbed (diff) |
Add Official/Unsupported labels to unit tests and add a ctest driver to submit subprojects to cdash
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/EigenTesting.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index 8ed2d3723..3780888af 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -73,6 +73,14 @@ macro(ei_add_test_internal testname testname_with_suffix) else() add_test(${testname_with_suffix} "${targetname}") endif() + + # Specify target and test labels accoirding to EIGEN_CURRENT_SUBPROJECT + get_property(current_subproject GLOBAL PROPERTY EIGEN_CURRENT_SUBPROJECT) + if ((current_subproject) AND (NOT (current_subproject STREQUAL ""))) + set_property(TARGET ${targetname} PROPERTY LABELS "Build${current_subproject}") + add_dependencies("Build${current_subproject}" ${targetname}) + set_property(TEST ${testname_with_suffix} PROPERTY LABELS "${current_subproject}") + endif() endmacro(ei_add_test_internal) @@ -263,6 +271,7 @@ macro(ei_testing_print_summary) endmacro(ei_testing_print_summary) macro(ei_init_testing) + define_property(GLOBAL PROPERTY EIGEN_CURRENT_SUBPROJECT BRIEF_DOCS " " FULL_DOCS " ") define_property(GLOBAL PROPERTY EIGEN_TESTED_BACKENDS BRIEF_DOCS " " FULL_DOCS " ") define_property(GLOBAL PROPERTY EIGEN_MISSING_BACKENDS BRIEF_DOCS " " FULL_DOCS " ") define_property(GLOBAL PROPERTY EIGEN_TESTING_SUMMARY BRIEF_DOCS " " FULL_DOCS " ") |