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:
parent
54063de2ff
commit
7d2a481401
3 changed files with 15 additions and 8 deletions
21
Makefile
21
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:
|
||||
@$(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/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue