Skip to content

Commit 84b1f65

Browse files
committed
Use Command Prompt for stdlib test on Windows
1 parent a2ddb6a commit 84b1f65

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)