Skip to content
Snippets Groups Projects
Commit 344081ee authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[cmake] AddTest() removed wrappers memcheck|callgrind.

parent c68f0784
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# PATH <working directory> # relative to SourceDir/Tests/Data # PATH <working directory> # relative to SourceDir/Tests/Data
# EXECUTABLE <executable target> # optional, defaults to ogs # EXECUTABLE <executable target> # optional, defaults to ogs
# EXECUTABLE_ARGS <arguments> # EXECUTABLE_ARGS <arguments>
# WRAPPER <time|memcheck|callgrind|mpirun> # optional # WRAPPER <time|mpirun> # optional
# WRAPPER_ARGS <arguments> # optional # WRAPPER_ARGS <arguments> # optional
# TESTER <diff|vtkdiff|gmldiff|memcheck> # optional # TESTER <diff|vtkdiff|gmldiff|memcheck> # optional
# TESTER_ARGS <argument> # optional # TESTER_ARGS <argument> # optional
...@@ -164,32 +164,6 @@ function(AddTest) ...@@ -164,32 +164,6 @@ function(AddTest)
) )
set(AddTest_WRAPPER_ARGS "") set(AddTest_WRAPPER_ARGS "")
endif() endif()
elseif(AddTest_WRAPPER STREQUAL "memcheck")
if(VALGRIND_TOOL_PATH)
set(WRAPPER_COMMAND
"${VALGRIND_TOOL_PATH} --tool=memcheck --log-file=${AddTest_SOURCE_PATH}/${AddTest_NAME}_memcheck.txt -v --leak-check=full --show-reachable=yes --track-origins=yes --malloc-fill=0xff --free-fill=0xff"
)
set(tester memcheck)
else()
set(DISABLED_TESTS_LOG
"${DISABLED_TESTS_LOG}\nDisabling memcheck wrapper for ${AddTest_NAME} as memcheck exe was not found!"
CACHE INTERNAL ""
)
set(AddTest_WRAPPER_ARGS "")
endif()
elseif(AddTest_WRAPPER STREQUAL "callgrind")
if(VALGRIND_TOOL_PATH)
set(WRAPPER_COMMAND
"${VALGRIND_TOOL_PATH} --tool=callgrind --branch-sim=yes --cache-sim=yes --dump-instr=yes --collect-jumps=yes"
)
unset(tester)
else()
set(DISABLED_TESTS_LOG
"${DISABLED_TESTS_LOG}\nDisabling callgrind wrapper for ${AddTest_NAME} as callgrind exe was not found!"
CACHE INTERNAL ""
)
set(AddTest_WRAPPER_ARGS "")
endif()
elseif(AddTest_WRAPPER STREQUAL "mpirun") elseif(AddTest_WRAPPER STREQUAL "mpirun")
if(MPIRUN_TOOL_PATH) if(MPIRUN_TOOL_PATH)
if("${HOSTNAME}" MATCHES "frontend.*") if("${HOSTNAME}" MATCHES "frontend.*")
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# PATH <working directory> # relative to SourceDir/Tests/Data # PATH <working directory> # relative to SourceDir/Tests/Data
# EXECUTABLE <executable target> # optional, defaults to ogs # EXECUTABLE <executable target> # optional, defaults to ogs
# EXECUTABLE_ARGS <arguments> # EXECUTABLE_ARGS <arguments>
# WRAPPER <time|memcheck|callgrind|mpirun> # optional # WRAPPER <time|mpirun> # optional
# WRAPPER_ARGS <arguments> # optional # WRAPPER_ARGS <arguments> # optional
# REQUIREMENTS # optional simple boolean expression which has to be true to # REQUIREMENTS # optional simple boolean expression which has to be true to
# enable the test, e.g. # enable the test, e.g.
...@@ -85,32 +85,6 @@ function(MeshTest) ...@@ -85,32 +85,6 @@ function(MeshTest)
) )
set(MeshTest_WRAPPER_ARGS "") set(MeshTest_WRAPPER_ARGS "")
endif() endif()
elseif(MeshTest_WRAPPER STREQUAL "memcheck")
if(VALGRIND_TOOL_PATH)
set(WRAPPER_COMMAND
"${VALGRIND_TOOL_PATH} --tool=memcheck --log-file=${MeshTest_SOURCE_PATH}/${MeshTest_NAME}_memcheck.log -v --leak-check=full --show-reachable=yes --track-origins=yes --malloc-fill=0xff --free-fill=0xff"
)
set(tester memcheck)
else()
set(DISABLED_TESTS_LOG
"${DISABLED_TESTS_LOG}\nDisabling memcheck wrapper for ${MeshTest_NAME} as memcheck exe was not found!"
CACHE INTERNAL ""
)
set(MeshTest_WRAPPER_ARGS "")
endif()
elseif(MeshTest_WRAPPER STREQUAL "callgrind")
if(VALGRIND_TOOL_PATH)
set(WRAPPER_COMMAND
"${VALGRIND_TOOL_PATH} --tool=callgrind --branch-sim=yes --cache-sim=yes --dump-instr=yes --collect-jumps=yes"
)
unset(tester)
else()
set(DISABLED_TESTS_LOG
"${DISABLED_TESTS_LOG}\nDisabling callgrind wrapper for ${MeshTest_NAME} as callgrind exe was not found!"
CACHE INTERNAL ""
)
set(MeshTest_WRAPPER_ARGS "")
endif()
elseif(MeshTest_WRAPPER STREQUAL "mpirun") elseif(MeshTest_WRAPPER STREQUAL "mpirun")
if(MPIRUN_TOOL_PATH) if(MPIRUN_TOOL_PATH)
set(WRAPPER_COMMAND ${MPIRUN_TOOL_PATH}) set(WRAPPER_COMMAND ${MPIRUN_TOOL_PATH})
......
...@@ -3,7 +3,6 @@ find_program(DIFF_TOOL_PATH diff) ...@@ -3,7 +3,6 @@ find_program(DIFF_TOOL_PATH diff)
find_program(TIME_TOOL_PATH time) find_program(TIME_TOOL_PATH time)
find_program(GREP_TOOL_PATH grep) find_program(GREP_TOOL_PATH grep)
find_program(BASH_TOOL_PATH bash) find_program(BASH_TOOL_PATH bash)
find_program(VALGRIND_TOOL_PATH valgrind)
find_program(MPIRUN_TOOL_PATH mpirun) find_program(MPIRUN_TOOL_PATH mpirun)
if(NOT TIME_TOOL_PATH) if(NOT TIME_TOOL_PATH)
...@@ -12,18 +11,6 @@ if(NOT TIME_TOOL_PATH) ...@@ -12,18 +11,6 @@ if(NOT TIME_TOOL_PATH)
"time-command is required for time wrapper but was not found! All corresponding tests are disabled." "time-command is required for time wrapper but was not found! All corresponding tests are disabled."
) )
endif() endif()
if(NOT VALGRIND_TOOL_PATH)
message(
STATUS
"Valgrind is required for memcheck wrapper but was not found! All corresponding tests are disabled."
)
endif()
if(NOT VALGRIND_TOOL_PATH)
message(
STATUS
"Valgrind is required for callgrind wrapper but was not found! All corresponding tests are disabled."
)
endif()
if(NOT MPIRUN_TOOL_PATH) if(NOT MPIRUN_TOOL_PATH)
message( message(
STATUS STATUS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment