ENH: Added code to remove any bad installations of CVS directories before running the test so that one failure does not need manual adjustment to get it to pass again.

This commit is contained in:
Brad King 2006-08-24 09:47:52 -04:00
parent 1fec884bcb
commit 93163cc1f9
2 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,8 @@ ELSE(STAGE2)
)
# Test directory installation.
FILE(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS")
FILE(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS")
INSTALL(
DIRECTORY TestSubDir scripts/ DESTINATION MyTest/share
PATTERN "CVS" EXCLUDE

View File

@ -166,6 +166,8 @@ ELSE(STAGE2)
)
# Test directory installation.
FILE(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS")
FILE(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS")
INSTALL(
DIRECTORY TestSubDir scripts/ DESTINATION MyTest/share
PATTERN "CVS" EXCLUDE