summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack
Commit message (Collapse)AuthorAgeFilesLines
* CPack tests: add possibility for expecting config developer warningsDomen Vrankar2017-11-192-1/+28
|
* CPack test: correctly handle CPACK_PACKAGING_INSTALL_PREFIXDomen Vrankar2017-11-1930-65/+122
| | | | | | | Every CPack generator sets default CPACK_PACKAGING_INSTALL_PREFIX variable value differently so test framework should support that correctly - previous version expected RPM/Deb /usr default and removed it for Archive packagers as the default there is /.
* CPack: enable setting default dir creation permissionsDomen Vrankar2017-11-086-0/+82
| | | | | | | | | | | 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 test: expand output checking fallbackDomen Vrankar2017-11-082-0/+3
| | | | | Some tests can have the same output for a certain subtest no matter which packaging generator is used.
* Fix trivial typos in textluzpaz2017-11-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some are user facing. Found using codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt` whereby the whitelist contained: ans dum helpfull emmited emmitted buil iff isnt nto ot pathes substract te todays upto whitespaces
* Merge topic 'cpack-deb-0-so-version-support'Brad King2017-10-303-3/+13
|\ | | | | | | | | | | | | 5784ab8f CPack/Deb: handle shlibs file generation when SOVERSION set to 0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1423
| * CPack/Deb: handle shlibs file generation when SOVERSION set to 0Domen Vrankar2017-10-283-3/+13
| | | | | | | | | | | | | | | | 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
* | Merge topic 'cpack-rpm-dist-test-fix'Brad King2017-10-301-0/+5
|\ \ | |/ |/| | | | | | | | | 9ce00cae CPack/RPM: DIST-MONOLITHIC-type subtest fix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1424
| * CPack/RPM: DIST-MONOLITHIC-type subtest fixDomen Vrankar2017-10-301-0/+5
| | | | | | | | | | | | | | | | Test was failing in case dist macro contained a + symbol which is valid but must be escaped for using the string as a regex. Fixes #17328
* | CPack/Deb: CPACK_DEBIAN_PACKAGE_VERSION regex testing exceptionDomen Vrankar2017-10-104-0/+21
|/ | | | | | | | | | | | | 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-227-4/+40
|\ | | | | | | | | | | | | 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-217-4/+40
| | | | | | | | | | | | | | | | | | Adds support for epoch version to CPackRPM and CPackDeb packagers. Also adds better version checking to CPackDeb that complies with Debian rules. Fixes: #17057
* | Merge topic 'cpack-different-checksum-file-per-generator'Brad King2017-09-211-3/+2
|\ \ | | | | | | | | | | | | | | | | | | b06870e5 CPack: use a distinct checksum file for each generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1291
| * | CPack: use a distinct checksum file for each generatorDomen Vrankar2017-09-201-3/+2
| |/ | | | | | | | | | | | | | | | | Different CPack generators could produce checksum files with the same name which were overwritten by each other since only package name without extensions was used for checksum file name generation. This patch adds package extension to checksum files to prevent collisions. Fixes: #16840
* | CPack: Add missing check for CPACK_INSTALL_SCRIPT variableAlex Turbov2017-09-203-0/+15
|/ | | | | | | Also add a test case that uses CPACK_INSTALL_SCRIPT. Co-Author: Domen Vrankar <domen.vrankar@gmail.com> Fixes: #15005
* CPack: extend testing frameworkDomen Vrankar2017-08-192-0/+9
| | | | | | | | | Some CPack tests require running commands after the inclusion of CPack.cmake and this patch enables such tests to declare run_after_include_cpack function which is run after the inclusion.
* CPack/Archive: per component filenames supportDomen Vrankar2017-05-163-1/+7
| | | | | | Support for setting archive packager specific per component filenames and monolithic package filenames.
* CPack test symlinks in packageDomen Vrankar2017-05-145-0/+59
|
* Improved CPack tests error loggingDomen Vrankar2017-05-143-4/+6
|
* Merge topic 'cpack-rpm-debuginfo-honor-package-filename'Brad King2017-03-272-3/+15
|\ | | | | | | | | | | | | | | f237f5f8 CPack/RPM: support for debuginfo package renaming 6c09c5d6 CPack/RPM honor package file name on debuginfo enabled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !620
| * CPack/RPM: support for debuginfo package renamingDomen Vrankar2017-03-252-2/+6
| |
| * CPack/RPM honor package file name on debuginfo enabledDomen Vrankar2017-03-242-2/+10
| | | | | | | | | | | | | | | | Packages with debuginfo enabled should still honor defined package file name if file name is not set to RPM-DEFAULT. Fixes #16715
* | Merge topic 'cpack-rpm-tests-handle-build-id-links'Brad King2017-03-272-1/+7
|\ \ | |/ |/| | | | | | | | | 4ba065b2 CPack/RPM tests: handle build-id links Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !628
| * CPack/RPM tests: handle build-id linksDomen Vrankar2017-03-272-1/+7
| | | | | | | | | | | | | | | | | | Build id links generation was introduced in rpm 4.13.0.1 so files related to them should be ignored as they are not relevant for the tests. Fixes #16710
* | CPack/RPM: handle extra slashesDomen Vrankar2017-03-134-0/+61
|/ | | | | | | | | | 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-224-1/+77
|
* CPack/RPM test for using custom binary spec fileDomen Vrankar2017-01-106-0/+102
|
* Merge topic 'cpack-new-tests'Brad King2017-01-1019-62/+109
|\ | | | | | | | | | | | | 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-2319-62/+109
| |
* | Merge topic 'cpack-deb-md5sums-paths-fix'Brad King2017-01-104-0/+11
|\ \ | | | | | | | | | | | | 6daa2d38 CPack/Deb invalid md5sums file fix
| * | CPack/Deb invalid md5sums file fixDomen Vrankar2016-12-234-0/+11
| |/ | | | | | | | | | | | | | | | | 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
* | CPack test additional std out/err regex file overloadsDomen Vrankar2017-01-102-3/+18
|/ | | | | Added std out/std err expected regex file name overloads for packaging type.
* CPackRPM now supports multiple directives in CPACK_RPM_USER_FILELISTHarry Mallon2016-12-034-0/+28
| | | | | | | | * 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: CPack test documentation faceliftDomen Vrankar2016-11-271-32/+136
|
* Tests: CPack/DEB test change prerequirements checkDomen Vrankar2016-11-274-6/+11
| | | | | | | Prerequirements should be searched for in generator prerequirements function and only checked for presence in configure file in per test prerequirements function.
* Tests: source CPack tests don't require build stageDomen Vrankar2016-11-272-3/+3
|
* Tests: CPack test set packaging typeDomen Vrankar2016-11-2725-158/+130
| | | | | | | | | 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-2719-7/+7
|
* Tests: CPack test long_filenames prerequirementsDomen Vrankar2016-11-271-2/+2
| | | | | | | | Fakeroot executable is already searched for in DEB packager tests prerequirements so the test prerequirement just has to check that it is present in config file and not search for it once more.
* Tests: CPack test use same content listDomen Vrankar2016-11-2722-107/+154
| | | | | | | | Content list for a certain test should be the same between different generators so whenever possible use a single expected files list per file for all generators.
* Tests: CPack test unify expected file namingDomen Vrankar2016-11-2727-54/+122
| | | | | | | | | | | 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.
* Tests: CPack test move and merge VerifyResultDomen Vrankar2016-11-2716-117/+110
| | | | | Merge VerifyResult of different generators pertest and move the file to its test dir.
* Tests: CPack test move per test prerequirementsDomen Vrankar2016-11-274-2/+2
| | | | | Move per test prerequirements into the belonging test.
* Tests: CPack test merge generator specificsDomen Vrankar2016-11-2721-104/+127
| | | | | Merge test generator specifics into test itself.
* Tests: CPack test move ExpectedFiles scriptDomen Vrankar2016-11-2735-105/+109
| | | | | Merge per generator ExpectedFiles scripts into one per test and move it to test dir.
* Tests: CPack test should always check test outputDomen Vrankar2016-11-274-7/+5
|
* Tests: CPack test move std error files to test filesDomen Vrankar2016-11-275-4/+4
|
* Tests: CPack move tests to separate dirDomen Vrankar2016-11-2720-1/+1
| | | | | | For greater transparency tests are moved to a subfolder with each test having its own dir.
* Tests: CPack test should use default package nameDomen Vrankar2016-11-2728-46/+18
| | | | | | | | Package names are irrelevant for most CPack tests so tests now set default package name that is created from test name and used if it is not explicitly provided in the test.