Skip to content
Snippets Groups Projects
Commit a9609ee0 authored by quasicomputational's avatar quasicomputational Committed by Alexis Williams
Browse files

Make sure that all failure paths in new-sdist are tested

This one wasn't actually testing what it said it was testing. Oops.
parent 1923b4a8
No related branches found
No related tags found
No related merge requests found
# cabal new-sdist
cabal: The package a-test cannot be packaged for distribution, because it is not local to this project.
cabal: The component test suite 'a-tests' cannot be packaged for distribution on its own. Only entire packages may be packaged for distribution.
import Test.Cabal.Prelude
main = cabalTest $ withSourceCopy $ do
cwd <- fmap testCurrentDir getTestEnv
fails $ cabal "new-sdist" ["a", "b", "a-test"]
fails $ cabal "new-sdist" ["a", "b", "a-tests"]
shouldNotExist $ cwd </> "dist-newstyle/sdist/a-0.1.tar.gz"
shouldNotExist $ cwd </> "dist-newstyle/sdist/b-0.1.tar.gz"
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