ctest_submit.rst 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ctest_submit
  2. ------------
  3. Perform the :ref:`CTest Submit Step` as a :ref:`Dashboard Client`.
  4. ::
  5. ctest_submit([PARTS <part>...] [FILES <file>...]
  6. [HTTPHEADER <header>]
  7. [RETRY_COUNT <count>]
  8. [RETRY_DELAY <delay>]
  9. [RETURN_VALUE <result-var>]
  10. [CAPTURE_CMAKE_ERROR <result-var>]
  11. [QUIET]
  12. )
  13. Submit results to a dashboard server.
  14. By default all available parts are submitted.
  15. The options are:
  16. ``PARTS <part>...``
  17. Specify a subset of parts to submit. Valid part names are::
  18. Start = nothing
  19. Update = ctest_update results, in Update.xml
  20. Configure = ctest_configure results, in Configure.xml
  21. Build = ctest_build results, in Build.xml
  22. Test = ctest_test results, in Test.xml
  23. Coverage = ctest_coverage results, in Coverage.xml
  24. MemCheck = ctest_memcheck results, in DynamicAnalysis.xml
  25. Notes = Files listed by CTEST_NOTES_FILES, in Notes.xml
  26. ExtraFiles = Files listed by CTEST_EXTRA_SUBMIT_FILES
  27. Upload = Files prepared for upload by ctest_upload(), in Upload.xml
  28. Submit = nothing
  29. ``FILES <file>...``
  30. Specify an explicit list of specific files to be submitted.
  31. Each individual file must exist at the time of the call.
  32. ``HTTPHEADER <HTTP-header>``
  33. Specify HTTP header to be included in the request to CDash during submission.
  34. This suboption can be repeated several times.
  35. ``RETRY_COUNT <count>``
  36. Specify how many times to retry a timed-out submission.
  37. ``RETRY_DELAY <delay>``
  38. Specify how long (in seconds) to wait after a timed-out submission
  39. before attempting to re-submit.
  40. ``RETURN_VALUE <result-var>``
  41. Store in the ``<result-var>`` variable ``0`` for success and
  42. non-zero on failure.
  43. ``CAPTURE_CMAKE_ERROR <result-var>``
  44. Store in the ``<result-var>`` variable -1 if there are any errors running
  45. the command and prevent ctest from returning non-zero if an error occurs.
  46. ``QUIET``
  47. Suppress all non-error messages that would have otherwise been
  48. printed to the console.
  49. Submit to CDash Upload API
  50. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. ::
  52. ctest_submit(CDASH_UPLOAD <file> [CDASH_UPLOAD_TYPE <type>]
  53. [HTTPHEADER <header>]
  54. [RETRY_COUNT <count>]
  55. [RETRY_DELAY <delay>]
  56. [RETURN_VALUE <result-var>]
  57. [QUIET])
  58. This second signature is used to upload files to CDash via the CDash
  59. file upload API. The API first sends a request to upload to CDash along
  60. with a content hash of the file. If CDash does not already have the file,
  61. then it is uploaded. Along with the file, a CDash type string is specified
  62. to tell CDash which handler to use to process the data.
  63. This signature accepts the ``HTTPHEADER``, ``RETRY_COUNT``, ``RETRY_DELAY``,
  64. ``RETURN_VALUE`` and ``QUIET`` options as described above.