ctest_update.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ctest_update
  2. ------------
  3. Perform the :ref:`CTest Update Step` as a :ref:`Dashboard Client`.
  4. .. code-block:: cmake
  5. ctest_update([SOURCE <source-dir>]
  6. [RETURN_VALUE <result-var>]
  7. [CAPTURE_CMAKE_ERROR <result-var>]
  8. [QUIET])
  9. Update the source tree from version control and record results in
  10. ``Update.xml`` for submission with the :command:`ctest_submit` command.
  11. The options are:
  12. ``SOURCE <source-dir>``
  13. Specify the source directory. If not given, the
  14. :variable:`CTEST_SOURCE_DIRECTORY` variable is used.
  15. ``RETURN_VALUE <result-var>``
  16. Store in the ``<result-var>`` variable the number of files
  17. updated or ``-1`` on error.
  18. ``CAPTURE_CMAKE_ERROR <result-var>``
  19. .. versionadded:: 3.13
  20. Store in the ``<result-var>`` variable -1 if there are any errors running
  21. the command and prevent ctest from returning non-zero if an error occurs.
  22. ``QUIET``
  23. .. versionadded:: 3.3
  24. Tell CTest to suppress most non-error messages that it would
  25. have otherwise printed to the console. CTest will still report
  26. the new revision of the repository and any conflicting files
  27. that were found.
  28. The update always follows the version control branch currently checked
  29. out in the source directory. See the :ref:`CTest Update Step`
  30. documentation for information about variables that change the behavior
  31. of ``ctest_update()``.