summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/DEPENDENCIES
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2016-11-27 13:00:29 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2016-11-27 22:20:35 (GMT)
commited8858edb7c5100e1928c5a94f85485f0e322aa7 (patch)
treec0dee147388fa9dc2c0c57d666d0ada9ee041a85 /Tests/RunCMake/CPack/tests/DEPENDENCIES
parent8575affa4c72e1c0d07f964d2f28eb6ddbadb291 (diff)
downloadCMake-ed8858edb7c5100e1928c5a94f85485f0e322aa7.zip
CMake-ed8858edb7c5100e1928c5a94f85485f0e322aa7.tar.gz
CMake-ed8858edb7c5100e1928c5a94f85485f0e322aa7.tar.bz2
Tests: CPack test unify expected file naming
Each generator generates its own file format with different extensions but they all create those file names by a certain pattern and all of them require the same pieces for that pattern to work. Now we can only provide pieces once and and each generator will use those pieces to generate an expected file name.
Diffstat (limited to 'Tests/RunCMake/CPack/tests/DEPENDENCIES')
-rw-r--r--Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake15
1 files changed, 5 insertions, 10 deletions
diff --git a/Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake b/Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake
index 8459dd3..7ab2961 100644
--- a/Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake
+++ b/Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake
@@ -1,28 +1,23 @@
set(whitespaces_ "[\t\n\r ]*")
set(EXPECTED_FILES_COUNT "5")
+set(EXPECTED_FILE_1_COMPONENT "applications")
+set(EXPECTED_FILE_2_COMPONENT "applications_auto")
+set(EXPECTED_FILE_3_COMPONENT "headers")
+set(EXPECTED_FILE_4_COMPONENT "libs")
+set(EXPECTED_FILE_5_COMPONENT "libs_auto")
if(GENERATOR_TYPE STREQUAL "DEB")
- set(EXPECTED_FILE_1 "dependencies-0.1.1-*-applications.deb")
set(EXPECTED_FILE_CONTENT_1 "^.*/usr/foo${whitespaces_}.*/usr/foo/test_prog$")
- set(EXPECTED_FILE_2 "dependencies-0.1.1-*-applications_auto.deb")
set(EXPECTED_FILE_CONTENT_2 "^.*/usr/foo_auto${whitespaces_}.*/usr/foo_auto/test_prog$")
- set(EXPECTED_FILE_3 "dependencies-0.1.1-*-headers.deb")
set(EXPECTED_FILE_CONTENT_3 "^.*/usr/bar${whitespaces_}.*/usr/bar/CMakeLists.txt$")
- set(EXPECTED_FILE_4 "dependencies-0.1.1-*-libs.deb")
# dynamic lib extension is .so on Linux and .dylib on Mac so we will use a wildcard .* for it
set(EXPECTED_FILE_CONTENT_4 "^.*/usr/bas${whitespaces_}.*/usr/bas/libtest_lib\\..*$")
- set(EXPECTED_FILE_5 "dependencies-0.1.1-*-libs_auto.deb")
set(EXPECTED_FILE_CONTENT_5 "^.*/usr/bas_auto${whitespaces_}.*/usr/bas_auto/libtest_lib\\..*$")
elseif(GENERATOR_TYPE STREQUAL "RPM")
- set(EXPECTED_FILE_1 "dependencies*-applications.rpm")
set(EXPECTED_FILE_CONTENT_1 "^/usr/foo${whitespaces_}/usr/foo/test_prog$")
- set(EXPECTED_FILE_2 "dependencies*-applications_auto.rpm")
set(EXPECTED_FILE_CONTENT_2 "^/usr/foo_auto${whitespaces_}/usr/foo_auto/test_prog$")
- set(EXPECTED_FILE_3 "dependencies*-headers.rpm")
set(EXPECTED_FILE_CONTENT_3 "^/usr/bar${whitespaces_}/usr/bar/CMakeLists.txt$")
- set(EXPECTED_FILE_4 "dependencies*-libs.rpm")
set(EXPECTED_FILE_CONTENT_4 "^/usr/bas${whitespaces_}/usr/bas/libtest_lib.so$")
- set(EXPECTED_FILE_5 "dependencies*-libs_auto.rpm")
set(EXPECTED_FILE_CONTENT_5 "^/usr/bas_auto${whitespaces_}/usr/bas_auto/libtest_lib.so$")
endif()