Un-ignore .bat files
[cabal.git] / cabal-testsuite / PackageTests / SetupHooks / SetupHooksNoBase / cabal.test.hs
blob83a13355cd6437cb9a8836449f9199ae9953b9ce
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'.
5 --
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
8 -- dependency on base.
9 main = cabalTest $ do
10 mpkgdb <- testPackageDbPath <$> getTestEnv
11 case mpkgdb of
12 Nothing -> skip "Cabal-hooks library unavailable."
13 Just _pkgdb -> recordMode DoNotRecord $ do
14 cabal "v2-build" [ "all" ]