1 import Test
.Cabal
.Prelude
2 import Control
.Monad
.IO.Class
4 import System
.Directory
5 import System
.Environment
6 import Data
.List
(isSuffixOf)
8 -- Test for 'build-type: Configure' example from the setup manual.
12 (mCI
, mSh
) <- liftIO
$ (,) <$> lookupEnv
"CI" <*> lookupEnv
"SHELL"
14 (Nothing
, Nothing
) -> skip
"Missing $SHELL"
15 (Nothing
, Just sh
) -> do
17 void
$ shell sh
[ "-l", "-c", "cd $(cygpath -m '" <> testTmpDir env
<> "') && autoreconf -i"]
21 void
$ shell
"C:\\msys64\\usr\\bin\\bash.exe" [ "-l", "-c", "cd $(cygpath -m '" <> testTmpDir env
<> "') && autoreconf -i"]
24 hasAutoreconf
<- liftIO
$ fmap isJust $ findExecutable
"autoreconf"
25 skipUnless
"no autoreconf" hasAutoreconf
26 _
<- shell
"autoreconf" ["-i"]