mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
Tests: update MD5SUMS test to have several files
The test is now updated to check the order of files in the md5sums.
This commit is contained in:
committed by
Brad King
parent
9028195a22
commit
a0d3494afa
@@ -1,2 +1,2 @@
|
||||
set(EXPECTED_FILES_COUNT "1")
|
||||
set(EXPECTED_FILE_CONTENT_1_LIST "/foo;/foo/CMakeLists.txt")
|
||||
set(EXPECTED_FILE_CONTENT_1_LIST "/bar;/bar/CMakeLists.txt;/baz;/baz/CMakeLists.txt;/foo;/foo/CMakeLists.txt")
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
set(whitespaces_ "[\t\n\r ]*")
|
||||
set(md5sums_md5sums "^.* usr/foo/CMakeLists\.txt${whitespaces_}$")
|
||||
set(hashsyms_ "[a-f0-9]+")
|
||||
set(md5sums_md5sums "^${hashsyms_} usr/bar/CMakeLists\.txt${whitespaces_}${hashsyms_} usr/baz/CMakeLists\.txt${whitespaces_}${hashsyms_} usr/foo/CMakeLists\.txt${whitespaces_}$")
|
||||
verifyDebControl("${FOUND_FILE_1}" "md5sums" "md5sums")
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
install(FILES CMakeLists.txt DESTINATION foo COMPONENT test)
|
||||
install(FILES CMakeLists.txt DESTINATION bar COMPONENT test)
|
||||
install(FILES CMakeLists.txt DESTINATION baz COMPONENT test)
|
||||
|
||||
if(PACKAGING_TYPE STREQUAL "COMPONENT")
|
||||
set(CPACK_COMPONENTS_ALL test)
|
||||
|
||||
Reference in New Issue
Block a user