Add a check of the current behaviour importing duplicates
[cabal.git] / cabal-testsuite / PackageTests / SDist / Respect-Project-File / Projects-Default-Yes / cabal.dot-uv.test.hs
blob3c0f776a70ca34d7f360e4480e8ef44d33fb7777
1 import Test.Cabal.Prelude
3 -- cabal.dot-uv.project has "packages: .". That package is uv.cabal but "cabal
4 -- sdist" writes sdist/p-0.1.tar.gz and sdist/q-0.1.tar.gz instead of the
5 -- expected sdist/uv-0.1.tar.gz. That is wrong, "cabal sdist" should respect
6 -- the "--project-file" option but instead picks up the default "cabal.project"
7 -- that has "packages: p/ q/".
8 --
9 -- TODO: Fix this behaviour and apply the patch cabal.dot-uv.patch to update the
10 -- expected output to what we'd expect if "cabal sdist" respected the project.
11 main = cabalTest . withProjectFile "cabal.dot-uv.project" $ do
12 cabal "sdist" ["all"]