Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
a9609ee0
Commit
a9609ee0
authored
Jun 21, 2018
by
quasicomputational
Committed by
Alexis Williams
Jun 24, 2018
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
cabal-testsuite/PackageTests/NewSdist/MultiTarget/valid-and-test-suite.out
View file @
a9609ee0
# cabal new-sdist
cabal: The
packag
e a-test cannot be packaged for distribution
, because it is not local to this project
.
cabal: The
component test suit
e
'
a-test
s'
cannot be packaged for distribution
on its own. Only entire packages may be packaged for distribution
.
cabal-testsuite/PackageTests/NewSdist/MultiTarget/valid-and-test-suite.test.hs
View file @
a9609ee0
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-test
s
"
]
shouldNotExist
$
cwd
</>
"dist-newstyle/sdist/a-0.1.tar.gz"
shouldNotExist
$
cwd
</>
"dist-newstyle/sdist/b-0.1.tar.gz"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment