Un-ignore .bat files
[cabal.git] / cabal-testsuite / PackageTests / BuildTools / Foreign / setup.test.hs
blob9860683f7b0372a1f4044c9a3ef052e07b948a04
1 import Test.Cabal.Prelude
3 import Control.Applicative ((<$>))
4 import Control.Monad.IO.Class
5 import System.Environment
7 -- Test PATH-munging
8 -- TODO: Enable this test on Windows
9 main = setupAndCabalTest $ do
10 skipIfWindows
11 path <- liftIO $ getEnv "PATH"
12 cwd <- testCurrentDir <$> getTestEnv
13 r <- withEnv [("PATH", Just $ cwd ++ ":" ++ path)] $ setup_build []
14 runExe' "hello-world" []
15 >>= assertOutputContains "1111"