ctest_submit.rst 3.1 KB

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