Add test project in cabal file

This commit is contained in:
scturtle 2015-08-18 15:33:18 +08:00 committed by Daniel Gröber
parent ba13688413
commit cbb8feb0ad
2 changed files with 7 additions and 2 deletions

View File

@ -85,6 +85,11 @@ Extra-Source-Files: ChangeLog
test/data/file-mapping/preprocessor/*.hs
test/data/file-mapping/lhs/*.lhs
test/data/nice-qualification/*.hs
test/data/stack-project/new-template.cabal
test/data/stack-project/Setup.hs
test/data/stack-project/app/Main.hs
test/data/stack-project/src/Lib.hs
test/data/stack-project/test/Spec.hs
Library
Default-Language: Haskell2010

View File

@ -56,12 +56,12 @@ spec = do
then forM_ opts (\o -> o `shouldContain` ["-no-user-package-conf","-package-conf", cwd </> "test/data/cabal-project/.cabal-sandbox/"++ghcSandboxPkgDbDir bp])
else forM_ opts (\o -> o `shouldContain` ["-no-user-package-db","-package-db",cwd </> "test/data/cabal-project/.cabal-sandbox/"++ghcSandboxPkgDbDir bp])
{- it "handles stack project" $ do
it "handles stack project" $ do
let tdir = "test/data/stack-project"
opts <- map gmcGhcOpts <$> runD' tdir getComponents
let ghcOpts = head opts
pkgs = pkgOptions ghcOpts
pkgs `shouldBe` ["Cabal","base","new-template"] -}
pkgs `shouldBe` ["Cabal","base","new-template"]
it "extracts build dependencies" $ do
let tdir = "test/data/cabal-project"