Skip to content

Commit 11c857a

Browse files
author
José Valim
committed
Merge pull request #2613 from chyndman/stdlib-test-win-cmd
Use Command Prompt for stdlib test on Windows
2 parents c8c1757 + 84b1f65 commit 11c857a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ test_doc_test: compile
175175
test_stdlib: compile
176176
@ echo "==> elixir (exunit)"
177177
$(Q) exec epmd & exit
178-
$(Q) cd lib/elixir && ../../bin/elixir -r "test/elixir/test_helper.exs" -pr "test/elixir/**/*_test.exs";
178+
$(Q) if [ $(OS) = Windows_NT ]; then \
179+
cd lib/elixir && cmd //C call ../../bin/elixir.bat -r "test/elixir/test_helper.exs" -pr "test/elixir/**/*_test.exs"; \
180+
else \
181+
cd lib/elixir && ../../bin/elixir -r "test/elixir/test_helper.exs" -pr "test/elixir/**/*_test.exs"; \
182+
fi
179183

180184
#==> Dialyzer tasks
181185

0 commit comments

Comments
 (0)