diff options
author | Brad King <brad.king@kitware.com> | 2015-02-25 13:11:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-25 13:28:05 (GMT) |
commit | f7f4ca55bde68b174b7542fe417426a7cbf76fe3 (patch) | |
tree | ae52bbf6b9dd2af24e63661542f736cb7b06886c /Tests/RunCMake/ExternalData/BadAlgoMap1-stderr.txt | |
parent | ac80f0f95fc7cfbad17c2a5656a87e346b9f298a (diff) | |
download | CMake-f7f4ca55bde68b174b7542fe417426a7cbf76fe3.zip CMake-f7f4ca55bde68b174b7542fe417426a7cbf76fe3.tar.gz CMake-f7f4ca55bde68b174b7542fe417426a7cbf76fe3.tar.bz2 |
ExternalData: Add support for custom algorithm-to-URL mapping
Allow URL templates to contain a %(algo:<key>) placeholder that is
replaced by mapping the canonical hash algorithm name through a map
defined by the <key>.
Extend the Module.ExternalData test to cover the behavior.
Extend the RunCMake.ExternalData test to cover error cases.
Diffstat (limited to 'Tests/RunCMake/ExternalData/BadAlgoMap1-stderr.txt')
-rw-r--r-- | Tests/RunCMake/ExternalData/BadAlgoMap1-stderr.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalData/BadAlgoMap1-stderr.txt b/Tests/RunCMake/ExternalData/BadAlgoMap1-stderr.txt new file mode 100644 index 0000000..c3708a9 --- /dev/null +++ b/Tests/RunCMake/ExternalData/BadAlgoMap1-stderr.txt @@ -0,0 +1,9 @@ +CMake Error at .*/Modules/ExternalData.cmake:[0-9]+ \(message\): + Bad %\(algo:\) in URL template: + + file:///path/to/%\(algo:\)/%\(hash\) + + The transform name must be a valid C identifier. +Call Stack \(most recent call first\): + BadAlgoMap1.cmake:[0-9]+ \(ExternalData_Add_Target\) + CMakeLists.txt:3 \(include\) |