summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-11-27 17:31:20 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-11-27 17:31:20 -0400
commit1f9ce9e9a5f6d7eaf149f42de559cb9830c7f28e (patch)
treeb936920fb874842a1794e6d6199eb85c11008d27
parentf8d463b1b76fb5865dfffd5ab4a1205595c1a2b3 (diff)
tweak
-rw-r--r--configure.hs18
1 files changed, 9 insertions, 9 deletions
diff --git a/configure.hs b/configure.hs
index 7d3fc0127..92a051c80 100644
--- a/configure.hs
+++ b/configure.hs
@@ -6,7 +6,7 @@ import System.Exit
import System.Directory
type Test = IO Bool
-data TestDesc = TestDesc String String Test
+data TestCase = TestCase String String Test
data Config = Config String Bool
instance Show Config where
@@ -15,13 +15,13 @@ instance Show Config where
, key ++ " = " ++ show value
]
-tests :: [TestDesc]
+tests :: [TestCase]
tests = [
- TestDesc "cp -a" "cp_a" $ testCp "-a"
- , TestDesc "cp -p" "cp_p" $ testCp "-p"
- , TestDesc "cp --reflink=auto" "cp_reflink_auto" $ testCp "--reflink=auto"
- , TestDesc "uuid" "uuid" $ requireCommand "uuid" "uuid"
- , TestDesc "xargs -0" "xargs_0" $ requireCommand "xargs -0" "xargs -0 </dev/null"
+ TestCase "cp -a" "cp_a" $ testCp "-a"
+ , TestCase "cp -p" "cp_p" $ testCp "-p"
+ , TestCase "cp --reflink=auto" "cp_reflink_auto" $ testCp "--reflink=auto"
+ , TestCase "uuid" "uuid" $ requireCommand "uuid" "uuid"
+ , TestCase "xargs -0" "xargs_0" $ requireCommand "xargs -0" "xargs -0 </dev/null"
]
tmpDir :: String
@@ -70,9 +70,9 @@ writeSysConfig config = writeFile "SysConfig.hs" body
]
footer = []
-runTests :: [TestDesc] -> IO [Config]
+runTests :: [TestCase] -> IO [Config]
runTests [] = return []
-runTests ((TestDesc tname key t):ts) = do
+runTests ((TestCase tname key t):ts) = do
testStart tname
val <- t
testEnd val