File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
test/integration/tests/443-specify-path Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11import StackTest
22import System.Directory
33import System.FilePath
4+ import System.Info (os )
45
56main :: IO ()
67main = do
8+ let ext = if os == " mingw32" then " .exe" else " "
9+
710 -- install in relative path
811 createDirectory " bin"
912 stack [" --local-bin-path" , " ./bin" , " install" , " happy" ]
10- doesExist " ./bin/happy"
13+ doesExist ( " ./bin/happy" ++ ext)
1114
1215 -- Default install
1316 -- This seems to fail due to direcory being cleaned up,
1417 -- a manual test of the default stack install is required
1518 -- defaultDir <- getAppUserDataDirectory "local"
1619 -- stack ["install", "happy"]
17- -- doesExist (defaultDir ++ "/bin/happy")
20+ -- doesExist (defaultDir ++ "/bin/happy" ++ ext )
1821
1922 -- install in current dir
2023 stack [" --local-bin-path" , " ." , " install" , " happy" ]
21- doesExist " happy"
24+ doesExist ( " happy" ++ ext)
2225
2326 -- install in absolute path
2427 tmpDirectory <- fmap (</> " absolute-bin" ) getCurrentDirectory
2528 createDirectory tmpDirectory
2629 stack [" --local-bin-path" , tmpDirectory, " install" , " happy" ]
27- doesExist (tmpDirectory </> " happy" )
30+ doesExist (tmpDirectory </> ( " happy" ++ ext) )
You can’t perform that action at this time.
0 commit comments