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

We're using the existing test suite for websocket servers from the Autobahn project to verify that out websockets implementation is sane. A CT test suite and python module wrapping the test suite has been added. The test suite is run when the 'make inttests' target is executed.
41 lines
721 B
Makefile
41 lines
721 B
Makefile
# See LICENSE for licensing information.
|
|
|
|
DIALYZER = dialyzer
|
|
REBAR = rebar
|
|
|
|
all: app
|
|
|
|
app: deps
|
|
@$(REBAR) compile
|
|
|
|
deps:
|
|
@$(REBAR) get-deps
|
|
|
|
clean:
|
|
@$(REBAR) clean
|
|
rm -f test/*.beam
|
|
rm -f erl_crash.dump
|
|
|
|
tests: clean app eunit ct
|
|
|
|
inttests: clean app eunit intct
|
|
|
|
eunit:
|
|
@$(REBAR) eunit skip_deps=true
|
|
|
|
ct:
|
|
@$(REBAR) ct skip_deps=true suites=http,ws
|
|
|
|
intct:
|
|
@$(REBAR) ct skip_deps=true suites=http,ws,autobahn
|
|
|
|
build-plt:
|
|
@$(DIALYZER) --build_plt --output_plt .cowboy_dialyzer.plt \
|
|
--apps kernel stdlib sasl inets crypto public_key ssl
|
|
|
|
dialyze:
|
|
@$(DIALYZER) --src src --plt .cowboy_dialyzer.plt -Werror_handling \
|
|
-Wrace_conditions -Wunmatched_returns # -Wunderspecs
|
|
|
|
docs:
|
|
@$(REBAR) doc skip_deps=true
|