Alpine3D

Alpine3D Svn Source Tree

Root/trunk/tests/startScriptValgrind.cmake

1# simple Script that makes Nigthly build with cTest and publie it on CDash with valgrind informations.
2# This script need to be started be cron. The command for the cron is [see next section]:
3# "ctest -S startScriptValgrind.cmake"
4
5# Set Information for build
6SET(CTEST_SITE "srv7")
7SET(CTEST_BUILD_NAME "Linux_Standart_Valgrind")
8SET(CTEST_BUILD_CONFIGURATION "release")
9
10# set for the thest source and binary directories
11SET(CTEST_SOURCE_DIRECTORY .)
12SET(CTEST_BINARY_DIRECTORY .)
13
14# set SVN command
15SET(CTEST_SVN_COMMAND /usr/bin/svn)
16
17# set Generator
18set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
19
20#Configure valgrind
21SET(CTEST_MEMORYCHECK_COMMAND "/usr/bin/valgrind")
22#SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-reachable=yes --error-limit=no --gen-suppressions=all --log-file=suppressions.log")
23SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-reachable=yes --error-limit=no")
24SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "${CMAKE_A3D_ROOT}/tests/bash_suppressions.txt")
25
26#set cMake command to be used
27SET(CTEST_CMAKE_COMMAND "\"${CMAKE_EXECUTABLE_NAME}\"")
28
29# run tests
30ctest_start(Nightly)
31ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}")
32ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS "-DBUILD_TESTING=ON BUILD_TESTING_WITH_COVERAGE=OFF")
33ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" )
34ctest_memcheck(BUILD "${CTEST_BINARY_DIRECTORY}" INCLUDE "simple")
35ctest_submit()

Archive Download this file

Revision: HEAD