hledger/checks/20-ghc-pkg-check.test
Simon Michael 2d6b2008f5 tools: "make check" tests the dev environment
Fed up with GHC/cabal constantly assaulting me like Cato in a Pink
Panther movie, here are some shell tests to give me some
warning/reassurance about the dev setup on various machines.
Thou Shalt Not Reimplement Autoconf, but perhaps a little cross-platform
test suite focussed on my needs is a reasonable idea.
2014-08-13 15:44:11 -07:00

5 lines
209 B
Plaintext

# ghc-pkg check (or the sandbox equivalent) reports no errors
[[ -e cabal.sandbox.config ]] && cabal sandbox hc-pkg check || ghc-pkg check
>>>2 !/(There are problems|The following packages are broken)/
>>>= 0