Add cyclical import tests with 1 and 2 hops in cycle
[cabal.git] / cabal-testsuite / PackageTests / NewSdist / MultiTarget / list-sources-output-dir.test.hs
blob3f119909e0f4e5b562bcf7516dafee44aabae785
1 import Test.Cabal.Prelude
2 import System.Directory
3 import System.FilePath
4 main = cabalTest $ withSourceCopy $ do
5 cwd <- fmap testCurrentDir getTestEnv
6 liftIO $ createDirectoryIfMissing False $ cwd </> "lists"
7 cabal "v2-sdist" ["all", "--list-only", "--output-dir", "lists"]
8 assertFindInFile (normalise "a/a.cabal") (cwd </> "lists/a-0.1.list")
9 assertFindInFile (normalise "b/b.cabal") (cwd </> "lists/b-0.1.list")