aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-04-22 15:55:22 +0200
committerLoïc Hoguin <[email protected]>2013-04-22 17:03:54 +0200
commit2e916777233d8d82b93cbca9b754a023a6ca63c2 (patch)
treebc3de082804c1c9f220cdbba542e545082b2e793 /Makefile
parentcf0e00589409eb8caf423e3efa6777540951d424 (diff)
downloadcowboy-2e916777233d8d82b93cbca9b754a023a6ca63c2.tar.gz
cowboy-2e916777233d8d82b93cbca9b754a023a6ca63c2.tar.bz2
cowboy-2e916777233d8d82b93cbca9b754a023a6ca63c2.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ff1e2c9..1463cb4 100644
--- a/Makefile
+++ b/Makefile
@@ -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