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

Created a local version of the parallel unit test makefile.

It allows running the unit tests in a build environement with:
make -C CTA-build/tests/ -f parallelTestsMakefile.local
parent 3ecf73e9
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,7 @@ install(TARGETS systemTestHelperTests DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
configure_file(cta-valgrindUnitTests.sh.in ${CMAKE_CURRENT_BINARY_DIR}/cta-valgrindUnitTests.sh)
configure_file(parallelTestsMakefile.in ${CMAKE_CURRENT_BINARY_DIR}/parallelTestsMakefile)
configure_file(parallelTestsMakefile.local.in ${CMAKE_CURRENT_BINARY_DIR}/parallelTestsMakefile.local)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cta-valgrindUnitTests.sh cta-unitPlusSystemTests.sh DESTINATION usr/bin)
install(FILES valgrind.suppr helgrind.suppr ${CMAKE_CURRENT_BINARY_DIR}/parallelTestsMakefile DESTINATION usr/share/cta-${CTA_VERSION}/unittest/)
.phony: all
all: valgrind valgrindMultiprocess helgrindBase helgrindScheduler helgrindOStoreDB helgrindDataTransfer helgrindInMemoryCatalogue helgrindMultiprocess
valgrind: valgrindMultiprocess helgrindMultiprocess
valgrind -q @VALGRIND_OPTS_STR@ \
--suppressions=@CMAKE_CURRENT_BINARY_DIR@/valgrind.suppr \
@CMAKE_CURRENT_BINARY_DIR@/cta-unitTests | ts "vg: %b %d %H:%M:%S"
valgrindMultiprocess:
valgrind -q @VALGRIND_OPTS_STR@ --child-silent-after-fork=yes \
--suppressions=@CMAKE_CURRENT_BINARY_DIR@/valgrind.suppr \
@CMAKE_CURRENT_BINARY_DIR@/cta-unitTests-multiProcess | ts "vgmp: %b %d %H:%M:%S"
helgrindBase: valgrindMultiprocess helgrindMultiprocess
valgrind -q --tool=helgrind @HELGRIND_OPTS_STR@ \
--suppressions=@CMAKE_CURRENT_BINARY_DIR@/helgrind.suppr \
@CMAKE_CURRENT_BINARY_DIR@/cta-unitTests \
--gtest_filter=-OStoreDBPlusMockSchedulerTestVFS*:OStoreTestVFS*:OStoreDBPlusMockSchedulerTestVFS*:InMemory* \
| ts "hgb: %b %d %H:%M:%S"
helgrindScheduler: valgrindMultiprocess helgrindMultiprocess
valgrind -q --tool=helgrind @HELGRIND_OPTS_STR@ \
--suppressions=@CMAKE_CURRENT_BINARY_DIR@/helgrind.suppr \
@CMAKE_CURRENT_BINARY_DIR@/cta-unitTests \
--gtest_filter=OStoreDBPlusMockSchedulerTestVFS/Scheduler* | ts "hgs: %b %d %H:%M:%S"
helgrindOStoreDB: valgrindMultiprocess helgrindMultiprocess
valgrind -q --tool=helgrind @HELGRIND_OPTS_STR@ \
--suppressions=@CMAKE_CURRENT_BINARY_DIR@/helgrind.suppr \
@CMAKE_CURRENT_BINARY_DIR@/cta-unitTests \
--gtest_filter=OStoreTestVFS* | ts "hgosdb: %b %d %H:%M:%S"
helgrindDataTransfer: valgrindMultiprocess helgrindMultiprocess
valgrind -q --tool=helgrind @HELGRIND_OPTS_STR@ \
--suppressions=@CMAKE_CURRENT_BINARY_DIR@/helgrind.suppr \
@CMAKE_CURRENT_BINARY_DIR@/cta-unitTests \
--gtest_filter=OStoreDBPlusMockSchedulerTestVFS/DataTransferSessionTest* | ts "hgdt: %b %d %H:%M:%S"
helgrindInMemoryCatalogue: valgrindMultiprocess helgrindMultiprocess
valgrind -q --tool=helgrind @HELGRIND_OPTS_STR@ \
--suppressions=@CMAKE_CURRENT_BINARY_DIR@/helgrind.suppr \
@CMAKE_CURRENT_BINARY_DIR@/cta-unitTests \
--gtest_filter=InMemory/* | ts "hgimc: %b %d %H:%M:%S"
helgrindMultiprocess: valgrindMultiprocess
valgrind -q --tool=helgrind @HELGRIND_OPTS_STR@ \
--suppressions=@CMAKE_CURRENT_BINARY_DIR@/helgrind.suppr \
@CMAKE_CURRENT_BINARY_DIR@/cta-unitTests-multiProcess | ts "hgmp: %b %d %H:%M:%S"
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