From 275d9362b7686ebf2d613d8dd5a8d5e380ec3cb6 Mon Sep 17 00:00:00 2001 From: Juan Jose Comellas Date: Fri, 19 Jul 2013 02:01:35 -0300 Subject: [PATCH] Run eunit tests manually to avoid conflicts with rebar's copy of getopt --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 069fd90..92909a2 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,11 @@ APPLICATION := getopt REBAR=$(shell which rebar || echo ./rebar) ERL := erl EPATH := -pa ebin -TEST_EPATH := -pa .eunit DIALYZER=dialyzer 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 @@ -28,8 +27,6 @@ doc: @$(REBAR) doc test: - @$(REBAR) eunit - -test-console: - $(ERL) -sname $(APPLICATION)_test $(TEST_EPATH) + @erl -make + @$(ERL) -sname $(APPLICATION) $(EPATH) -s getopt_test test -s init stop