hackport-0.6.4: cabal/cabal-testsuite/PackageTests/Regression/T4202/cabal.test.hs
import Test.Cabal.Prelude
main = cabalTest $
withSourceCopy . withDelay $ do
writeSourceFile ("p/P.hs") "module P where\np = \"AAA\""
cabal "v2-build" ["p","q"]
delay
writeSourceFile ("p/P.hs") "module P where\np = \"BBB\""
cabal "v2-build" ["p"]
cabal "v2-build" ["q"]
withPlan $
runPlanExe' "q" "qexe" []
>>= assertOutputContains "BBB"