mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
ExternalData: Add support for SHA 1 and 2 hash algorithms
Update the Module.ExternalData and RunCMake.ExternalData tests to cover some of them.
This commit is contained in:
@@ -22,6 +22,7 @@ ExternalData_Add_Test(Data1
|
||||
-D SeriesBn=DATA{SeriesBn_1.dat,:}
|
||||
-D SeriesCn=DATA{SeriesCn.1.dat,:}
|
||||
-D SeriesDn=DATA{SeriesDn-1.dat,:}
|
||||
-D SeriesMixed=DATA{SeriesMixed.1.dat,:}
|
||||
-D Paired=DATA{PairedA.dat,PairedB.dat}
|
||||
-D Meta=DATA{MetaTop.dat,REGEX:Meta[ABC].dat}
|
||||
-D Directory=DATA{Directory/,A.dat,REGEX:[BC].dat}
|
||||
|
||||
@@ -26,6 +26,12 @@ foreach(s A B C D)
|
||||
endif()
|
||||
endforeach()
|
||||
endforeach()
|
||||
foreach(n .1 .2 .3 .4)
|
||||
string(REGEX REPLACE "\\.1\\.dat$" "${n}.dat" file "${SeriesMixed}")
|
||||
if(NOT EXISTS "${file}")
|
||||
message(SEND_ERROR "Input file:\n ${file}\ndoes not exist!")
|
||||
endif()
|
||||
endforeach()
|
||||
foreach(n A B)
|
||||
string(REGEX REPLACE "A\\.dat$" "${n}.dat" file "${Paired}")
|
||||
if(NOT EXISTS "${file}")
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
SeriesMixed.1
|
||||
1
Tests/Module/ExternalData/SHA1/.gitattributes
vendored
Normal file
1
Tests/Module/ExternalData/SHA1/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* -crlf
|
||||
@@ -0,0 +1 @@
|
||||
SeriesMixed.2
|
||||
1
Tests/Module/ExternalData/SHA224/.gitattributes
vendored
Normal file
1
Tests/Module/ExternalData/SHA224/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* -crlf
|
||||
@@ -0,0 +1 @@
|
||||
SeriesMixed.3
|
||||
1
Tests/Module/ExternalData/SHA256/.gitattributes
vendored
Normal file
1
Tests/Module/ExternalData/SHA256/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
* -crlf
|
||||
@@ -0,0 +1 @@
|
||||
SeriesMixed.4
|
||||
1
Tests/Module/ExternalData/SeriesMixed.1.dat.md5
Normal file
1
Tests/Module/ExternalData/SeriesMixed.1.dat.md5
Normal file
@@ -0,0 +1 @@
|
||||
ce38ea6c3c1e00fa6405dd64b8bf6da0
|
||||
1
Tests/Module/ExternalData/SeriesMixed.2.dat.sha1
Normal file
1
Tests/Module/ExternalData/SeriesMixed.2.dat.sha1
Normal file
@@ -0,0 +1 @@
|
||||
2af59a7022024974f3b8521b7ed8137c996a79f1
|
||||
1
Tests/Module/ExternalData/SeriesMixed.3.dat.sha224
Normal file
1
Tests/Module/ExternalData/SeriesMixed.3.dat.sha224
Normal file
@@ -0,0 +1 @@
|
||||
3b679da7908562fe1cc28db47ffb89bae025f4551dceb343a5869174
|
||||
1
Tests/Module/ExternalData/SeriesMixed.4.dat.sha256
Normal file
1
Tests/Module/ExternalData/SeriesMixed.4.dat.sha256
Normal file
@@ -0,0 +1 @@
|
||||
969171a0dd70d49ce096bd3e8178c7e26c711c9b20dbcaa3853d869d3871f133
|
||||
Reference in New Issue
Block a user