mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Add git SHA to information reported in SystemInformation test
This commit is contained in:
parent
7ece9b501b
commit
3410c877cb
@ -25,7 +25,7 @@
|
||||
#
|
||||
# This script is called with a command like:
|
||||
#
|
||||
# cmake -D VTKm_BINARY_DIR=<top-of-build-tree> -P <this-script>
|
||||
# cmake -D VTKm_BINARY_DIR=<top-of-build-tree> -D VTKm_SOURCE_DIR=<top-of-source-tree> -P <this-script>
|
||||
#
|
||||
|
||||
set(FILES
|
||||
@ -50,8 +50,21 @@ Contents of \"${filename}\":
|
||||
endif()
|
||||
endfunction(print_file)
|
||||
|
||||
|
||||
message("CTEST_FULL_OUTPUT (Avoid ctest truncation of output)")
|
||||
|
||||
execute_process(
|
||||
COMMAND git rev-parse -q HEAD
|
||||
WORKING_DIRECTORY "${VTKm_SOURCE_DIR}"
|
||||
OUTPUT_VARIABLE GIT_SHA
|
||||
)
|
||||
|
||||
message("
|
||||
|
||||
==============================================================================
|
||||
|
||||
git SHA: ${GIT_SHA}")
|
||||
|
||||
foreach(filename ${FILES})
|
||||
print_file(${filename})
|
||||
endforeach()
|
||||
|
@ -113,7 +113,7 @@ if (VTKm_ENABLE_TESTING)
|
||||
COMMAND ${CMAKE_COMMAND} "-DVTKm_SOURCE_DIR=${VTKm_SOURCE_DIR}" -P "${VTKm_SOURCE_DIR}/CMake/VTKmCheckCopyright.cmake"
|
||||
)
|
||||
add_test(NAME SystemInformation
|
||||
COMMAND ${CMAKE_COMMAND} "-DVTKm_BINARY_DIR=${VTKm_BINARY_DIR}" -P "${VTKm_SOURCE_DIR}/CMake/VTKmSystemInformation.cmake"
|
||||
COMMAND ${CMAKE_COMMAND} "-DVTKm_SOURCE_DIR=${VTKm_SOURCE_DIR}" "-DVTKm_BINARY_DIR=${VTKm_BINARY_DIR}" -P "${VTKm_SOURCE_DIR}/CMake/VTKmSystemInformation.cmake"
|
||||
)
|
||||
endif (VTKm_ENABLE_TESTING)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user