PARQUET-564: Add cmake option to run valgrind on each unit test executable#79
PARQUET-564: Add cmake option to run valgrind on each unit test executable#79wesm wants to merge 3 commits intoapache:masterfrom
Conversation
CMakeLists.txt
Outdated
| add_test(${TEST_NAME} | ||
| ${BUILD_SUPPORT_DIR}/run-test.sh ${TEST_PATH}) | ||
| if (PARQUET_TEST_MEMCHECK) | ||
| SET_TARGET_PROPERTIES(${TEST_NAME} |
There was a problem hiding this comment.
This does not work on Linux as it will override all previously set target properties and thus compiling will fail due to the wrong tr1/tuple handling. The following line worked for me and seems to be the common way to append to target properties (note the explicit space between " and -D):
SET_PROPERTY(TARGET ${TEST_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS " -DPARQUET_VALGRIND")
There was a problem hiding this comment.
Cool, thank you, will remember this for the future
|
@xhochy can you take a look and let me know if this looks good? I tried using |
|
Looking good! |
|
thank you. |
This also enables the current test suite to pass cleanly under
ctestwith this option enabled.