cmake: set pre and post memcheck commands.
authorTom Hughes <tom.hughes@palm.com>
Fri, 24 Dec 2010 01:14:08 +0000 (19:14 -0600)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 18 Feb 2011 18:44:36 +0000 (10:44 -0800)
We need to clear out and re-create the tmp directory when running
valgrind just like for the normal test run.

cmake/CTestCustom.cmake

index 65af325..fcb09e4 100644 (file)
@@ -1,2 +1,4 @@
 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})