mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Merge topic 'labels-for-subprojects'
376dc3ebHelp: Add notes for topic 'labels_for_subprojects'a70d8e93Add tests for new directory labels and labels-for-subprojects features47b3a57cDisplay subproject timing summaryd3859624Add directory property 'LABELS' and CMAKE_DIRECTORY_LABELS variabled08ec4d2Add CTEST_LABELS_FOR_SUBPROJECTS as a CTest module and script variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1004
This commit is contained in:
@@ -74,6 +74,7 @@ Properties on Directories
|
||||
/prop_dir/INCLUDE_REGULAR_EXPRESSION
|
||||
/prop_dir/INTERPROCEDURAL_OPTIMIZATION_CONFIG
|
||||
/prop_dir/INTERPROCEDURAL_OPTIMIZATION
|
||||
/prop_dir/LABELS
|
||||
/prop_dir/LINK_DIRECTORIES
|
||||
/prop_dir/LISTFILE_STACK
|
||||
/prop_dir/MACROS
|
||||
|
||||
@@ -32,6 +32,7 @@ Variables that Provide Information
|
||||
/variable/CMAKE_CURRENT_LIST_FILE
|
||||
/variable/CMAKE_CURRENT_LIST_LINE
|
||||
/variable/CMAKE_CURRENT_SOURCE_DIR
|
||||
/variable/CMAKE_DIRECTORY_LABELS
|
||||
/variable/CMAKE_DL_LIBS
|
||||
/variable/CMAKE_EDIT_COMMAND
|
||||
/variable/CMAKE_EXECUTABLE_SUFFIX
|
||||
@@ -482,6 +483,7 @@ Variables for CTest
|
||||
/variable/CTEST_GIT_UPDATE_OPTIONS
|
||||
/variable/CTEST_HG_COMMAND
|
||||
/variable/CTEST_HG_UPDATE_OPTIONS
|
||||
/variable/CTEST_LABELS_FOR_SUBPROJECTS
|
||||
/variable/CTEST_MEMORYCHECK_COMMAND
|
||||
/variable/CTEST_MEMORYCHECK_COMMAND_OPTIONS
|
||||
/variable/CTEST_MEMORYCHECK_SANITIZER_OPTIONS
|
||||
|
||||
@@ -250,6 +250,13 @@ Options
|
||||
label associated with the tests run. If there are no labels on the
|
||||
tests, nothing extra is printed.
|
||||
|
||||
``--no-subproject-summary``
|
||||
Disable timing summary information for subprojects.
|
||||
|
||||
This option tells ctest not to print summary information for each
|
||||
subproject associated with the tests run. If there are no subprojects on the
|
||||
tests, nothing extra is printed.
|
||||
|
||||
``--build-and-test <path-to-source> <path-to-build>``
|
||||
Configure, build and run a test.
|
||||
|
||||
@@ -758,6 +765,15 @@ Configuration settings include:
|
||||
* :module:`CTest` module variable: :variable:`CMAKE_COMMAND`
|
||||
followed by :variable:`PROJECT_SOURCE_DIR`
|
||||
|
||||
``LabelsForSubprojects``
|
||||
Specify a semicolon-separated list of labels that will be treated as
|
||||
subprojects. This mapping will be passed on to CDash when configure, test or
|
||||
build results are submitted.
|
||||
|
||||
* `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
|
||||
* :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
|
||||
|
||||
|
||||
.. _`CTest Build Step`:
|
||||
|
||||
CTest Build Step
|
||||
@@ -780,6 +796,14 @@ Configuration settings include:
|
||||
* :module:`CTest` module variable: ``DEFAULT_CTEST_CONFIGURATION_TYPE``,
|
||||
initialized by the ``CMAKE_CONFIG_TYPE`` environment variable
|
||||
|
||||
``LabelsForSubprojects``
|
||||
Specify a semicolon-separated list of labels that will be treated as
|
||||
subprojects. This mapping will be passed on to CDash when configure, test or
|
||||
build results are submitted.
|
||||
|
||||
* `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
|
||||
* :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
|
||||
|
||||
``MakeCommand``
|
||||
Command-line to launch the software build process.
|
||||
It will be executed in the location specified by the
|
||||
@@ -815,6 +839,15 @@ Arguments to the command may specify some of the step settings.
|
||||
|
||||
Configuration settings include:
|
||||
|
||||
``LabelsForSubprojects``
|
||||
Specify a semicolon-separated list of labels that will be treated as
|
||||
subprojects. This mapping will be passed on to CDash when configure, test or
|
||||
build results are submitted.
|
||||
|
||||
* `CTest Script`_ variable: :variable:`CTEST_LABELS_FOR_SUBPROJECTS`
|
||||
* :module:`CTest` module variable: ``CTEST_LABELS_FOR_SUBPROJECTS``
|
||||
|
||||
|
||||
``TestLoad``
|
||||
While running tests in parallel (e.g. with ``-j``), try not to start
|
||||
tests when they may cause the CPU load to pass above a given threshold.
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
LABELS
|
||||
------
|
||||
|
||||
Specify a list of text labels associated with a directory and all of its
|
||||
subdirectories. This is equivalent to setting the :prop_tgt:`LABELS` target
|
||||
property and the :prop_test:`LABELS` test property on all targets and tests in
|
||||
the current directory and subdirectories. Note: Launchers must enabled to
|
||||
propagate labels to targets.
|
||||
|
||||
The :variable:`CMAKE_DIRECTORY_LABELS` variable can be used to initialize this
|
||||
property.
|
||||
|
||||
The list is reported in dashboard submissions.
|
||||
@@ -0,0 +1,14 @@
|
||||
labels_for_subprojects
|
||||
----------------------
|
||||
|
||||
* A :variable:`CTEST_LABELS_FOR_SUBPROJECTS` CTest module variable and CTest
|
||||
script variable was added to specify a list of labels that should be treated
|
||||
as subprojects by CDash. To use this value in both the CTest module and the
|
||||
ctest command line `Dashboard Client` mode (e.g. ctest -S) set it in the
|
||||
CTestConfig.cmake config file.
|
||||
|
||||
* A :prop_dir:`LABELS` directory property was added to specify labels
|
||||
for all targets and tests in a directory.
|
||||
|
||||
* A :variable:`CMAKE_DIRECTORY_LABELS` variable was added to specify
|
||||
labels for all tests in a directory.
|
||||
@@ -0,0 +1,6 @@
|
||||
CMAKE_DIRECTORY_LABELS
|
||||
-----------------------
|
||||
|
||||
Specify labels for the current directory.
|
||||
|
||||
This is used to initialize the :prop_dir:`LABELS` directory property.
|
||||
@@ -0,0 +1,5 @@
|
||||
CTEST_LABELS_FOR_SUBPROJECTS
|
||||
----------------------------
|
||||
|
||||
Specify the CTest ``LabelsForSubprojects`` setting
|
||||
in a :manual:`ctest(1)` dashboard client script.
|
||||
Reference in New Issue
Block a user