[CMake] CTest build/configure not appending

David Cole david.cole at kitware.com
Mon Jan 23 14:05:07 EST 2012


On Mon, Jan 23, 2012 at 12:45 PM, Tim Gallagher
<tim.gallagher at gatech.edu> wrote:
> Hi,
>
> I have a CTest script that builds many different tests and sets it to APPEND by doing:
>
> foreach(TESTCASE ${LESLIE_AVAILABLE_TESTCASES})
>  set(CTEST_CONFIGURE_COMMAND "./setup.py -t ${TESTCASE} '{${LESLIE_CONFIGURE_DICT_BASE}}'")
>  ctest_configure(BUILD "${CTEST_REPO_DIRECTORY}" APPEND)
>  set(CTEST_BUILD_COMMAND "./setup.py -t ${TESTCASE} '{${LESLIE_BUILD_DICT_BASE}}'")
>  ctest_build(BUILD "${CTEST_REPO_DIRECTORY}" APPEND)
> endforeach()
>
> But, when I look in the configure.xml and build.xml, or check the dashboard, it only has the final test case information. It doesn't have the 96 previous ones.
>
> Does append not do what I think it should do?
>
> Tim
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


APPEND does not do what you think it should do. It sets a flag in the
generated xml file to tell CDash to append it to the existing results
when submitted. It does not append to an existing xml file.

Each call to ctest_configure generates a Configure.xml file, each
ctest_build a Build.xml file. You must call something like:

  ctest_submit(PARTS Configure Build)

before the endforeach so that ctest can submit the xml files it has
each time through the loop.


HTH,
David


More information about the CMake mailing list