Commit 6a9d13a3 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ENH: Add testing of symlinks too

parent f30b28a3
......@@ -4,7 +4,7 @@ PROJECT(TestTar)
MACRO(EXEC_TAR_COMMAND DIR ARGS)
EXEC_PROGRAM("${CMAKE_COMMAND}" "${DIR}" ARGS "-E tar ${ARGS}" RETURN_VALUE RET)
IF(${RET})
MESSAGE(FATAL_ERROR "CMake command \"${COMMAND}\" failed with arguments \"${ARGS}\"")
MESSAGE(FATAL_ERROR "CMake tar command failed with arguments \"${ARGS}\"")
ENDIF(${RET})
ENDMACRO(EXEC_TAR_COMMAND)
......@@ -23,8 +23,8 @@ COPY("CMakeLists.txt" "d-4/f1.txt")
COPY("CMakeLists.txt" "My Special Directory/f1.txt")
IF(UNIX)
#EXEC_PROGRAM("ln" ARGS "-s \"${CMAKE_CURRENT_SOURCE_DIR}/tar_dir/d1/f1.txt\" \"${CMAKE_CURRENT_BINARY_DIR}/tar_dir/d1/f2.txt\"")
#SET(CHECK_FILES ${CHECK_FILES} "d1/f2.txt")
EXEC_PROGRAM("ln" ARGS "-s \"${CMAKE_CURRENT_BINARY_DIR}/tar_dir/d1/f1.txt\" \"${CMAKE_CURRENT_BINARY_DIR}/tar_dir/d1/f2.txt\"")
SET(CHECK_FILES ${CHECK_FILES} "d1/f2.txt")
ENDIF(UNIX)
MAKE_DIRECTORY("${CMAKE_CURRENT_BINARY_DIR}/test_output_tar")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment