0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Use ct_run instead of rebar ct for running ct tests

Small tweak to the autobahn test file, we look for the python2
executable now. It'll make my life easier.
This commit is contained in:
Loïc Hoguin 2013-01-04 17:56:49 +01:00
parent 54063de2ff
commit 7d2a481401
3 changed files with 15 additions and 8 deletions

View file

@ -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:
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,ws
CT_RUN = ct_run \
-pa ebin deps/*/ebin \
-dir test \
-logdir logs \
-cover test/cover.spec
intct:
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,ws,autobahn
ct:
@mkdir -p logs/
@$(CT_RUN) -suite http_SUITE ws_SUITE
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/*