0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/cmake/CTestCustom.cmake
Tom Hughes 6a594fed96 cmake: set pre and post memcheck commands.
We need to clear out and re-create the tmp directory when running
valgrind just like for the normal test run.
2011-02-18 10:44:36 -08:00

5 lines
245 B
CMake

set(CTEST_CUSTOM_PRE_TEST "sh -c \"rm -rf ../test/tmp && mkdir ../test/tmp\"")
set(CTEST_CUSTOM_POST_TEST ${CTEST_CUSTOM_PRE_TEST})
set(CTEST_CUSTOM_PRE_MEMCHECK ${CTEST_CUSTOM_PRE_TEST})
set(CTEST_CUSTOM_POST_MEMCHECK ${CTEST_CUSTOM_PRE_TEST})