aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 004d732..60a5f95 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,6 @@
PROJECT = cowboy
-DIALYZER = dialyzer
REBAR = rebar
all: app
@@ -37,19 +36,27 @@ deps/proper:
tests: clean deps/proper app eunit ct
-inttests: clean deps/proper app eunit intct
-
eunit:
@$(REBAR) -C rebar.tests.config eunit skip_deps=true
+CT_RUN = ct_run \
+ -pa ebin deps/*/ebin \
+ -dir test \
+ -logdir logs \
+ -cover test/cover.spec
+
ct:
- @$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,ws
+ @mkdir -p logs/
+ @$(CT_RUN) -suite http_SUITE ws_SUITE
-intct:
- @$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,ws,autobahn
+autobahn:
+ @mkdir -p logs/
+ @$(CT_RUN) -suite autobahn_SUITE
# Dialyzer.
+DIALYZER = dialyzer
+
build-plt:
@$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \
--apps kernel stdlib sasl inets crypto public_key ssl deps/*