summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/RPM
Commit message (Collapse)AuthorAgeFilesLines
* CPack: re-use paths of tools discovered by CMakeFindBinUtilsMatteo Martelli2022-09-061-3/+3
| | | | | | | | `CMakeFindBinUtils.cmake` sets `CMAKE_<TOOL>` variables that in cross-compilation environments point to the toolchain specific executables: e.g. `CMAKE_OBJCOPY` might point to `<path_to_toolchain>/arm-poky-linux-gnueabi-objcopy`. Pass this information to CPack.
* Tests: Fix newline matching in several RunCMake.* casesBrad King2021-07-021-1/+2
| | | | | | | | The RunCMake infrastructure's `*-stdout.txt` expected output files interpret `\n` as a `\` and `n` rather than a newline. Use a literal newline instead. Otherwise the cases that were trying to match any configuration name via `[^\n]*` would fail on `RelWithDebInfo` because it contains the letter `n`.
* CPackRPM: handle scripts in debuginfo single package modeDomen Vrankar2021-03-301-0/+7
| | | | | | | | Enabling CPACK_RPM_DEBUGINFO_SINGLE_PACKAGE while using rpm install or erase scripts resulted in resulted missing scripts for non default components. Fixes: #21974
* Tests: Split CPack DEB and RPM tests into smaller testsKyle Edwards2019-01-101-1/+1
| | | | | | | | 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.
* Tests: Add test for cmake --build . --target packageKyle Edwards2018-07-171-1/+1
|
* CPack test: correctly handle CPACK_PACKAGING_INSTALL_PREFIXDomen Vrankar2017-11-191-4/+19
| | | | | | | 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 RPM and DEB: improved package version handlingDomen Vrankar2017-09-211-0/+3
| | | | | | | | | 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/RPM tests: handle build-id linksDomen Vrankar2017-03-271-0/+4
| | | | | | | | | 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
* Tests: CPack test set packaging typeDomen Vrankar2016-11-271-0/+1
| | | | | | | | | 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: CPack test use same content listDomen Vrankar2016-11-271-0/+33
| | | | | | | | 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-271-0/+20
| | | | | | | | | | | 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-276-197/+0
| | | | | Merge VerifyResult of different generators pertest and move the file to its test dir.
* Tests: CPack test merge generator specificsDomen Vrankar2016-11-274-51/+0
| | | | | Merge test generator specifics into test itself.
* Tests: CPack test move ExpectedFiles scriptDomen Vrankar2016-11-2714-130/+0
| | | | | Merge per generator ExpectedFiles scripts into one per test and move it to test dir.
* Tests: CPack test move std error files to test filesDomen Vrankar2016-11-273-3/+0
|
* Tests: CPack test should use default package nameDomen Vrankar2016-11-273-6/+6
| | | | | | | | 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.
* Tests: CPack/RPM test introduction of default stderr test outputDomen Vrankar2016-11-2713-22/+1
|
* CPack/RPM test for Suggests tagAlexander Adam2016-11-052-0/+36
| | | | | | | 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-078-0/+41
| | | | | | | | | 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-073-0/+17
| | | | | | Main component rpm package is generated without component suffix in filename and package name.
* CPack/RPM debuginfo directories to sourcesDomen Vrankar2016-09-271-2/+2
| | | | | | List of sources must be split into paths parts so that debuginfo package cleans up after itself.
* CPack/RPM debuginfo packages must contain sourcesDomen Vrankar2016-09-271-2/+2
| | | | | Issue #15668 fix was missing relevant source files in debuginfo package.
* CPack/RPM: Generate source rpm (SRPM) packages on demandDomen Vrankar2016-09-202-0/+68
| | | | Closes: #15839
* CPack/RPM: Add test for debuginfo package generationDomen Vrankar2016-08-262-0/+17
|
* CPack/Deb possibility to change package nameDomen Vrankar2016-05-234-3/+8
| | | | | | | | 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-162-0/+16
|\ | | | | | | | | | | 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-142-0/+16
| | | | | | | | Tests and release notes
* | CPack/RPM different package namesDomen Vrankar2016-05-152-0/+12
|/ | | | | | | | Packagers may now set their own rpm package file names or request that rpmbuild tool chooses one for them. It also supports handing of situations where one spec file may produce multiple rpm packages.
* CPack/RPM support for upper cased component variablesDomen Vrankar2016-02-135-12/+67
| | | | | | | | | | CPACK_* variables expect component name in upper case. CPACK_RPM_* variables expected component name to be in same case as component name. This patch adds support for CPACK_RPM_* variables with upper case component names to match the convention with CPACK_* variables and also preserves same case component names for back compatibility.
* CPack: Added tests for package name and group controll fieldsDomen Vrankar2015-12-074-0/+41
|
* CPack: allow packaging of empty directoriesDomen Vrankar2015-09-284-0/+12
|
* Revert topic 'cpack-package-empty-dirs'Brad King2015-09-254-12/+0
| | | | | | | | | The changes in commit 47b060ae (CPackDeb: allow empty directories in component packages, 2015-09-21), commit b58de9fe (CPack: allow packaging of empty directories, 2015-09-21), and commit b761e90d (CPack: remove accidental changes, 2015-09-22) regressed packaging of CMake itself. Revert the changes until they can be revised and rebased on other changes that make additional fixes.
* CPack: allow packaging of empty directoriesDomen Vrankar2015-09-224-0/+12
|
* Tests/RunCMake/CPack: Add dependencies testsDomen Vrankar2015-08-063-0/+80
| | | | | Add tests for RPM and DEB package test for currently supported dependency features (requires, provides, conflicts, ...).
* Tests: Move RunCMake.CPackRPM case into RunCMake.CPack_RPM testDomen Vrankar2015-06-152-0/+6
| | | | | | Move PARTIALLY_RELOCATABLE_WARNING test to the new common CPack test script structure to have all tests in one place as well as additional benefit of having some more checks done during test execution.
* Tests: Add RunCMake tests for CPack{Deb,RPM}Domen Vrankar2015-06-154-0/+32
Add script structure for easier addition of new CPack related tests.