diff --git a/.gitignore b/.gitignore index a41afba..58a60f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,13 @@ *.beam .rebar erl_crash.dump ebin deps db log .*.swp Mnesia* test.spec +cover.spec test_logs rel/kolab_guam diff --git a/Makefile b/Makefile index 67f2f8a..c16fb38 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,28 @@ REBAR = ./rebar #$(shell which rebar || echo ./rebar) ENABLE_STATIC = no all: deps-up guam deps: $(REBAR) get-deps deps-up: deps $(REBAR) update-deps guam: ENABLE_STATIC=$(ENABLE_STATIC) $(REBAR) compile run: erl -pa apps/*/ebin deps/*/ebin -config app -s kolab_guam release: $(REBAR) compile generate -test.spec: test.spec.in +test.spec: test.spec.in cover.spec.in cat test.spec.in | sed -e "s,@PATH@,$(PWD)," > $(PWD)/test.spec + cat cover.spec.in | sed -e "s,@PATH@,$(PWD)," > $(PWD)/cover.spec test: test.spec guam mkdir -p test_logs ct_run -pa $(PWD)/apps/*/ebin -pa $(PWD)/deps/*/ebin -spec test.spec -erl_args -config $(PWD)/apps/kolab_guam/test/test.config -s kolab_guam diff --git a/cover.spec b/cover.spec deleted file mode 100644 index e745c16..0000000 --- a/cover.spec +++ /dev/null @@ -1,2 +0,0 @@ -{level, details}. -{incl_dirs_r, ["/home/aseigo/src/pim/guam/apps/kolab_guam/ebin"]}. diff --git a/cover.spec.in b/cover.spec.in new file mode 100644 index 0000000..5da3359 --- /dev/null +++ b/cover.spec.in @@ -0,0 +1,2 @@ +{level, details}. +{incl_dirs_r, ["@PATH@/apps/kolab_guam/ebin"]}.