diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-01 17:07:15 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-01 17:07:15 -0400 |
commit | 1b9c4477fb542cddbb05012a52c602eb203b2d83 (patch) | |
tree | cfd188f22919147efab10deb00e9a3bfea6c0236 /configure.hs | |
parent | b7f4801801aa8b8e20ea82261b193a73b7fec799 (diff) |
New backends: SHA512 SHA384 SHA256 SHA224
Diffstat (limited to 'configure.hs')
-rw-r--r-- | configure.hs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.hs b/configure.hs index b5437ec1a..772ba5489 100644 --- a/configure.hs +++ b/configure.hs @@ -11,11 +11,17 @@ tests = [ , testCp "cp_p" "-p" , testCp "cp_reflink_auto" "--reflink=auto" , TestCase "uuid generator" $ selectCmd "uuid" ["uuid", "uuidgen"] - , TestCase "sha1sum" $ requireCmd "sha1sum" "sha1sum </dev/null" , TestCase "xargs -0" $ requireCmd "xargs_0" "xargs -0 </dev/null" , TestCase "rsync" $ requireCmd "rsync" "rsync --version >/dev/null" , TestCase "unicode FilePath support" $ unicodeFilePath - ] + ] ++ shaTestCases [1, 256, 512, 224, 384] + +shaTestCases :: [Int] -> [TestCase] +shaTestCases l = map make l + where + make n = + let cmd = "sha" ++ show n ++ "sum" + in TestCase cmd $ requireCmd cmd (cmd ++ " </dev/null") tmpDir :: String tmpDir = "tmp" |