Skip to content
Snippets Groups Projects
Commit 28e8b994 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

do not run memory tests if valgrind not found

parent aa2399af
No related branches found
No related tags found
No related merge requests found
......@@ -140,8 +140,10 @@ function(add_script_test testname exename)
separate_arguments(memargs)
add_test(NAME test-${testname} COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/check_linux.sh
${args})
if (MEMORYCHECK_COMMAND)
add_test(NAME memtest-${testname} COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/check_linux.sh
${memargs})
endif()
ENDIF()
set_tests_properties(test-${testname} PROPERTIES
LABELS "example;all"
......
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