diff options
author | Brad King <brad.king@kitware.com> | 2021-11-01 13:07:39 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-11-01 13:08:11 (GMT) |
commit | 4c68a0e71a9fcc2d836173b253c4abea36cb68b5 (patch) | |
tree | 0fc2dfed71e8c40c4598b71ea3537feb27f4161a /Tests/CMakeLists.txt | |
parent | 562ee8a50bf291300007ad8d14fdc977ef3a3371 (diff) | |
parent | 9c4d6404eb4ac0016d2d107d8c24c8097d4e2359 (diff) | |
download | CMake-4c68a0e71a9fcc2d836173b253c4abea36cb68b5.zip CMake-4c68a0e71a9fcc2d836173b253c4abea36cb68b5.tar.gz CMake-4c68a0e71a9fcc2d836173b253c4abea36cb68b5.tar.bz2 |
Merge topic 'envmod-test-modifying-existing'
9c4d6404eb Tests/Environment: also test modifying ambient values
7d52d48a32 cmCTestRunTest: get the default value from the environment
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6682
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 7a8e362..d2cfa3f 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1380,6 +1380,13 @@ if(BUILD_TESTING) --test-command ${CMAKE_CTEST_COMMAND} -V ) list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Environment") + set_property(TEST Environment APPEND + PROPERTY ENVIRONMENT + "SET_FROM_AMBIENT_unset=base" + "SET_FROM_AMBIENT_replace=base" + "SET_FROM_AMBIENT_string=base" + "SET_FROM_AMBIENT_path=base" + "SET_FROM_AMBIENT_list=base") add_test(QtAutomocNoQt ${CMAKE_CTEST_COMMAND} --build-and-test |