Merge pull request #10493 from Sdywolf/doc-refine/repl
[cabal.git] / cabal-testsuite / PackageTests / ShowBuildInfo / A / remove-outdated.test.hs
blobf2f0c4302fcaf10a2555009d21593b03745d681d
1 {-# LANGUAGE OverloadedStrings #-}
2 import Test.Cabal.Prelude
3 import Test.Cabal.DecodeShowBuildInfo
4 import Test.Cabal.Plan
5 import Control.Monad.Trans.Reader
7 main = cabalTest $ do
8 runShowBuildInfo ["exe:A"]
9 withPlan $ do
10 assertComponent "A" (exe "A")
11 defCompAssertion
12 { sourceFiles = ["Main.hs"]
13 , sourceDirs = ["src"]
14 -- does not list lib as a target
15 , compilerArgsPred = all (/= "A-0.1.0.0-inplace")
18 cabal' "v2-build" ["exe:A", "--disable-build-info"]
19 withPlan $ do
20 Just plan <- fmap testPlan ask
21 let fp = buildInfoFile plan "A" (exe "A")
22 shouldNotExist fp