summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Tests: CPack/RPM test introduction of default stderr test outputDomen Vrankar2016-11-2714-22/+3
|
* Tests: fix CPack test source packages missing generator typeDomen Vrankar2016-11-271-1/+1
| | | | | | Source packages testing for RunCMake CPack tests did not provide generator type to the project built from source package.
* Tests: CPack fix for invalid config file pathDomen Vrankar2016-11-271-2/+1
| | | | | Invalid config file path was passed to per test specific prerequirements script.
* Tests: Add SHA-3 algorithm coverage to CPack checksum testBrad King2016-11-111-1/+1
|
* CPack/RPM test for Suggests tagAlexander Adam2016-11-054-0/+41
| | | | | | | 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.
* Tests: Improve RunCMake.CPack_* failure message formattingBrad King2016-10-071-2/+4
| | | | | | Format a `message(FATAL_ERROR)` call with markup to make the generated message more readable so that the difference between the actual and expected results is easier to see.
* CPack/RPM single debuginfo packagingDomen Vrankar2016-10-0710-0/+98
| | | | | | | | | 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-075-0/+32
| | | | | | Main component rpm package is generated without component suffix in filename and package name.
* Tests: Add newline to RunCMake.CPack_RPM SOURCE_PACKAGE caseBrad King2016-09-281-1/+1
| | | | | | The `main.cpp` that this test generates needs a newline so that compilers do not warn about a missing newline. Otherwise the warning causes RunCMake infrastructure to detect unexpected output.
* 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-272-2/+10
| | | | | Issue #15668 fix was missing relevant source files in debuginfo package.
* Tests: Fix RunCMake.CPack test infrastructure after logical conflictDomen Vrankar2016-09-201-70/+17
| | | | | | | | The changes in commit d9cec8ad (CPack/RPM: Generate source rpm (SRPM) packages on demand, 2016-09-19) logically conflict with the infrastructure updates in commit 4682b42b (Tests: Add subtest support to RunCMake/CPack infrastructure, 2016-09-13). Integrate the two changes so they work together.
* Merge topic 'cpack-rpm-srpm-package'Brad King2016-09-206-1/+145
|\ | | | | | | | | d9cec8ad CPack/RPM: Generate source rpm (SRPM) packages on demand
| * CPack/RPM: Generate source rpm (SRPM) packages on demandDomen Vrankar2016-09-206-1/+145
| | | | | | | | Closes: #15839
* | CPack: Add option to generate a checksum file next to each package filePetr Orlov2016-09-195-0/+30
| | | | | | | | Add variable CPACK_PACKAGE_CHECKSUM to activate it.
* | Tests: Add subtest support to RunCMake/CPack infrastructureDomen Vrankar2016-09-193-12/+40
|/
* CPack/DEB: Add option to select archive typeDomen Vrankar2016-09-057-0/+59
| | | | | | | 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-264-0/+44
|
* prefer list(APPEND) over string(APPEND) where appropriateDaniel Pfeifer2016-08-081-2/+2
|
* Use string(APPEND) in TestsDaniel Pfeifer2016-07-272-7/+7
| | | | | | | Automate with: find Tests -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
* CPack/Deb: Fix test to actually test the preinst scriptDomen Vrankar2016-06-201-2/+2
| | | | | | | The test regex variable name was invalid and did not test preinst script. Reported-by: Patrick <mail6543210@yahoo.com.tw>
* CPack/Deb: Fix tests for SELinux-enabled systemsDomen Vrankar2016-06-203-10/+13
| | | | Suggested-by: Patrick <mail6543210@yahoo.com.tw>
* CPack/Deb possibility to change package nameDomen Vrankar2016-05-2317-13/+38
| | | | | | | | 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-164-0/+21
|\ | | | | | | | | | | 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-144-0/+21
| | | | | | | | Tests and release notes
* | Merge topic 'cpack-rpm-different-package-names'Brad King2016-05-164-0/+24
|\ \ | | | | | | | | | | | | 44ee2d71 CPack/RPM different package names
| * | CPack/RPM different package namesDomen Vrankar2016-05-154-0/+24
| |/ | | | | | | | | | | | | | | 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/Deb test changes due to breaking changesDomen Vrankar2016-05-1318-16/+198
|/ | | | | | New CPack/Deb tests and changes to old tests as package file names and inter component dependency detection was changed.
* CPack/RPM support for upper cased component variablesDomen Vrankar2016-02-137-12/+94
| | | | | | | | | | 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-079-0/+80
|
* Tests: Fix RunCMake.CPack_* tests to use proper CMake generatorDomen Vrankar2015-10-012-45/+3
| | | | | | Use the run_cmake() function to generate the test build tree with the proper CMake generator and also to verify that it succeeds. Drop our PreTestError helper as it is no longer needed.
* Tests: Avoid OS X 10.5 limitation warning in RunCMake.CPack* testsBrad King2015-10-011-0/+2
| | | | | | | | | | | | | The DEPENDENCIES test case uses install(TARGETS) and so generates a warning: CMake Warning in CMakeLists.txt: WARNING: Target "test_prog" has runtime paths which cannot be changed during install. To change runtime paths, OS X version 10.6 or newer is required. Therefore, runtime paths will not be changed when installing. CMAKE_BUILD_WITH_INSTALL_RPATH may be used to work around this limitation. Set CMAKE_BUILD_WITH_INSTALL_RPATH to avoid the warning since we do not need to run the binaries from the build tree anyway.
* Tests: Add trailing newlines to generated sources in RunCMake.CPack_* testsBrad King2015-10-011-3/+3
| | | | This avoids compiler warnings on stderr while building them.