diff options
Diffstat (limited to 'Tests/RunCMake/CPack/tests/MINIMAL/ExpectedFiles.cmake')
-rw-r--r-- | Tests/RunCMake/CPack/tests/MINIMAL/ExpectedFiles.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/tests/MINIMAL/ExpectedFiles.cmake b/Tests/RunCMake/CPack/tests/MINIMAL/ExpectedFiles.cmake new file mode 100644 index 0000000..546b891 --- /dev/null +++ b/Tests/RunCMake/CPack/tests/MINIMAL/ExpectedFiles.cmake @@ -0,0 +1,14 @@ +set(whitespaces_ "[\t\n\r ]*") + +set(EXPECTED_FILES_COUNT "1") + +if(GENERATOR_TYPE STREQUAL "DEB") + set(EXPECTED_FILE_1 "minimal_0.1.1-1_*.deb") + set(EXPECTED_FILE_CONTENT_1 "^.*/usr/${whitespaces_}.*/usr/foo/${whitespaces_}.*/usr/foo/CMakeLists.txt$") +elseif(GENERATOR_TYPE STREQUAL "RPM") + set(EXPECTED_FILE_1 "minimal*.rpm") + set(EXPECTED_FILE_CONTENT_1 "^/usr/foo${whitespaces_}/usr/foo/CMakeLists.txt$") +elseif(GENERATOR_TYPE STREQUAL "TGZ") + set(EXPECTED_FILE_1 "minimal*.tar.gz") + set(EXPECTED_FILE_CONTENT_1 "^[^\n]*minimal-0.1.1-[^\n]*/foo/\n[^\n]*minimal-0.1.1-[^\n]*/foo/CMakeLists.txt$") +endif() |