summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-22 17:26:00 (GMT)
committerBrad King <brad.king@kitware.com>2021-03-22 17:26:29 (GMT)
commit8dd8d6366576c09a44dc19d6609209ff74cd0dde (patch)
tree621afc648c7702862ccc50bcbc65c5a3a1cb15e4
parent6d4cbf7416f8ab4d001ca08ca4e108615ea5dfb1 (diff)
downloadCMake-8dd8d6366576c09a44dc19d6609209ff74cd0dde.zip
CMake-8dd8d6366576c09a44dc19d6609209ff74cd0dde.tar.gz
CMake-8dd8d6366576c09a44dc19d6609209ff74cd0dde.tar.bz2
Tests: Add RunCMake hook to describe test variants
-rw-r--r--Tests/RunCMake/RunCMake.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake
index 5e2f647..3ea4ae5 100644
--- a/Tests/RunCMake/RunCMake.cmake
+++ b/Tests/RunCMake/RunCMake.cmake
@@ -193,7 +193,7 @@ function(run_cmake test)
if(msg)
string(REGEX REPLACE "\n" "\n actual-out> " actual_out " actual-out> ${actual_stdout}")
string(REGEX REPLACE "\n" "\n actual-err> " actual_err " actual-err> ${actual_stderr}")
- message(SEND_ERROR "${test} - FAILED:\n"
+ message(SEND_ERROR "${test}${RunCMake_TEST_VARIANT_DESCRIPTION} - FAILED:\n"
"${msg}"
"${expect_out}"
"Actual stdout:\n${actual_out}\n"
@@ -201,7 +201,7 @@ function(run_cmake test)
"Actual stderr:\n${actual_err}\n"
)
else()
- message(STATUS "${test} - PASSED")
+ message(STATUS "${test}${RunCMake_TEST_VARIANT_DESCRIPTION} - PASSED")
endif()
endfunction()