file(ARCHIVE*): Add test for keyword arguments with missing values

This commit is contained in:
Brad King
2022-06-29 16:26:33 -04:00
parent b1d8141534
commit dfff470d15
7 changed files with 34 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ run_cmake(zip)
# Extracting only selected files or directories
run_cmake(zip-filtered)
run_cmake(create-missing-args)
run_cmake(extract-missing-args)
run_cmake(unsupported-format)
run_cmake(zip-with-bad-compression)
run_cmake(7zip-with-bad-compression)

View File

@@ -0,0 +1 @@
1

View File

@@ -0,0 +1,9 @@
^CMake Error at create-missing-args.cmake:[0-9]+ \(file\):
file Keywords missing values:
OUTPUT
FORMAT
COMPRESSION
COMPRESSION_LEVEL
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)$

View File

@@ -0,0 +1,8 @@
file(ARCHIVE_CREATE
OUTPUT # missing output path
FORMAT # missing output format
COMPRESSION # missing compression type
COMPRESSION_LEVEL # missing compression level
MTIME # missing modification time
PATHS # no paths
)

View File

@@ -0,0 +1 @@
1

View File

@@ -0,0 +1,7 @@
^CMake Error at extract-missing-args.cmake:[0-9]+ \(file\):
file Keywords missing values:
INPUT
DESTINATION
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)$

View File

@@ -0,0 +1,5 @@
file(ARCHIVE_EXTRACT
INPUT # missing input
DESTINATION # missing destination
PATTERNS # no patterns
)