1 import Test
.Cabal
.Prelude
3 -- Test that we can compile the Setup.hs script for a package with
4 -- build-type:Hooks without requiring a dependency on 'base'.
6 -- NB: we specifically don't include a 'Setup.hs' file in this package,
7 -- as we rely on 'cabal-install' generating one that does not incur an extra
10 mpkgdb
<- testPackageDbPath
<$> getTestEnv
12 Nothing
-> skip
"Cabal-hooks library unavailable."
13 Just _pkgdb
-> recordMode DoNotRecord
$ do
14 cabal
"v2-build" [ "all" ]