Integrating CDash submission into a normal CI

Frédéric Simonis
Tue, 31 Mar 2026 12:33:00 +0000
Usage

Hi, I’m having trouble integrating CDash into my project’s CI and haven’t found any good answers, so I’m asking here.

I manage a pretty standard CI that configures, builds, and tests a CMake project for a range of configurations. This project handles the entire test setup as part of the CMakeLists.txt, there is no CTestConfig in the root folder.

How do I:

1. specify the site name and build name using the command line or environment variables?

2. execute configuration, build, and tests as individual steps in the CI. I want to see quickly at which stage the CI fails. This rules out running everything as a single script.

3. use CDash without a CTestConfig in the root?

Thanks a lot!

9 posts - 3 participants