Skip to content
Snippets Groups Projects
Commit 85ce09da authored by Eric Cano's avatar Eric Cano
Browse files

Re-used the CMake valgrind options in the test scripts as well.

The same variable is now used in all cases.
parent cf53b705
Branches
Tags
No related merge requests found
......@@ -146,7 +146,6 @@ ELSE(DEFINED PackageOnly)
add_subdirectory(rdbms)
add_subdirectory(scheduler)
add_subdirectory(tapeserver)
add_subdirectory(tests)
#Generate version information
configure_file(${PROJECT_SOURCE_DIR}/version.hpp.in
......@@ -178,8 +177,16 @@ endif (${COMPILE_PACKAGING} STREQUAL "1")
configure_file(tests/valgrind.suppr tests/valgrind.suppr COPYONLY)
configure_file(tests/helgrind.suppr tests/helgrind.suppr COPYONLY)
set(VALGRIND valgrind)
set(VALGRIND_OPTS --track-fds=yes --leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes --error-exitcode=1 --suppressions=tests/valgrind.suppr)
set(HELGRIND_OPTS -v --demangle=yes --gen-suppressions=all --num-callers=25 --conflict-cache-size=30000000 --error-exitcode=1 --suppressions=tests/helgrind.suppr --sim-hints=no-nptl-pthread-stackcache)
set(VALGRIND_OPTS "--track-fds=yes --leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes --error-exitcode=1")
set(VALGRIND_OPTS_W_SUPPR ${VALGRIND_OPTS} --suppressions=tests/valgrind.suppr)
set(HELGRIND_OPTS "-v --demangle=yes --gen-suppressions=all --num-callers=25 --conflict-cache-size=30000000 --error-exitcode=1 --sim-hints=no-nptl-pthread-stackcache")
set(HELGRIND_OPTS_W_SUPPR ${HELGRIND_OPTS} --suppressions=tests/helgrind.suppr)
IF(NOT DEFINED PackageOnly)
add_subdirectory(tests)
ENDIF(NOT DEFINED PackageOnly)
add_custom_target(fullunittests
tests/cta-unitTests
COMMAND tests/cta-unitTests-multiProcess
......
......@@ -5,18 +5,16 @@ set -e
/usr/bin/cta-unitTests-multiProcess
valgrind --track-fds=yes --leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes \
--error-exitcode=1 --suppressions=/usr/share/cta-@CTA_VERSION@/unittest/valgrind.suppr \
valgrind @VALGRIND_OPTS@ --suppressions=/usr/share/cta-@CTA_VERSION@/unittest/valgrind.suppr \
/usr/bin/cta-unitTests
valgrind --tool=helgrind -v --demangle=yes --gen-suppressions=all --conflict-cache-size=10000000 \
--error-exitcode=1 --suppressions=/usr/share/cta-@CTA_VERSION@/unittest/helgrind.suppr \
valgrind --tool=helgrind @HELGRIND_OPTS@ \
--suppressions=/usr/share/cta-@CTA_VERSION@/unittest/helgrind.suppr \
/usr/bin/cta-unitTests
valgrind --track-fds=yes --leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes \
--error-exitcode=1 --suppressions=/usr/share/cta-@CTA_VERSION@/unittest/valgrind.suppr \
valgrind @VALGRIND_OPTS@ --suppressions=/usr/share/cta-@CTA_VERSION@/unittest/valgrind.suppr \
--child-silent-after-fork=yes /usr/bin/cta-unitTests-multiProcess
valgrind --tool=helgrind -v --demangle=yes --gen-suppressions=all --conflict-cache-size=10000000 \
--error-exitcode=1 --suppressions=/usr/share/cta-@CTA_VERSION@/unittest/helgrind.suppr \
valgrind --tool=helgrind @HELGRIND_OPTS@ \
--suppressions=/usr/share/cta-@CTA_VERSION@/unittest/helgrind.suppr \
/usr/bin/cta-unitTests-multiProcess
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment