ctest_submit.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. Done = Build is complete, in Done.xml
  30. ``FILES <file>...``
  31. Specify an explicit list of specific files to be submitted.
  32. Each individual file must exist at the time of the call.
  33. ``HTTPHEADER <HTTP-header>``
  34. Specify HTTP header to be included in the request to CDash during submission.
  35. This suboption can be repeated several times.
  36. ``RETRY_COUNT <count>``
  37. Specify how many times to retry a timed-out submission.
  38. ``RETRY_DELAY <delay>``
  39. Specify how long (in seconds) to wait after a timed-out submission
  40. before attempting to re-submit.
  41. ``RETURN_VALUE <result-var>``
  42. Store in the ``<result-var>`` variable ``0`` for success and
  43. non-zero on failure.
  44. ``CAPTURE_CMAKE_ERROR <result-var>``
  45. Store in the ``<result-var>`` variable -1 if there are any errors running
  46. the command and prevent ctest from returning non-zero if an error occurs.
  47. ``QUIET``
  48. Suppress all non-error messages that would have otherwise been
  49. printed to the console.
  50. Submit to CDash Upload API
  51. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  52. ::
  53. ctest_submit(CDASH_UPLOAD <file> [CDASH_UPLOAD_TYPE <type>]
  54. [HTTPHEADER <header>]
  55. [RETRY_COUNT <count>]
  56. [RETRY_DELAY <delay>]
  57. [RETURN_VALUE <result-var>]
  58. [QUIET])
  59. This second signature is used to upload files to CDash via the CDash
  60. file upload API. The API first sends a request to upload to CDash along
  61. with a content hash of the file. If CDash does not already have the file,
  62. then it is uploaded. Along with the file, a CDash type string is specified
  63. to tell CDash which handler to use to process the data.
  64. This signature accepts the ``HTTPHEADER``, ``RETRY_COUNT``, ``RETRY_DELAY``,
  65. ``RETURN_VALUE`` and ``QUIET`` options as described above.