summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-01 11:00:34 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-01 11:00:42 (GMT)
commit0ca6bb85755c5db38c5b6a9d6b6e19f85e51a3c5 (patch)
tree56e33f8055cef66ffde63925bd0ea0f4c1f8cdff /Tests/RunCMake
parent208b8a81ce3b61188214819090278e1b3437d609 (diff)
parentbbcff21f716f25649d744553b9085c8e6c0c1a35 (diff)
downloadCMake-0ca6bb85755c5db38c5b6a9d6b6e19f85e51a3c5.zip
CMake-0ca6bb85755c5db38c5b6a9d6b6e19f85e51a3c5.tar.gz
CMake-0ca6bb85755c5db38c5b6a9d6b6e19f85e51a3c5.tar.bz2
Merge topic 'file-ARCHIVE-files-dirs' into release-3.18
bbcff21f71 file(ARCHIVE*): Collapse FILES and DIRECTORY options Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4955
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/File_Archive/roundtrip.cmake24
-rw-r--r--Tests/RunCMake/File_Archive/zip-filtered.cmake4
2 files changed, 14 insertions, 14 deletions
diff --git a/Tests/RunCMake/File_Archive/roundtrip.cmake b/Tests/RunCMake/File_Archive/roundtrip.cmake
index f1b0de5..0638367 100644
--- a/Tests/RunCMake/File_Archive/roundtrip.cmake
+++ b/Tests/RunCMake/File_Archive/roundtrip.cmake
@@ -36,17 +36,17 @@ file(REMOVE_RECURSE ${FULL_DECOMPRESS_DIR})
file(MAKE_DIRECTORY ${FULL_DECOMPRESS_DIR})
file(ARCHIVE_CREATE
- OUTPUT ${FULL_OUTPUT_NAME}
- FORMAT "${ARCHIVE_FORMAT}"
- COMPRESSION "${COMPRESSION_TYPE}"
- VERBOSE
- DIRECTORY ${COMPRESS_DIR})
+ OUTPUT ${FULL_OUTPUT_NAME}
+ FORMAT "${ARCHIVE_FORMAT}"
+ COMPRESSION "${COMPRESSION_TYPE}"
+ VERBOSE
+ PATHS ${COMPRESS_DIR})
file(ARCHIVE_EXTRACT
- INPUT ${FULL_OUTPUT_NAME}
- ${DECOMPRESSION_OPTIONS}
- DESTINATION ${FULL_DECOMPRESS_DIR}
- VERBOSE)
+ INPUT ${FULL_OUTPUT_NAME}
+ ${DECOMPRESSION_OPTIONS}
+ DESTINATION ${FULL_DECOMPRESS_DIR}
+ VERBOSE)
if(CUSTOM_CHECK_FILES)
set(CHECK_FILES ${CUSTOM_CHECK_FILES})
@@ -57,11 +57,11 @@ foreach(file ${CHECK_FILES})
set(output ${FULL_DECOMPRESS_DIR}/${COMPRESS_DIR}/${file})
if(NOT EXISTS ${input})
- message(SEND_ERROR "Cannot find input file ${output}")
+ message(SEND_ERROR "Cannot find input file ${output}")
endif()
if(NOT EXISTS ${output})
- message(SEND_ERROR "Cannot find output file ${output}")
+ message(SEND_ERROR "Cannot find output file ${output}")
endif()
file(MD5 ${input} input_md5)
@@ -76,7 +76,7 @@ foreach(file ${NOT_EXISTING_FILES_CHECK})
set(output ${FULL_DECOMPRESS_DIR}/${COMPRESS_DIR}/${file})
if(EXISTS ${output})
- message(SEND_ERROR "File ${output} exists but it shouldn't")
+ message(SEND_ERROR "File ${output} exists but it shouldn't")
endif()
endforeach()
diff --git a/Tests/RunCMake/File_Archive/zip-filtered.cmake b/Tests/RunCMake/File_Archive/zip-filtered.cmake
index e6bdcce..a4aab8b 100644
--- a/Tests/RunCMake/File_Archive/zip-filtered.cmake
+++ b/Tests/RunCMake/File_Archive/zip-filtered.cmake
@@ -3,9 +3,9 @@ set(OUTPUT_NAME "test.zip")
set(ARCHIVE_FORMAT zip)
set(DECOMPRESSION_OPTIONS
- FILES
+ PATTERNS
compress_dir/f1.txt # Decompress only file
- compress_dir/d1 # and whole directory
+ compress_*/d? # and whole directory (has only one match)
)
set(CUSTOM_CHECK_FILES