aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-12-29 14:57:01 +0100
committerLoïc Hoguin <[email protected]>2013-12-29 14:57:01 +0100
commit0ec713fc4b185c3cd0f6b2e7ec2c5f198361bddd (patch)
tree2c94026943122708e5d7b1f34da67c9a7ca7799f
parent7a274661b297375c8c2c0c1d9cd23bb52185cf84 (diff)
downloadcowboy-0ec713fc4b185c3cd0f6b2e7ec2c5f198361bddd.tar.gz
cowboy-0ec713fc4b185c3cd0f6b2e7ec2c5f198361bddd.tar.bz2
cowboy-0ec713fc4b185c3cd0f6b2e7ec2c5f198361bddd.zip
Now testing on R15B01+ and maint and master git branches
-rwxr-xr-xall.sh19
-rw-r--r--erlang.mk5
2 files changed, 22 insertions, 2 deletions
diff --git a/all.sh b/all.sh
new file mode 100755
index 0000000..8f6032b
--- /dev/null
+++ b/all.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+KERL_INSTALL_PATH=~/erlang
+KERL_RELEASES="r15b01 r15b02 r15b03 r16b r16b01 r16b02 r16b03 maint master"
+
+make build-tests
+
+for rel in $KERL_RELEASES
+do
+ echo
+ echo " TESTING $rel"
+ echo
+ . $KERL_INSTALL_PATH/$rel/activate
+ cp ~/.kerl/builds/$rel/otp_src_*/lib/ssl/test/erl_make_certs.erl \
+ deps/ct_helper/src/
+ CT_OPTS="-label $rel" make tests
+done
+
+xdg-open logs/all_runs.html
diff --git a/erlang.mk b/erlang.mk
index 107cdd5..1e0a05e 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -216,13 +216,14 @@ build-tests: build-test-deps
$(gen_verbose) erlc -v $(ERLC_OPTS) -o test/ \
$(wildcard test/*.erl test/*/*.erl) -pa ebin/
+CT_OPTS ?=
CT_RUN = ct_run \
-no_auto_compile \
-noshell \
-pa $(realpath ebin) $(DEPS_DIR)/*/ebin \
-dir test \
- -logdir logs
-# -cover test/cover.spec
+ -logdir logs \
+ $(CT_OPTS)
CT_SUITES ?=