summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cpack-deb-fix-description'Brad King2020-01-271-1/+1
|\ | | | | | | | | | | | | baec299ecd CPack: Fix regression in Deb description Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4271
| * CPack: Fix regression in Deb descriptionKyle Edwards2020-01-241-1/+1
| | | | | | | | Fixes: #20254
* | Merge topic 'cpack-custom-dmg-names'Craig Scott2020-01-171-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | 6d6f4b9316 CPack/DragNDrop: Support CPACK_DMG_<component>_FILE_NAME b53230fbee Tests: Add DragNDrop as a testable CPack generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4227
| * | CPack/DragNDrop: Support CPACK_DMG_<component>_FILE_NAMEAndrew Fuller2020-01-161-1/+1
| | |
* | | Merge topic 'fix-cpack-deb-description-file'Brad King2020-01-131-1/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | d491f34a5e CPack: Fix regression in DEB generator description Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4204
| * CPack: Fix regression in DEB generator descriptionKyle Edwards2020-01-101-1/+1
| | | | | | | | Fixes: #20102
* | Merge topic 'cpack-use-CPACK_PACKAGE_HOMEPAGE_URL'Kyle Edwards2019-12-111-0/+1
|\ \ | |/ |/| | | | | | | | | 3476dbe6d7 CPack: CMAKE_PROJECT_HOMEPAGE_URL -> CPACK_PACKAGE_HOMEPAGE_URL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4024
| * CPack: CMAKE_PROJECT_HOMEPAGE_URL -> CPACK_PACKAGE_HOMEPAGE_URLAlex Turbov2019-12-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | At CPack running time the `CMAKE_PROJECT_HOMEPAGE_URL` variable is not set. Internal CPack modules (e.g. CPackDEB, CPackRPM, CPackFreeBSD) should use `CPACK_PACKAGE_HOMEPAGE_URL` instead, which is available after inclusion of `CPack.cmake` into `CMakeLists.txt`. Closes: #19607
* | CPack: Remove CPACK_INSTALL_CMAKE_CONFIGURATIONSAlex Turbov2019-11-111-3/+0
|/ | | | | | | | | | | In commit da5ac4bb60 (cpack: Add `CPACK_INSTALL_CMAKE_CONFIGURATIONS` variable, 2019-07-10, v3.16.0-rc1~165^2) we added both the variable and support for `cpack -C` with multiple configurations. Drop the variable because the `package` target cannot ensure that all of the configurations are built. Keep the command-line interface so that it can be used manually in scripts. Fixes: #19918
* CPackDeb: Use `CPACK_PACKAGE_DESCRIPTION_FILE`Alex Turbov2019-09-211-0/+7
| | | | Also, handle per-component description nicely.
* cpack: Add `CPACK_INSTALL_CMAKE_CONFIGURATIONS` variableAlex Turbov2019-08-301-0/+3
| | | | | | | | | For the multi-configuration generators one can specify the list of configurations to include in the package. E.g. having a project, where debug libraries have a suffix to distinct them from the release builds, one can build the package containing both `Debug` and `Release` binaries.
* CPack: Introduce CPACK_INSTALL_SCRIPTS variableAlex Turbov2019-07-211-1/+1
| | | | | | | | | | The singular name `CPACK_INSTALL_SCRIPT` has existed but was not linked from the CPack documentation. Also, it supported multiple values and should have had a plural name. Add a plural-named alternative now. If both `CPACK_INSTALL_SCRIPTS` and `CPACK_INSTALL_SCRIPT` are set then ignore the latter with a warning. Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
* Tests: Split CPack DEB and RPM tests into smaller testsKyle Edwards2019-01-101-27/+27
| | | | | | | | The DEB and RPM tests are quite large, which can result in CTest clients timing out on these tests even though they're working properly. The RPM test in particular causes a lot of timeouts on the CMake dashboard machines. This change splits these tests into smaller tests so that they don't time out.
* CPack: Rename Ext generator to ExternalCraig Scott2018-11-051-3/+3
| | | | | Ext and External were used inconsistently in the code and the docs. This change converts all uses of Ext to External, including within variable names used by the generator.
* CPack/Deb: Add ability to split out debug symbols into .ddeb packageAndrew Fuller2018-09-211-1/+1
|
* CPackExt: Add CPACK_EXT_ENABLE_STAGING and CPACK_EXT_PACKAGE_SCRIPTNils Gladitz2018-08-141-1/+1
| | | | | | | | | CPACK_EXT_ENABLE_STAGING enables optional staging and CPACK_EXT_PACKAGE_SCRIPT allows to specify an optional script file that can package staged files via an external packaging tool. Issue: #18236
* CPack/Deb: Support SOURCE_DATE_EPOCH when packaging filesAndrew Fuller2018-07-251-0/+3
|
* Tests: Add test for cmake --build . --target packageKyle Edwards2018-07-171-0/+1
|
* Testing: Add test for CPack External generatorKyle Edwards2018-07-021-1/+2
| | | | | | This test case ensures that the CPack External generator produces the proper .json file, and also ensures that the version negotation with CPACK_EXT_REQUESTED_VERSIONS works properly.
* CPack: enable setting default dir creation permissionsDomen Vrankar2017-11-081-0/+1
| | | | | | | | | | | Introduces CPACK_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS variable which adds support for functionality introduced by CMAKE_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS variable. Fixes #17333 # Conflicts: # Help/release/dev/cmake-default-dir-install-permissions.rst
* CPack/Deb: handle shlibs file generation when SOVERSION set to 0Domen Vrankar2017-10-281-1/+1
| | | | | | | | Setting CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS did not auto generate shlibs control file when .so version of the library was set to 0. Fixes #17318
* CPack/Deb: CPACK_DEBIAN_PACKAGE_VERSION regex testing exceptionDomen Vrankar2017-10-101-0/+1
| | | | | | | | | | | | | CPACK_DEBIAN_PACKAGE_VERSION variable could in the past also contain release and epoch version so regex test should expect the entire versioning if both CPACK_DEBIAN_PACKAGE_RELEASE and CPACK_DEBIAN_PACKAGE_EPOCH are not set. Also since the checks were not performed in the past the regex test of CPACK_DEBIAN_PACKAGE_VERSION variable content should only report author warnings instead of errors in case of the test fail. Fixes: #17339
* Merge topic 'cpack-rpm-deb-version'Brad King2017-09-221-0/+1
|\ | | | | | | | | | | | | 74b7457f CPack RPM and DEB: improved package version handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1296
| * CPack RPM and DEB: improved package version handlingDomen Vrankar2017-09-211-0/+1
| | | | | | | | | | | | | | | | | | Adds support for epoch version to CPackRPM and CPackDeb packagers. Also adds better version checking to CPackDeb that complies with Debian rules. Fixes: #17057
* | CPack: Add missing check for CPACK_INSTALL_SCRIPT variableAlex Turbov2017-09-201-0/+1
|/ | | | | | | Also add a test case that uses CPACK_INSTALL_SCRIPT. Co-Author: Domen Vrankar <domen.vrankar@gmail.com> Fixes: #15005
* CPack/Archive: per component filenames supportDomen Vrankar2017-05-161-1/+1
| | | | | | Support for setting archive packager specific per component filenames and monolithic package filenames.
* CPack test symlinks in packageDomen Vrankar2017-05-141-0/+1
|
* CPack/RPM: handle extra slashesDomen Vrankar2017-03-131-0/+1
| | | | | | | | | | Extra slashes in some locations can cause errors during package generation and can also be present in generated rpm packages causing issues for the package user. Closes #16619
* CPack/STGZ: minimalistic packages testDomen Vrankar2017-01-221-1/+1
|
* CPack/RPM test for using custom binary spec fileDomen Vrankar2017-01-101-0/+1
|
* Merge topic 'cpack-new-tests'Brad King2017-01-101-1/+1
|\ | | | | | | | | | | | | 36bc7e4c store old locale to a temporary variable 05c14ea0 RunCMake.CPack_* add COMPONENT to minimal test 5b0a64eb CPack/Archive minimal tests for more formats
| * RunCMake.CPack_* add COMPONENT to minimal testDomen Vrankar2016-12-231-1/+1
| | | | | | | | | | Add component based packages testing to current monolithic minimal package tests.
| * CPack/Archive minimal tests for more formatsDomen Vrankar2016-12-231-1/+1
| |
* | CPack/Deb invalid md5sums file fixDomen Vrankar2016-12-231-0/+1
|/ | | | | | | | | Monolithic deb packages were packaged with invalid md5sums file as trailing slash in path was causing string replace to fail and preserve build path. Fixes #16517
* CPackRPM now supports multiple directives in CPACK_RPM_USER_FILELISTHarry Mallon2016-12-031-0/+1
| | | | | | | | * In older version "%dir %attr(-, root, root) foo" would put "%dir foo" in the final spec file. * Also added comment to describe this and advise not not to add trailing slashes to directories in USER_FILELIST. * Includes test in RunCMake CPack which now passes.
* Tests: source CPack tests don't require build stageDomen Vrankar2016-11-271-1/+1
|
* Tests: CPack test set packaging typeDomen Vrankar2016-11-271-19/+18
| | | | | | | | | CPack tests can now define one or more packaging types and that test will be executed once per generator per packaging type. This also enables us to set default values per packaging type for each generator which makes tests shorter.
* Tests: remove generator prefix from CPack test nameDomen Vrankar2016-11-271-5/+5
|
* Tests: Add SHA-3 algorithm coverage to CPack checksum testBrad King2016-11-111-1/+1
|
* CPack/RPM test for Suggests tagAlexander Adam2016-11-051-0/+1
| | | | | | | Suggests tag was not present in older versions of rpmbuild so we test that the rpm package is always generated either with Suggests tag present or skipped if not supported.
* CPack/RPM single debuginfo packagingDomen Vrankar2016-10-071-0/+1
| | | | | | | | | Generate a single debuginfo package even if components packaging is enabled. This makes issue #15668 resolution feature complete. Closes: #15486
* CPack/RPM learned defining main componentDomen Vrankar2016-10-071-0/+1
| | | | | | Main component rpm package is generated without component suffix in filename and package name.
* Merge topic 'cpack-rpm-srpm-package'Brad King2016-09-201-0/+1
|\ | | | | | | | | d9cec8ad CPack/RPM: Generate source rpm (SRPM) packages on demand
| * CPack/RPM: Generate source rpm (SRPM) packages on demandDomen Vrankar2016-09-201-0/+1
| | | | | | | | Closes: #15839
* | CPack: Add option to generate a checksum file next to each package filePetr Orlov2016-09-191-0/+1
|/ | | | Add variable CPACK_PACKAGE_CHECKSUM to activate it.
* CPack/DEB: Add option to select archive typeDomen Vrankar2016-09-051-0/+1
| | | | | | | Add a `CPACK_DEBIAN_ARCHIVE_TYPE` option that can be used to select an archive type that supports long file names. Closes: #14332
* CPack/RPM: Add test for debuginfo package generationDomen Vrankar2016-08-261-0/+1
|
* CPack/Deb possibility to change package nameDomen Vrankar2016-05-231-1/+1
| | | | | | | | This patch preserves backward compatibility of deb package names with previous CMake versions but similarly to CPack/RPM allows to change package name format and supports DEB-DEFAULT setting that produces proper Debian package names.
* Merge topic 'cpack-rpm-adding-dist-to-release-tag'Brad King2016-05-161-0/+1
|\ | | | | | | | | | | f5089cfc CPack/RPM adding dist to release tag test f7003a60 CPack/RPM release dist tag support
| * CPack/RPM adding dist to release tag testDomen Vrankar2016-05-141-0/+1
| | | | | | | | Tests and release notes