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

Reorganize the websocket test suite

We now have the suite specific modules in the data folder.
Compilation is performed by the Makefile instead of ct_run.
This commit is contained in:
Loïc Hoguin 2013-04-22 15:55:22 +02:00
parent cf0e005894
commit 2e91677723
11 changed files with 58 additions and 25 deletions

View file

@ -21,7 +21,8 @@ erlc_verbose = $(erlc_verbose_$(V))
gen_verbose_0 = @echo " GEN " $@;
gen_verbose = $(gen_verbose_$(V))
.PHONY: all clean-all app clean deps clean-deps docs clean-docs tests autobahn build-plt dialyze
.PHONY: all clean-all app clean deps clean-deps docs clean-docs \
build-tests tests autobahn build-plt dialyze
# Application.
@ -71,7 +72,12 @@ clean-docs:
# Tests.
build-tests:
$(gen_verbose) erlc -v $(ERLC_OPTS) \
-o test/ test/*.erl test/*/*.erl -pa ebin/
CT_RUN = ct_run \
-no_auto_compile \
-noshell \
-pa ebin $(DEPS_DIR)/*/ebin \
-dir test \
@ -79,11 +85,12 @@ CT_RUN = ct_run \
# -cover test/cover.spec
tests: ERLC_OPTS += -DTEST=1
tests: clean clean-deps deps app
tests: clean clean-deps deps app build-tests
@mkdir -p logs/
@$(CT_RUN) -suite eunit_SUITE http_SUITE ws_SUITE
$(gen_verbose) rm -f test/*.beam
autobahn: clean clean-deps deps app
autobahn: clean clean-deps deps app build-tests
@mkdir -p logs/
@$(CT_RUN) -suite autobahn_SUITE