mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 23:00:50 +08:00
Tutorial: Enhance CTestConfig info in Step 8
Add a copy of the CTestConfig.cmake from Step 9 into the directory for Step 8. Expand the information about the contents of the CTestConfig file and write a brief explanation of where on CDash to acquire the CTestConfig file for a specific project. CMake Issue: #22663
This commit is contained in:
@@ -28,9 +28,23 @@ With:
|
|||||||
The :module:`CTest` module will automatically call ``enable_testing()``, so we
|
The :module:`CTest` module will automatically call ``enable_testing()``, so we
|
||||||
can remove it from our CMake files.
|
can remove it from our CMake files.
|
||||||
|
|
||||||
We will also need to create a ``CTestConfig.cmake`` file in the top-level
|
We will also need to acquire a ``CTestConfig.cmake`` file to be placed in the
|
||||||
directory where we can specify the name of the project and where to submit the
|
top-level directory where we can specify information to CTest about the
|
||||||
dashboard.
|
project. It contains:
|
||||||
|
|
||||||
|
* The project name
|
||||||
|
|
||||||
|
* The project "Nightly" start time
|
||||||
|
|
||||||
|
* The time when a 24 hour "day" starts for this project.
|
||||||
|
|
||||||
|
* The URL of the CDash instance where the submission's generated documents
|
||||||
|
will be sent
|
||||||
|
|
||||||
|
One has been provided for you in this directory. It would normally be
|
||||||
|
downloaded from the ``Settings`` page of the project on the CDash
|
||||||
|
instance that will host and display the test results. Once downloaded from
|
||||||
|
CDash, the file should not be modified locally.
|
||||||
|
|
||||||
.. literalinclude:: Step9/CTestConfig.cmake
|
.. literalinclude:: Step9/CTestConfig.cmake
|
||||||
:caption: CTestConfig.cmake
|
:caption: CTestConfig.cmake
|
||||||
|
7
Help/guide/tutorial/Step8/CTestConfig.cmake
Normal file
7
Help/guide/tutorial/Step8/CTestConfig.cmake
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
set(CTEST_PROJECT_NAME "CMakeTutorial")
|
||||||
|
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
|
||||||
|
|
||||||
|
set(CTEST_DROP_METHOD "http")
|
||||||
|
set(CTEST_DROP_SITE "my.cdash.org")
|
||||||
|
set(CTEST_DROP_LOCATION "/submit.php?project=CMakeTutorial")
|
||||||
|
set(CTEST_DROP_SITE_CDASH TRUE)
|
Reference in New Issue
Block a user