repo.or.cz
/
cabal.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(cabal check) Add "Autogen include" test for ts
[cabal.git]
/
cabal-testsuite
/
PackageTests
/
NewBuild
/
CmdRun
/
ExeAndLib
/
cabal.test.hs
blob
c664ab54c8fe5bf061e5263a55f5762e33008551
1
import
Test
.
Cabal
.
Prelude
2
import
Control
.
Monad
( (>=>) )
3
main
=
cabalTest
$
do
4
-- the exe
5
cabal
'
"v2-run"
[
"foo"
] >>=
assertOutputContains
"Hello World"
6
-- the lib
7
fails
(
cabal
'
"v2-run"
[
"ExeAndLib"
]) >>=
assertOutputDoesNotContain
"Hello World"
8