summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'update-kwsys'Brad King2016-09-151-6/+6
|\ | | | | | | | | | | | | | | | | de149317 Tests: Use upper-case drive letters in RunCMake.get_filename_component 04d94fbe Merge branch 'upstream-KWSys' into update-kwsys d28e4467 KWSys 2016-09-14 (c4049689) e4fc770f Merge branch 'upstream-KWSys' into update-kwsys b80d6136 KWSys 2016-09-14 (e736efa1)
| * Tests: Use upper-case drive letters in RunCMake.get_filename_componentBrad King2016-09-151-6/+6
| | | | | | | | | | | | | | | | With the most recent KWSys update, the "actual case" operation on Windows always upper-cases the drive letter now even for absolute paths that do not exist. Use an upper-case drive letter in the test so that it can tolerate this operation on Windows and the lack of this operation elsewhere.
* | Merge topic 'add-strverscmp'Brad King2016-09-151-4/+68
|\ \ | | | | | | | | | | | | | | | 88494325 Tests: Add test for our strverscmp implementation 07f69bd5 cmSystemTools: Add strverscmp
| * | Tests: Add test for our strverscmp implementationPierluigi Taddei2016-09-141-4/+68
| | | | | | | | | | | | | | | Cover typical examples and the ordering defined by the `strverscmp(3)` man page.
* | | Merge topic 'file-curl-userpw'Brad King2016-09-147-0/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | abeb42f1 Help: Add notes for topic 'file-curl-userpw' e5ba1041 file(DOWNLOAD|UPLOAD): Add 'USERPWD' suboption
| * | | file(DOWNLOAD|UPLOAD): Add 'USERPWD' suboptionRuslan Baratov2016-09-137-0/+14
| | | |
* | | | Merge topic 'add_androidmk_generator'Brad King2016-09-148-0/+99
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | 42ce9f1e Add support for creating prebuilt Android.mk files d5257063 Export: Virtualize file generation step helpers f81b9475 Export: Factor out file generation steps into helpers
| * | | Add support for creating prebuilt Android.mk filesBill Hoffman2016-09-138-0/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add options to the `install()` and `export()` commands to export the targets we build into Android.mk files that reference them as prebuilt libraries with associated usage requirements (compile definitions, include directories, link libraries). This will allow CMake-built projects to be imported into projects using the Android NDK build system. Closes: #15562
* | | | Merge topic 'timestamp-names'Brad King2016-09-132-0/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 410add40 Help: Add notes for topic 'timestamp-names' 751f7b52 string(TIMESTAMP ...): add '%a' and '%b' format specifiers
| * | | | string(TIMESTAMP ...): add '%a' and '%b' format specifiersRuslan Baratov2016-09-122-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | %b: Abbreviated month name (e.g. Oct). %a: Abbreviated weekday name (e.g. Fri).
* | | | | Merge topic 'file-download-unexpected-arg'Brad King2016-09-139-0/+22
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | 4dd997da file(DOWNLOAD|UPLOAD): Warn on unexpected arguments
| * | | | file(DOWNLOAD|UPLOAD): Warn on unexpected argumentsRuslan Baratov2016-09-099-0/+22
| |/ / / | | | | | | | | | | | | | | | | Emit warning message on unparsed argument instead of silently ignoring it. Can't stop with the error message because it may break old code.
* | | | Merge topic 'geh-failure-tests'Brad King2016-09-1212-203/+445
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 612d6f29 Tests: Refactor GenerateExportHeader test code ce76abb4 Tests: Add data symbols to GenerateExportHeader test 8f95b93b Tests: Add failure test for GenerateExportHeader
| * | | | Tests: Refactor GenerateExportHeader test codeMatthew Woehlke2016-09-127-237/+327
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the library code used in the GenerateExportHeader test to use an improved naming convention that more directly identifies what it being tested, making use of namespaces to avoid possible symbol collisions. This also eliminates duplicate cases such as `libshared()` and `libshared_not_exported()` which had the same decoration, and adds consistent pairings of <name>_EXPORT and <name>_DEPRECATED_EXPORT which were missing previously. The data tests from the previous commit are also added to `libstatic` and `libshared_and_static` for consistency. Note that there are no exported members of exported classes, as these are not allowed on Windows.
| * | | | Tests: Add data symbols to GenerateExportHeader testMatthew Woehlke2016-09-123-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add static data members and global variables to the GenerateExportHeader shared library, testing that export decoration for these works in addition to decoration of classes and free functions.
| * | | | Tests: Add failure test for GenerateExportHeaderMatthew Woehlke2016-09-126-18/+96
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify notation of statements in the GenerateExportHeader test expected to result in link errors. Modify script used to build the test to also generate a suite of modified sources, each having exactly one of the failing lines enabled, and to generate EXCLUDE_FROM_ALL executables for the same. Modify RunCMake script used to drive the test to read the list of such executables and try to build each of them, verifying that they do in fact fail to build. This will verify that the _NO_EXPORT macros are working as expected, and will also catch errors like the one that commit 0cbaaf2d (GenerateExportHeader: Fix add_compiler_export_flags regression, 2016-09-01) fixed. When setting up the failure tests for GenerateExportHeader, check if the compiler actually hides non-exported stuff. If not, the failure tests won't fail, and will cause the overall test to fail. Since this typically is only the case for very old compilers, simply skipping them as opposed to trying to do something more fine grained seems reasonably safe.
* | | | Merge topic 'bzip2-imported-targets'Brad King2016-09-124-0/+53
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | 79eba4b7 Help: Add notes for topic 'bzip2-imported-targets' 069cac58 Tests: Add FindBZip2 unit tests e9ce0503 FindBZip2: Add imported target
| * | | Tests: Add FindBZip2 unit testsRoger Leigh2016-09-094-0/+53
| | |/ | |/|
* | | Merge topic 'parse_arguments_argv_n'Brad King2016-09-0914-0/+69
|\ \ \ | | | | | | | | | | | | | | | | cb299acc cmake_parse_arguments: Add option to read arguments from ARGC/ARGV#
| * | | cmake_parse_arguments: Add option to read arguments from ARGC/ARGV#Bill Hoffman2016-09-0814-0/+69
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | The `ARGC`/`ARGV#` variables in function scope hold the original arguments with no ;-list flattening. Add a way for functions to cleanly parse arguments that may contain `;`. This also avoids extra copying of the arguments. Co-Author: Brad King <brad.king@kitware.com>
* | | Merge topic 'FindMatlab-regression-tests-print-on-error'Brad King2016-09-091-3/+3
|\ \ \ | |/ / |/| | | | | | | | 1031e5d9 FindMatlab: add verbosity to the nightly tests
| * | FindMatlab: add verbosity to the nightly testsRaffi Enficiaud2016-09-081-3/+3
| | |
* | | Merge topic 'vs-15-generator'Brad King2016-09-083-6/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bdc679a8 VS15: Add Visual Studio 15 generator a8936656 VS: Update v140 flag tables from VS 15 MSBuild files 21346d3f Features: Record features for VS 15 Preview 4
| * | | VS15: Add Visual Studio 15 generatorBrad King2016-09-073-6/+6
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call the generator "Visual Studio 15" without any year because the preview version of VS 15 does not provide a year in the product name. Copy cmGlobalVisualStudio14Generator to cmGlobalVisualStudio15Generator and update version numbers accordingly. Add the VS15 enumeration value. Note that we do not need to add a MSVC15 variable or v150 toolset because Visual Studio 15 comes with an updated version of the v140 toolset and remains ABI-compatible. Teach tests VSExternalInclude, RunCMake.GeneratorPlatform, and RunCMake.GeneratorToolset to treat VS 15 as they do VS 10-14. Closes: #16143
* | | ExternalData: Tolerate files duplicated across multiple targetsBrad King2016-09-073-0/+27
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If multiple ExternalData_Target_Add calls generate the same output file then we need to avoid calling add_custom_command multiple times with that output. This was already done within a single target by setting a variable in the local function scope. This will not be visible in other calls though so we need to use a directory property instead to prevent adding a custom command multiple times for one output in a directory. Normally it is not safe to have multiple custom commands that produce the same output file across multiple independent targets, but since we use atomic replacement of outputs the resulting races should not be a problem. For the convenience of projects, tolerate this instead of diagnosing it. In particular, we previously allowed up to two copies of the custom command in one directory because CMake has a fallback from MAIN_DEPENDENCY to an `<output>.rule` file. While at it, add a note to the documentation that typically only one external data target should be needed for a project. Reported-by: David Manthey <david.manthey@kitware.com>
* | Merge topic 'cpack-deb-package-description-fallback'Brad King2016-09-074-7/+10
|\ \ | | | | | | | | | | | | 332b089a CPack/DEB: Make package description variable precedence match RPM
| * | CPack/DEB: Make package description variable precedence match RPMDomen Vrankar2016-09-074-7/+10
| |/ | | | | | | | | | | | | | | | | Make `CPACK_DEBIAN_PACKAGE_DESCRIPTION` fallback variable precedence match CPackRPM behavior as much as possible. This is technically a breaking change, but the new behavior is more consistent with expectation anyway. Closes: #16272
* | cmMakefile: Restore nested error logic use of cmExecutionStatusBrad King2016-09-065-0/+45
|/ | | | | | | | | | | | | | Since commit 14a8d61f (cmMakefile: Port nested error logic away from cmExecutionStatus) we fail to continue processing function and macro bodies after non-fatal errors. A non-fatal error should not stop foreach loops, macro bodies, nested bodies, or the outer script. Add a test covering these cases, and revert the change to fix them. Also revert commit 2af853de (cmMakefile: Simplify IssueMessage implementation) because the assertion it added (which was removed by the above commit and is restored by reverting it) is incorrect. We do have code paths that call cmMakefile::IssueMessage with an empty execution stack, such as in CheckForUnusedVariables's LogUnused call.
* Merge topic 'genex-LINK_ONLY-not-linking'Brad King2016-09-064-0/+11
|\ | | | | | | | | f6fd0abc Genex: Diagnose invalid LINK_ONLY usage instead of crashing
| * Genex: Diagnose invalid LINK_ONLY usage instead of crashingBrad King2016-09-054-0/+11
| | | | | | | | | | | | | | | | When `$<LINK_ONLY:...>` is used outside of linking we may evaluate it without a `dagChecker`. Do not dereference the NULL pointer and issue a diagnostic instead. Closes: #16287
* | Merge topic 'test-GenerateExportHeader-with-RunCMake'Brad King2016-09-0639-50/+38
|\ \ | | | | | | | | | | | | | | | | | | 72ecdd34 Tests: Cleanup RunCMake.GenerateExportHeader somewhat fc3dab0e Tests: Port GenerateExportHeader test to RunCMake infrastructure 4feba34d GNU: Do not use -fvisibility on AIX or HP-UX
| * | Tests: Cleanup RunCMake.GenerateExportHeader somewhatBrad King2016-09-0511-51/+14
| | |
| * | Tests: Port GenerateExportHeader test to RunCMake infrastructureBrad King2016-09-0540-1/+26
| | | | | | | | | | | | This will allow build failure cases to be added later.
* | | Merge topic 'cpack-deb-long-filenames'Brad King2016-09-067-0/+59
|\ \ \ | | | | | | | | | | | | | | | | 4ffdd564 CPack/DEB: Add option to select archive type
| * | | 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
* | | Merge topic 'macro-parenthesis'Brad King2016-09-062-3/+3
|\ \ \ | | | | | | | | | | | | | | | | 1a9de803 surround macro arguments with parentheses
| * | | surround macro arguments with parenthesesDaniel Pfeifer2016-09-052-3/+3
| |/ /
* | | use CM_NULLPTRDaniel Pfeifer2016-09-052-2/+3
|/ /
* | Tests/CMakeLib: include what you useDaniel Pfeifer2016-09-033-4/+7
| |
* | Tests/CMakeLib: use cmsys::ifstreamDaniel Pfeifer2016-09-032-10/+16
|/
* Merge topic '16101-xcode-fix-directory-exclude-from-all'Brad King2016-08-317-0/+36
|\ | | | | | | | | df32e564 Xcode: Add targets marked as EXCLUDE_FROM_ALL to project (#16101)
| * Xcode: Add targets marked as EXCLUDE_FROM_ALL to project (#16101)Gregor Jasny2016-08-317-0/+36
| |
* | Merge topic 'FindMatlab-additional-components'Brad King2016-08-312-0/+24
|\ \ | | | | | | | | | | | | bf09271b FindMatlab: adding handling of component "MAT"
| * | FindMatlab: adding handling of component "MAT"Raffi Enficiaud2016-08-302-0/+24
| | | | | | | | | | | | | | | | | | - documentation - test - cosmetic changes
* | | Merge topic 'syntax-unexpected-eof'Brad King2016-08-314-0/+9
|\ \ \ | | | | | | | | | | | | | | | | 1dda2ec5 Improve error message on unexpected end of file
| * | | Improve error message on unexpected end of fileBrad King2016-08-304-0/+9
| | | | | | | | | | | | | | | | Suggested-by: Stephen Kelly <steveire@gmail.com>
* | | | Merge topic 'import-libuv'Brad King2016-08-314-0/+38
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 39ac889d cmake: Add trivial usage of libuv 7cf369fe Do not build libuv on HP-UX 075cae51 Do not build libuv on SPARC 9a53af40 Do not build libuv on Cygwin 219f7411 Do not build libuv on Mac OS X 10.4 and lower 8a5beef3 Add option to build CMake against a system libuv e56aa462 FindLibUV: Add module to find libuv package 551d5aed libuv: Fix unused variable warning in uv_loop_close f4f8074b libuv: Avoid including macOS CoreServices header globally a63aaaed libuv: Always include our own header first 9130b53a libuv: Conditionally declare Windows APIs for VS 2008 and below b52afa46 libuv: Fix anonymous union syntax 05dbc204 libuv: Fix Windows API function typedef syntax 75139374 libuv: Install LICENSE file with CMake documentation 95dcc4e4 libuv: Disable warnings to avoid changing 3rd party code 13b7e758 libuv: Build the library within CMake ...
| * | | | FindLibUV: Add module to find libuv packageBrad King2016-08-314-0/+38
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Add it to a private source directory that is not installed so that we can use it for building CMake itself. This will allow it to mature before being distributed publicly.
* | | | Utilities/Release: Drop Linux 32-bit binaryBrad King2016-08-301-2/+0
| |/ / |/| | | | | | | | | | | | | | | | | The Linux distro we've been using for this is so old that it limits our ability to import newer third-party software. Until a new machine can be configured to provide this binary we can simply drop it. Users will still be able to build from source or use a distro-provided version.
* | | Merge topic 'ninja-add_custom_command-depfile'Brad King2016-08-307-0/+34
|\ \ \ | |_|/ |/| | | | | | | | 048d1adb add_custom_command: Add DEPFILE option for Ninja