hackport-0.6.4: cabal/cabal-testsuite/PackageTests/NewBuild/CmdRun/ExeAndLib/cabal.test.hs
import Test.Cabal.Prelude
import Control.Monad ( (>=>) )
main = cabalTest $ do
-- the exe
cabal' "v2-run" ["foo"] >>= assertOutputContains "Hello World"
-- the lib
fails (cabal' "v2-run" ["ExeAndLib"]) >>= assertOutputDoesNotContain "Hello World"