WSL/SLF GitLab Repository

Commit 19910905 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Hoping that the valgrind tests would finally work properly... And small tweak...

Hoping that the valgrind tests would finally work properly... And small tweak to the IOUtils::seek optimization
parent cc0c1710
......@@ -699,8 +699,8 @@ size_t seek(const Date& soughtdate, const std::vector<MeteoData>& vecM, const bo
const double end_date = vecM.back().date.getJulian(true);
const double curr_date = soughtdate.getJulian(true);
const double raw_pos = (curr_date-start_date) / (end_date-start_date) * static_cast<double>(max_idx); //always >=0
const size_t start_idx = (size_t)floor(raw_pos*.8);
const size_t end_idx = MIN( (size_t)ceil(raw_pos*1.2), max_idx);
const size_t start_idx = (size_t)floor(raw_pos*.9);
const size_t end_idx = MIN( (size_t)ceil(raw_pos*1.1), max_idx);
//first and last index of the search interval, either using our initial guess or the full vector
size_t first = (curr_date >= vecM[start_idx].date.getJulian(true))? start_idx : 0;
......
......@@ -5,7 +5,7 @@
# Set Information for build
SET(CTEST_SITE "olmenhorn")
SET(CTEST_BUILD_NAME "Linux_Standart_Valgrind")
SET(CTEST_BUILD_CONFIGURATION "release")
SET(CTEST_BUILD_CONFIGURATION "debug")
# set for the thest source and binary directories
SET(CTEST_SOURCE_DIRECTORY .)
......@@ -19,15 +19,16 @@ set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
#Configure valgrind
SET(CTEST_MEMORYCHECK_COMMAND "/usr/bin/valgrind")
#SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS ) # activate this if would specivie other then default valgrind options
SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--log-file=vlogs --leak-check=full")
#SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE) # to say, what valgrind should not "test" ;-), filter out the false positive errors of valgrind
#set cMake command to be used
SET(CTEST_CMAKE_COMMAND "\"${CMAKE_EXECUTABLE_NAME}\"")
SET(CTEST_BUILD_COMMAND "/usr/bin/make")
ctest_start(Nightly)
ctest_update(SOURCE "${CTEST_SOURCE_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_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