Commit 21c756e8 authored by Eric Cano's avatar Eric Cano
Browse files

Added a supression file for the unit tests.

parent 8457fd02
......@@ -412,13 +412,14 @@ endif (${COMPILE_PACKAGING} STREQUAL "1")
#add_custom_target(test test/castorUnitTests
# COMMENT "Not running the unit tests" VERBATIM)
configure_file(test/castorThreadedUnitTests.supp test/castorThreadedUnitTests.supp COPYONLY)
add_custom_target(test test/castorUnitTests
COMMAND valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 test/castorUnitTests
COMMAND test/castorThreadedUnitTests
COMMAND valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 test/castorThreadedUnitTests
COMMAND valgrind --tool=helgrind --error-exitcode=1 test/castorThreadedUnitTests
COMMAND valgrind --tool=helgrind --error-exitcode=1 --suppressions=test/castorThreadedUnitTests.supp test/castorThreadedUnitTests
COMMAND test/castorMultiprocessUnitTests
COMMAND valgrind --tool=helgrind --error-exitcode=1 test/castorMultiprocessUnitTests
DEPENDS test/castorUnitTests test/castorThreadedUnitTests test/castorMultiprocessUnitTests
DEPENDS test/castorUnitTests test/castorThreadedUnitTests test/castorMultiprocessUnitTests test/castorThreadedUnitTests.supp
COMMENT "Running unit tests" VERBATIM)
# castor unit tests suppression list
#
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment