packages feed

hackport-0.8.0.0: cabal/cabal-testsuite/PackageTests/NewBuild/CmdRepl/Script/cabal.test.hs

import Test.Cabal.Prelude

main = cabalTest . void $ do
    res <- cabalWithStdin "v2-repl" ["script.hs"] ":main"
    assertOutputContains "Hello World" res

    env      <- getTestEnv
    cacheDir <- getScriptCacheDirectory $ testCurrentDir env </> "script.hs"

    shouldExist $ cacheDir </> "fake-package.cabal"
    shouldExist $ cacheDir </> "scriptlocation"