Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
ef8a862e
Commit
ef8a862e
authored
Jun 23, 2007
by
nominolo@gmail.com
Browse files
Properly fix tests.
parent
84b20083
Changes
2
Hide whitespace changes
Inline
Side-by-side
Distribution/PackageDescription.hs
View file @
ef8a862e
...
...
@@ -1309,8 +1309,11 @@ testPkgDescAnswer =
options = [(GHC,[]),(Hugs,[]),(NHC,[]),(JHC,[])]
})]
}
-- #ifdef DEBUG
-}
hunitTests
::
[
Test
]
hunitTests
=
[]
{-
hunitTests = [
TestLabel "license parsers" $ TestCase $
sequence_ [assertParseOk ("license " ++ show lVal) lVal
...
...
@@ -1414,10 +1417,10 @@ assertParseOk mes expected actual
(case actual of
ParseOk _ v -> v == expected
_ -> False)
-}
test
::
IO
Counts
test
=
runTestTT
(
TestList
hunitTests
)
{-
------------------------------------------------------------------------------
test_stanzas' = readFields testFile >>= parseDescription'
...
...
tests/ModuleTest.hs
View file @
ef8a862e
...
...
@@ -69,7 +69,7 @@ import qualified Distribution.Simple.GHCPackageConfig
as
GHC
(
localPackageConfig
,
maybeCreateLocalPackageConfig
)
import
Distribution.Simple.Configure
(
configCompiler
)
import
Distribution.Verbosity
(
silent
)
-- base
import
Data.List
(
intersperse
)
import
Control.Monad
(
when
)
...
...
@@ -484,7 +484,7 @@ main = do putStrLn "compile successful"
compilers
=
[
GHC
]
--, Hugs]
globalTests
<-
flip
mapM
compilers
$
\
compilerFlavour
->
do
compiler
<-
configCompiler
(
Just
compilerFlavour
)
Nothing
Nothing
0
compiler
<-
configCompiler
(
Just
compilerFlavour
)
Nothing
Nothing
silent
let
version
=
compilerVersion
compiler
runTestTT'
$
TestList
(
testList
compilerFlavour
version
)
putStrLn
"-------------"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment