summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/StringTest.cmake.in
Commit message (Collapse)AuthorAgeFilesLines
* cmMakefile: Fix @CMAKE_CURRENT_LIST_LINE@ for ExpandVariablesInStringNewArtur Ryt2018-12-121-1/+1
| | | | | | | Added check for variable name in @@ evaluation and test for configuring @CMAKE_CURRENT_LIST_LINE@ with new CMP0053 Fixes: #18646
* cmMakefile: Fix ConfigureString not passing filename and lineArtur Ryt2018-12-121-1/+1
| | | | | | It enables to use CMAKE_CURRENT_LIST_LINE in string(CONFIGURE) Added tests for it for ${} and @@ notattion for old CMP0053 and ${} for new
* Tests: Fix TIMESTAMP-UnixTime test under SOURCE_DATE_EPOCH=1Bernhard M. Wiedemann2018-02-261-1/+1
| | | | | | | | The test was expecting timestamps on day 1 in 1970 to start at 86400 but they actually started at 0. This worked without `SOURCE_DATE_EPOCH=1` because after 1972, leap days compensated the offset. Fixes: #17762
* string: Add support for SHA-3 algorithmsBrad King2016-11-101-0/+12
|
* string(TIMESTAMP ...): add '%a' and '%b' format specifiersRuslan Baratov2016-09-121-0/+3
| | | | | %b: Abbreviated month name (e.g. Oct). %a: Abbreviated weekday name (e.g. Fri).
* CMake: Extend TIMESTAMP sub-commands with new unix time format specifierJose-Luis Blanco-Claraco2016-02-181-0/+6
| | | | | | | | The new `%s` format specifier is substituted by file()/string() `TIMESTAMP` sub-commands with the number of seconds since unix-epoch (1970-01-01 00:00:00 UTC). Co-Author: Nils Gladitz <nilsgladitz@gmail.com>
* string: Tolerate SUBSTRING length exceeding end indexDomen Vrankar2014-11-131-2/+2
| | | | | | string SUBSTRING command now ignores length if it points past end of string and uses end of string instead. String SUBSTRING tests now cover more corner cases.
* CMake: Add TIMESTAMP subcommand to string and file commandsNils Gladitz2012-12-051-0/+30
|
* Add string(MD5) and string(SHA*) commands to compute hashesBrad King2011-11-161-0/+32
| | | | | Provide a CMake-language binding to these cryptographic hashes. Add a string() command API for MD5, SHA1, SHA224, SHA256, SHA384, and SHA512.
* Add a string(FIND) sub-command (#11795)Tim Hütz2011-02-151-1/+1
|
* Add a few more cases to the new StringTest for even better coverage. ↵David Cole2009-10-031-74/+18
| | | | Re-factor the scripts to make it easier to add new cases to this test. Re-factoring also enables the test driver in ExecuteScriptTests to be re-used when adding new tests in the future.
* Correct some typos in error messages in the string command. Add a test that ↵David Cole2009-10-021-0/+74
covers more of the code implemented in cmStringCommand.cxx, especially the error handlers.