From 2183fd2abd95b6deaa9baef47e2f9c5f865123e1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 31 May 2012 23:15:40 -0400 Subject: Require that the SHA256 backend can be used when building, since it's the default. --- Build/Configure.hs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Build/Configure.hs') diff --git a/Build/Configure.hs b/Build/Configure.hs index 341b8840d..86a347924 100644 --- a/Build/Configure.hs +++ b/Build/Configure.hs @@ -26,15 +26,16 @@ tests = , TestCase "bup" $ testCmd "bup" "bup --version >/dev/null" , TestCase "gpg" $ testCmd "gpg" "gpg --version >/dev/null" , TestCase "ssh connection caching" getSshConnectionCaching - ] ++ shaTestCases [1, 256, 512, 224, 384] + ] ++ shaTestCases False [1, 512, 224, 384] ++ shaTestCases True [256] -shaTestCases :: [Int] -> [TestCase] -shaTestCases l = map make l +shaTestCases :: Bool -> [Int] -> [TestCase] +shaTestCases required l = map make l where make n = let cmds = map (\x -> "sha" ++ show n ++ x) ["", "sum"] key = "sha" ++ show n - in TestCase key $ maybeSelectCmd key cmds "