0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10: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 PROJECT = cowboy
DIALYZER = dialyzer
REBAR = rebar REBAR = rebar
all: app all: app
@ -37,19 +36,27 @@ deps/proper:
tests: clean deps/proper app eunit ct tests: clean deps/proper app eunit ct
inttests: clean deps/proper app eunit intct
eunit: eunit:
@$(REBAR) -C rebar.tests.config eunit skip_deps=true @$(REBAR) -C rebar.tests.config eunit skip_deps=true
ct: CT_RUN = ct_run \
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,ws -pa ebin deps/*/ebin \
-dir test \
-logdir logs \
-cover test/cover.spec
intct: ct:
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,ws,autobahn @mkdir -p logs/
@$(CT_RUN) -suite http_SUITE ws_SUITE
autobahn:
@mkdir -p logs/
@$(CT_RUN) -suite autobahn_SUITE
# Dialyzer. # Dialyzer.
DIALYZER = dialyzer
build-plt: build-plt:
@$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \ @$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \
--apps kernel stdlib sasl inets crypto public_key ssl deps/* --apps kernel stdlib sasl inets crypto public_key ssl deps/*

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
import os import os
import os.path import os.path
import sys import sys