Michael Snoyman 2014-10-21 11:45:45 +03:00
parent 61c70424f8
commit 6de04c4feb
4 changed files with 22 additions and 5 deletions

View File

@ -27,6 +27,10 @@ defaultBuildSettings :: Maybe Int -- ^ argument to -j
defaultBuildSettings cores version = BuildSettings
{ sandboxRoot = "sandbox"
, expectedFailuresBuild = defaultExpectedFailures version
-- FIXME This is a hack. In fact, this whole thing is a hack. The
-- expected failures should be written to the build-plan.txt file and
-- read from there.
False
, extraArgs = \bs -> "-fnetwork23" : "-fhttps" :
case bs of
BSTest -> []

View File

@ -20,8 +20,9 @@ defaultExtraCore _ = fromList $ map PackageName $ words
-- will still be run and logs kept, but a failure will not indicate an
-- error in our package combination.
defaultExpectedFailures :: GhcMajorVersion
-> Bool -- ^ haskell platform
-> Set PackageName
defaultExpectedFailures ghcVer = execWriter $ do
defaultExpectedFailures ghcVer requireHP = execWriter $ do
-- Requires an old version of WAI and Warp for tests
add "HTTP"
@ -219,6 +220,16 @@ defaultExpectedFailures ghcVer = execWriter $ do
-- Requires locally running server
add "bloodhound"
when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
-- https://github.com/ndmitchell/extra/issues/2
add "extra"
-- https://github.com/vincenthz/hs-asn1/issues/11
add "asn1-encoding"
-- https://github.com/vincenthz/hs-tls/issues/84
add "tls"
where
add = tell . singleton . PackageName

View File

@ -18,10 +18,12 @@ import Stackage.InstallInfo
import Stackage.Types
import Stackage.Util
defaultSelectSettings :: GhcMajorVersion -> SelectSettings
defaultSelectSettings version = SelectSettings
defaultSelectSettings :: GhcMajorVersion
-> Bool -- ^ haskell platform?
-> SelectSettings
defaultSelectSettings version requireHP = SelectSettings
{ extraCore = defaultExtraCore version
, expectedFailuresSelect = defaultExpectedFailures version
, expectedFailuresSelect = defaultExpectedFailures version requireHP
, stablePackages = defaultStablePackages version
, haskellPlatformDir = "hp"
, requireHaskellPlatform = True

View File

@ -103,7 +103,7 @@ main = do
SelectArgs {..} <- parseSelectArgs rest
ghcVersion <- getGhcVersion
bp <- select
(defaultSelectSettings ghcVersion)
(defaultSelectSettings ghcVersion $ not noPlatform)
{ excludedPackages = fromList $ map PackageName excluded
, requireHaskellPlatform = not noPlatform
, ignoreUpgradeableCore = ignoreUpgradeable