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