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:
Brad King
2013-01-24 14:12:10 -05:00
parent aa8b2288d3
commit ee2abfdc89
17 changed files with 51 additions and 2 deletions

View File

@@ -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}

View File

@@ -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}")

View File

@@ -0,0 +1 @@
SeriesMixed.1

View File

@@ -0,0 +1 @@
* -crlf

View File

@@ -0,0 +1 @@
SeriesMixed.2

View File

@@ -0,0 +1 @@
* -crlf

View File

@@ -0,0 +1 @@
* -crlf

View File

@@ -0,0 +1 @@
ce38ea6c3c1e00fa6405dd64b8bf6da0

View File

@@ -0,0 +1 @@
2af59a7022024974f3b8521b7ed8137c996a79f1

View File

@@ -0,0 +1 @@
3b679da7908562fe1cc28db47ffb89bae025f4551dceb343a5869174

View File

@@ -0,0 +1 @@
969171a0dd70d49ce096bd3e8178c7e26c711c9b20dbcaa3853d869d3871f133