WSL/SLF GitLab Repository

Commit 20694125 authored by David Zanella's avatar David Zanella
Browse files

- Better installation of ctest doesn't need previous change anymore

- Befor each test run make a distclean
- Corrected Valgrind starting script so that CMake cache is correct initialised
parent e6b4dd6e
......@@ -20,12 +20,12 @@ log_echo "Starting MeteoIO testing"
cd ${MIO_ROOT}
make distclean
ctest -S ${MIO_ROOT}/tests/startScriptCoverage.cmake -V > ${MIO_ROOT}/tests/startScriptCoverage.log 2>&1
/usr/bin/ctest -S ${MIO_ROOT}/tests/startScriptCoverage.cmake -V > ${MIO_ROOT}/tests/startScriptCoverage.log 2>&1
make distclean
ctest -S ${MIO_ROOT}/tests/startScriptNightly.cmake -V > ${MIO_ROOT}/tests/startScriptNightly.log 2>&1
/usr/bin/ctest -S ${MIO_ROOT}/tests/startScriptNightly.cmake -V > ${MIO_ROOT}/tests/startScriptNightly.log 2>&1
make clean
ctest -S ${MIO_ROOT}/tests/startScriptValgrind.cmake -V > ${MIO_ROOT}/tests/startScriptValgrind.log 2>&1
make distclean
/usr/bin/ctest -S ${MIO_ROOT}/tests/startScriptValgrind.cmake -V > ${MIO_ROOT}/tests/startScriptValgrind.log 2>&1
log_echo "MeteoIO testing done!"
......@@ -25,16 +25,9 @@ SET(CTEST_MEMORYCHECK_COMMAND "/usr/bin/valgrind")
#set cMake command to be used
SET(CTEST_CMAKE_COMMAND "\"${CMAKE_EXECUTABLE_NAME}\"")
#also possible to set initial cache values for config to set that the test are build
# BUILD NAME SET HERE DROUG CACHE.. OLD WAY TO OD BUT ONLY WORKING WAY
SET(CTEST_INITIAL_CACHE "
BUILD_TESTING:BOOL=ON
BUILD_TESTING_WITH_COVERAGE:BOOL=OFF
")
ctest_start(Nightly)
ctest_update(SOURCE "${CTEST_SOURCE_DIRECORTY}")
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" )
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS "-DBUILD_TESTING=ON BUILD_TESTING_WITH_COVERAGE=OFF")
ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" )
ctest_memcheck(BUILD "${CTEST_BINARY_DIRECTORY}" )
ctest_submit()
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