Commit 6d3a00a1 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Port exec/can_run_executables_installed_in_sandbox to new test suite

Signed-off-by: default avatarEdward Z. Yang <>
parent 322214cc
. ./
cabal sandbox delete > /dev/null
cabal exec my-executable && die "Unexpectedly found executable"
cabal sandbox init > /dev/null
cabal install > /dev/null
cabal exec my-executable || die "Did not find executable"
import Test.Cabal.Prelude
main = cabalTest $ do
withSandbox $ do
fails $ cabal "exec" ["my-executable"]
cabal "install" []
cabal' "exec" ["my-executable"]
>>= assertOutputContains "This is my-executable"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment