@@ -153,7 +153,7 @@ endif
153
153
.PHONY: eunit
154
154
# target: eunit - Run EUnit tests, use EUNIT_OPTS to provide custom options
155
155
eunit: export BUILDDIR = $(shell echo %cd%)
156
- eunit: export ERL_AFLAGS = $(shell echo "-config %cd%/rel/files/eunit.config")
156
+ eunit: export ERL_AFLAGS = -config $(shell echo "%cd%") /rel/files/eunit.config
157
157
eunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(shell echo %cd%)/bin/couchjs $(shell echo %cd%)/share/server/main.js
158
158
eunit: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1
159
159
eunit: couch
@@ -164,19 +164,19 @@ eunit: couch
164
164
# target: exunit - Run ExUnit tests, use EXUNIT_OPTS to provide custom options
165
165
exunit: export BUILDDIR = $(shell echo %cd%)
166
166
exunit: export MIX_ENV=test
167
- exunit: export ERL_LIBS = $(shell echo %cd%)\ src
168
- exunit: export ERL_AFLAGS = $(shell echo "-config %cd%/rel/files/eunit.config")
167
+ exunit: export ERL_LIBS = $(shell echo %cd%)/ src
168
+ exunit: export ERL_AFLAGS = -config $(shell echo "%cd%") /rel/files/eunit.config
169
169
exunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(shell echo %cd%)/bin/couchjs $(shell echo %cd%)/share/server/main.js
170
170
exunit: couch elixir-init setup-eunit elixir-check-formatted elixir-credo
171
171
@mix test --cover --trace $(EXUNIT_OPTS)
172
172
173
173
setup-eunit: export BUILDDIR = $(shell echo %cd%)
174
- setup-eunit: export ERL_AFLAGS = $(shell echo "-config %cd%/rel/files/eunit.config")
174
+ setup-eunit: export ERL_AFLAGS = -config $(shell echo "%cd%") /rel/files/eunit.config
175
175
setup-eunit:
176
176
@$(REBAR) setup_eunit 2> nul
177
177
178
178
just-eunit: export BUILDDIR = $(shell echo %cd%)
179
- just-eunit: export ERL_AFLAGS = $(shell echo "-config %cd%/rel/files/eunit.config")
179
+ just-eunit: export ERL_AFLAGS = -config $(shell echo "%cd%") /rel/files/eunit.config
180
180
just-eunit:
181
181
@$(REBAR) -r eunit $(EUNIT_OPTS)
182
182
0 commit comments