Skip to content
Snippets Groups Projects
Commit 93dd4518 authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

Make tests use v2-sdist

parent ac7716f2
No related branches found
No related tags found
No related merge requests found
# cabal v1-sdist
List of package sources written to file '<TMPDIR>/sources'
List of package sources written to file '<TMPDIR>/sources'
# cabal v2-sdist
Wrote source list to <TMPDIR>/empty-data-dir-0.list
import Test.Cabal.Prelude
main = cabalTest $ do
tmpdir <- fmap testTmpDir getTestEnv
let fn = tmpdir </> "sources"
cabal "v1-sdist" ["--list-sources=" ++ fn]
let fn = tmpdir </> "empty-data-dir-0.list"
cabal "v2-sdist" ["--ignore-project", "--list-only", "--output-directory", tmpdir]
-- --list-sources outputs with slashes on posix and backslashes on Windows. 'normalise' converts our needle to the necessary format.
assertFileDoesContain fn $ normalise "foo.dat"
# cabal v1-sdist
# cabal v2-sdist
cabal: filepath wildcard './actually-a-directory' does not match any files.
import Test.Cabal.Prelude
main = cabalTest $ do
tmpdir <- fmap testTmpDir getTestEnv
let fn = tmpdir </> "sources"
res <- fails $ cabal' "v1-sdist" ["--list-sources=" ++ fn]
res <- fails $ cabal' "v2-sdist" ["--ignore-project", "--list-only", "--output-directory", tmpdir]
assertOutputContains "filepath wildcard './actually-a-directory' does not match any files" res
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment