<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 22, 2011, at 7:25 PM, David Cole wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Tue, Feb 22, 2011 at 6:12 PM, Eric Noulard <<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>> wrote:<br><blockquote type="cite">Hi All,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Some of my commit break some CPackComponent tests:<br></blockquote><blockquote type="cite"><a href="http://www.cdash.org/CDash/testDetails.php?test=84851095&build=874639">http://www.cdash.org/CDash/testDetails.php?test=84851095&build=874639</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Those test are OK locallly on my host.<br></blockquote><blockquote type="cite">I think it fails because the test directory wasn't cleaned before<br></blockquote><blockquote type="cite">re-running the test.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">How do I ensure that a test directory is cleaned before running a test?<br></blockquote><br>You do not. On Continuous dashboards, the directories are not cleaned<br>before running the tests. Why does it need to be cleaned?<br><br>On all of the nightly ones, the vast majority should be clean build/test cycles.<br><font class="Apple-style-span" color="#006312"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><br></div>I've having problems with these tests too.<div>If they fail once, they will keep failing until some files generated by the failed test are cleaned up.</div><div><br></div><div>Seems to me that an extra cleanup step should be done before or during the </div><div>"ctest --build-and-test ...." for these tests that glob for generated files.</div><div><br></div><div>Could you do this with a ctest script that cleans the test specific build directory before doing the configure/build/test?  And call that ctest script in the add_test() call?</div><div><br></div><div>I'm not sure if this is a good idea, but what if the glob was done under the _CPack_Packages directory which cpack always cleans beforehand.<br><div><br></div><div>Clint</div></div><div><br></div></body></html>