custom_setup_without_Cabal_doesnt_require_Cabal.sh 509 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
. ./common.sh
cd custom-setup-without-cabal

# This package has explicit setup dependencies that do not include Cabal.
# new-build should try to build it, even though the cabal-version cannot be
# satisfied by an installed version of Cabal (cabal-version: >= 99999). However,
# configure should fail because Setup.hs just prints an error message and exits.
! cabal new-build custom-setup-without-cabal > output 2>&1
cat output
grep -q "My custom Setup" output \
    || die "Expected output from custom Setup"