From 760b76d12ffda7e32a1634ea0e7a89ffa5757400 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 20 Sep 2013 20:21:21 +0000 Subject: [PATCH] Append more useful information to the build name: Replace the obvious "x86_64-Linux" by the config file name git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30873 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/run_testsuite.cmake | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/run_testsuite.cmake b/tests/run_testsuite.cmake index 9f8eaf96e2..1df1f8646a 100644 --- a/tests/run_testsuite.cmake +++ b/tests/run_testsuite.cmake @@ -232,14 +232,7 @@ ENDFOREACH() # CTEST_BUILD_NAME: # -SET(CTEST_BUILD_NAME - "${CMAKE_SYSTEM_PROCESSOR}-${CMAKE_SYSTEM_NAME}" - ) - -# # Append compiler information to CTEST_BUILD_NAME: -# - IF(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/detailed.log) # Apparently, ${CTEST_BINARY_DIRECTORY} is not a configured build # directory. In this case we need a trick: set up a dummy project and @@ -289,6 +282,15 @@ IF(${_result} EQUAL 0) SET(CTEST_BUILD_NAME "${CTEST_BUILD_NAME}-${_branch}-r${_svn_WC_REVISION}") ENDIF() +# +# Append config file name to CTEST_BUILD_NAME: +# + +IF(NOT "${CONFIG_FILE}" STREQUAL "") + GET_FILENAME_COMPONENT(_conf ${CONFIG_FILE} NAME_WE) + SET(CTEST_BUILD_NAME "${CTEST_BUILD_NAME}-${conf}") +ENDIF() + MESSAGE("-- CTEST_BUILD_NAME: ${CTEST_BUILD_NAME}") # -- 2.39.5