Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

feat: propagate CTest ENVIRONMENT to spawned test processes#21

Merged
iamsergio merged 1 commit into
masterfrom
pr/envs
Apr 5, 2026
Merged

feat: propagate CTest ENVIRONMENT to spawned test processes#21
iamsergio merged 1 commit into
masterfrom
pr/envs

Conversation

@iamsergio

Copy link
Copy Markdown
Collaborator
  • Add environment field to CMakeTest and extract ENVIRONMENT from ctest JSON (handles environment and properties shapes).
  • Propagate env into QtTest and merge/pass it to spawn() for -functions, -help and test runs.
  • Set ENVIRONMENT for test1 in CMakeLists.txt.
  • Add assertion in test1.cpp to verify MY_ENV=VALUE.

- Add `environment` field to `CMakeTest` and extract ENVIRONMENT from ctest JSON (handles `environment` and `properties` shapes).
- Propagate env into `QtTest` and merge/pass it to `spawn()` for -functions, -help and test runs.
- Set `ENVIRONMENT` for `test1` in CMakeLists.txt.
- Add assertion in test1.cpp to verify `MY_ENV=VALUE`.
@iamsergio
iamsergio merged commit ea24d96 into master Apr 5, 2026
8 checks passed
@iamsergio
iamsergio deleted the pr/envs branch April 5, 2026 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant