Reimplement `cabal check` (#8427)
[cabal.git] / cabal-testsuite / PackageTests / CustomPreProcess / cabal.test.hs
blob93588d88c3f9b9efca7be9632d51d8325892c992
1 import Test.Cabal.Prelude
2 -- Test internal custom preprocessor
3 main = cabalTest $ do
4 skipUnless "no Cabal for GHC" =<< hasCabalForGhc
6 -- old Cabal's ./Setup.hs output is difficult to normalise
7 recordMode DoNotRecord $
8 cabal "v2-build" []
10 -- here, we only care that result works:
11 withPlan $ do
12 r <- runPlanExe' "internal-preprocessor-test" "hello-world" []
13 assertOutputContains "hello from A" r