CTest: appending to existing TAG from commandline
This is a feature request to hook the APPEND
option from the various ctest_start()
, ctest_update()
, etc. functions into the ctest commandline.
Basically, I want to do the equivalent of this CTest script
ctest_start()
ctest_update(... APPEND)
ctest_configure(... APPEND)
...
on the commandline, e.g.
#!/bin/bash
ctest -D ExperimentalStart
ctest -D ExperimentalUpdate
ctest -D ExperimentalConfigure
...
The problem is that when running on the commandline, if the day boundary is crossed, then a new TAG will be created, and the later stages will no longer be associated with the original TAG, and the build will not be correctly submitted to CDash.
I realize that all the stages can be combined into a single call (e.g. ctest -D Experimental
), which I believe would correctly use the same TAG throughout based on my perusal of the code, but it's reasonable to expect that users will sometimes need to perform custom operations between stages.
In the documentation, the commandline syntax is given as
ctest {-D <dashboard> | -M <model> -T <action> | -S <script> | -SP <script>}
[-- <dashboard-options>...]
While I don't see any specific description of <dashboard-options>
, I was hoping the following would work
ctest -D ExperimentalUpdate -- APPEND
but it seems that this is not how the <dashboard-options>
commandline argument works.
Even if such a request was implemented, would this work for the submit stage, which does not have a (documented) APPEND
option for ctest_submit
? Is there perhaps something I'm missing here, because otherwise I don't see how people are currently handling multiple-day builds or resubmitting a build that is a day or more old.
Thank you for your time!