ENH: Added check for bad installation of a CVS directory to test.

This commit is contained in:
Brad King 2006-08-21 17:52:34 -04:00
parent c99dcc30be
commit a2b89129de
2 changed files with 12 additions and 0 deletions

View File

@ -89,6 +89,12 @@ IF(STAGE2)
IF(NOT EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/TSD.h")
MESSAGE(FATAL_ERROR "Directory installation did not install TSD.h")
ENDIF(NOT EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/TSD.h")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS")
MESSAGE(FATAL_ERROR "Directory installation installed CVS directory.")
ENDIF(EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS")
MESSAGE(FATAL_ERROR "Directory installation installed CVS directory.")
ENDIF(EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS")
EXECUTE_PROCESS(
COMMAND "${CMAKE_INSTALL_PREFIX}/MyTest/share/sample_script${BAT}"
RESULT_VARIABLE SAMPLE_SCRIPT_RESULT

View File

@ -89,6 +89,12 @@ IF(STAGE2)
IF(NOT EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/TSD.h")
MESSAGE(FATAL_ERROR "Directory installation did not install TSD.h")
ENDIF(NOT EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/TSD.h")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS")
MESSAGE(FATAL_ERROR "Directory installation installed CVS directory.")
ENDIF(EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS")
MESSAGE(FATAL_ERROR "Directory installation installed CVS directory.")
ENDIF(EXISTS "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS")
EXECUTE_PROCESS(
COMMAND "${CMAKE_INSTALL_PREFIX}/MyTest/share/sample_script${BAT}"
RESULT_VARIABLE SAMPLE_SCRIPT_RESULT