# ctest with cdash submission issue

**URL:** https://discourse.cmake.org/t/ctest-with-cdash-submission-issue/13709
**Category:** Usage
**Created:** [March 10, 2025, 5:47pm UTC](https://discourse.cmake.org/t/ctest-with-cdash-submission-issue/13709 "2025-03-10T17:47:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Fabian188](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fabian188/32/2934_2.png) [@Fabian188](https://discourse.cmake.org/u/Fabian188)
#### Post date: [March 10, 2025, 5:47pm UTC](https://discourse.cmake.org/t/ctest-with-cdash-submission-issue/13709/1 "2025-03-10T17:47:14Z")

</div>

We have software with gitlab CI pipeline.

Up to now we have within the software a git submodule Teststuite with own CMakeLists.txt which is executed for testing via.

```auto
cmake .. -DCFS_INSTALL_DIR=/Users/fwein/code/cfs/release
ctest -D ExperimentalStart --track Gitlab   
ctest -D ExperimentalUpdate --track Gitlab

```

to submit the tests to our cdash instance.

Now we want to replace the git submodule with the direct content, but would like to keep the structure.

But the second cmake command fails:

```auto
ctest -D ExperimentalUpdate --track Gitlab
   Site: MacBookPro.fritz.box
   Build name: Darwin-unknown
   Updating the repository: /Users/fwein/code/no_testsuite/Testsuite
Cannot find UpdateCommand configuration key.
Errors while running CTest

```

The reason is, that Testsuite is no repository any more, but the parent directory is one.

Do you have any hints where I can start digging?

The variables `TESTSUITE_SOURCE_DIR` and `CMAKE_HOME_DIRECTORY` are set, is any of them assumed to be the git repository?

---

<div class="post-metadata">

### Author: ![Fabian188](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fabian188/32/2934_2.png) [@Fabian188](https://discourse.cmake.org/u/Fabian188)
#### Post date: [March 10, 2025, 9:03pm UTC](https://discourse.cmake.org/t/ctest-with-cdash-submission-issue/13709/2 "2025-03-10T21:03:02Z")

</div>

I digged up to  
[https://gitlab.kitware.com/cmake/cmake/-/blob/v3.12.2/Source/CTest/cmCTestUpdateHandler.cxx](https://gitlab.kitware.com/cmake/cmake/-/blob/v3.12.2/Source/CTest/cmCTestUpdateHandler.cxx)

`bool cmCTestUpdateHandler::SelectVCS()`

git is found. I do not understand what is meant by _configuration key_?

---

<div class="post-metadata">

### Author: ![Fabian188](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fabian188/32/2934_2.png) [@Fabian188](https://discourse.cmake.org/u/Fabian188)
#### Post date: [March 10, 2025, 10:21pm UTC](https://discourse.cmake.org/t/ctest-with-cdash-submission-issue/13709/3 "2025-03-10T22:21:41Z")

</div>

By comparing to the running configuration, I found that in DartConfiguration.tcl  
the variables GITCommand, UpdateCommand and UpdateType are not set (to /usr/bin/git, /usr/bin/git, git).

Any hint how I can enforce this information?

Thanks!

---

<div class="post-metadata">

### Author: ![Fabian188](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fabian188/32/2934_2.png) [@Fabian188](https://discourse.cmake.org/u/Fabian188)
#### Post date: [March 11, 2025, 8:08am UTC](https://discourse.cmake.org/t/ctest-with-cdash-submission-issue/13709/4 "2025-03-11T08:08:53Z")

</div>

I guess I found it:  
`set( CTEST_GIT_COMMAND <path to git>)`  
prior  
`inlcude(CTest)`
