Add test project in cabal file
This commit is contained in:
parent
ba13688413
commit
cbb8feb0ad
@ -85,6 +85,11 @@ Extra-Source-Files: ChangeLog
|
|||||||
test/data/file-mapping/preprocessor/*.hs
|
test/data/file-mapping/preprocessor/*.hs
|
||||||
test/data/file-mapping/lhs/*.lhs
|
test/data/file-mapping/lhs/*.lhs
|
||||||
test/data/nice-qualification/*.hs
|
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
|
Library
|
||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
|
@ -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])
|
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])
|
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"
|
let tdir = "test/data/stack-project"
|
||||||
opts <- map gmcGhcOpts <$> runD' tdir getComponents
|
opts <- map gmcGhcOpts <$> runD' tdir getComponents
|
||||||
let ghcOpts = head opts
|
let ghcOpts = head opts
|
||||||
pkgs = pkgOptions ghcOpts
|
pkgs = pkgOptions ghcOpts
|
||||||
pkgs `shouldBe` ["Cabal","base","new-template"] -}
|
pkgs `shouldBe` ["Cabal","base","new-template"]
|
||||||
|
|
||||||
it "extracts build dependencies" $ do
|
it "extracts build dependencies" $ do
|
||||||
let tdir = "test/data/cabal-project"
|
let tdir = "test/data/cabal-project"
|
||||||
|
Loading…
Reference in New Issue
Block a user