(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / Regression / T3294 / setup.test.hs
blob810a4202b3a31620c9c7d108d8c017f3a157b0ad
1 import Test.Cabal.Prelude
2 import Control.Monad.IO.Class
3 -- Test that executable recompilation works
4 -- https://github.com/haskell/setup/issues/3294
5 main = setupAndCabalTest $ do
6 withSourceCopy . withDelay $ do
7 writeSourceFile "Main.hs" "main = putStrLn \"aaa\""
8 setup "configure" []
9 setup "build" []
10 runExe' "T3294" [] >>= assertOutputContains "aaa"
11 delay
12 writeSourceFile "Main.hs" "main = putStrLn \"bbb\""
13 setup "build" []
14 runExe' "T3294" [] >>= assertOutputContains "bbb"