Run eunit tests manually to avoid conflicts with rebar's copy of getopt

This commit is contained in:
Juan Jose Comellas 2013-07-19 02:01:35 -03:00
parent 078d003a93
commit 275d9362b7

View File

@ -3,12 +3,11 @@ APPLICATION := getopt
REBAR=$(shell which rebar || echo ./rebar) REBAR=$(shell which rebar || echo ./rebar)
ERL := erl ERL := erl
EPATH := -pa ebin EPATH := -pa ebin
TEST_EPATH := -pa .eunit
DIALYZER=dialyzer DIALYZER=dialyzer
DIALYZER_OPTS=-Wno_return -Wrace_conditions -Wunderspecs -Wno_undefined_callbacks --fullpath DIALYZER_OPTS=-Wno_return -Wrace_conditions -Wunderspecs -Wno_undefined_callbacks --fullpath
.PHONY: all clean compile console dialyze doc test test-console .PHONY: all clean compile console dialyze doc test
all: compile all: compile
@ -28,8 +27,6 @@ doc:
@$(REBAR) doc @$(REBAR) doc
test: test:
@$(REBAR) eunit @erl -make
@$(ERL) -sname $(APPLICATION) $(EPATH) -s getopt_test test -s init stop
test-console:
$(ERL) -sname $(APPLICATION)_test $(TEST_EPATH)