Skip to content

Commit

Permalink
try to account for windows with exe extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
kadoban committed Aug 14, 2017
1 parent 8271c5c commit c3de3e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/integration/tests/2643-copy-compiler-tool/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ main = do

-- check assumptions on exec and the build flags and clean
stack ["build", "--flag", "*:build-baz"]
stack ["exec", "--", "baz-exe"]
stackErr ["exec", "--", "bar-exe"]
stack ["exec", "--", "baz-exe" ++ exeExt]
stackErr ["exec", "--", "bar-exe" ++ exeExt]
stack ["clean", "--full"]
stackErr ["exec", "--", "baz-exe"]
stackErr ["exec", "--", "baz-exe" ++ exeExt]

-- install one exe normally and two compiler-tools, opposite ways
-- (build or install)
Expand All @@ -23,11 +23,11 @@ main = do
stack ["clean", "--full"]

-- bar and baz were installed as compiler tools, should work fine
stack ["exec", "--", "bar-exe"]
stack ["exec", "--", "baz-exe"]
stack ["exec", "--", "bar-exe" ++ exeExt]
stack ["exec", "--", "baz-exe" ++ exeExt]

-- foo was installed as a normal exe (in .local/bin/), so shouldn't
-- TODO: Check this in a more reliable fashion
stackErr ["exec", "--", "foo-exe"]
stackErr ["exec", "--", "foo-exe" ++ exeExt]

-- TODO: check paths against `stack path`

0 comments on commit c3de3e6

Please sign in to comment.