Merge pull request #10662 from haskell/ulysses4ever-prerelease-cleanup-fixup
[cabal.git] / cabal-testsuite / PackageTests / NewSdist / MultiTarget / all-output-dir.test.hs
blob5ebe61befbea03d41bb77a60b6c9e87d1dd4b79b
1 import Test.Cabal.Prelude
2 import System.Directory
3 main = cabalTest $ do
4 cwd <- fmap testCurrentDir getTestEnv
5 liftIO $ createDirectoryIfMissing False $ cwd </> "archives"
6 cabal "v2-sdist" ["all", "--output-dir", "archives"]
7 shouldNotExist $ cwd </> "dist-newstyle/sdist/a-0.1.tar.gz"
8 shouldNotExist $ cwd </> "dist-newstyle/sdist/b-0.1.tar.gz"
9 shouldExist $ cwd </> "archives/a-0.1.tar.gz"
10 shouldExist $ cwd </> "archives/b-0.1.tar.gz"