hackport-0.6.3: cabal/cabal-testsuite/PackageTests/NewBuild/T4375/cabal.test.hs
import Test.Cabal.Prelude
main = withShorterPathForNewBuildStore $ \storeDir ->
cabalTest $ do
-- Don't run this test unless the GHC is sufficiently recent
-- to not ship boot old-time/old-locale
skipUnless =<< ghcVersionIs (>= mkVersion [7,11])
-- Don't run this test on GHC 8.2, which ships with Cabal 2.0,
-- which is not eligible for old-style Custom setup (if
-- we had the full Hackage index, we'd try it.)
skipUnless =<< ghcVersionIs (< mkVersion [8,1])
withRepo "repo" $ do
cabalG ["--store-dir=" ++ storeDir] "new-build" ["a"]