diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2016-11-26 18:53:59 (GMT) |
---|---|---|
committer | Domen Vrankar <domen.vrankar@gmail.com> | 2016-11-27 22:20:35 (GMT) |
commit | 0f15aee799a0af9fe1999d5c071483c9660ccf5b (patch) | |
tree | 477d915af34a04434e58c76b2ca52866077b919a /Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake | |
parent | a0ad6fc4dc55541f66534abcf050aaf63c65033f (diff) | |
download | CMake-0f15aee799a0af9fe1999d5c071483c9660ccf5b.zip CMake-0f15aee799a0af9fe1999d5c071483c9660ccf5b.tar.gz CMake-0f15aee799a0af9fe1999d5c071483c9660ccf5b.tar.bz2 |
Tests: CPack test move ExpectedFiles script
Merge per generator ExpectedFiles scripts
into one per test and move it to test dir.
Diffstat (limited to 'Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake')
-rw-r--r-- | Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake b/Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake new file mode 100644 index 0000000..8459dd3 --- /dev/null +++ b/Tests/RunCMake/CPack/tests/DEPENDENCIES/ExpectedFiles.cmake @@ -0,0 +1,28 @@ +set(whitespaces_ "[\t\n\r ]*") + +set(EXPECTED_FILES_COUNT "5") + +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() |