aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-02-05 16:26:56 +0100
committerLoïc Hoguin <[email protected]>2014-02-05 16:26:56 +0100
commitaa504a1956d65bca0ab2077636ef36e9c0348c2c (patch)
tree2b9dc3fa41557514b260746bd3a4c539d06da630
parent5d292f2cd55223ff3bbea7c221f22bc9eb24a0ae (diff)
downloadcowlib-aa504a1956d65bca0ab2077636ef36e9c0348c2c.tar.gz
cowlib-aa504a1956d65bca0ab2077636ef36e9c0348c2c.tar.bz2
cowlib-aa504a1956d65bca0ab2077636ef36e9c0348c2c.zip
Test cowlib on all releases since R15B, plus maint and master
It passes on everything!
-rwxr-xr-xall.sh19
-rw-r--r--erlang.mk13
2 files changed, 29 insertions, 3 deletions
diff --git a/all.sh b/all.sh
new file mode 100755
index 0000000..48b47ab
--- /dev/null
+++ b/all.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+KERL_INSTALL_PATH=~/erlang
+KERL_RELEASES="r15b r15b01 r15b02 r15b03 r16b r16b01 r16b02 r16b03 r16b03-1 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 0dadfbb..1e0a05e 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -90,7 +90,13 @@ ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS))
# Application.
-ERL_LIBS ?= $(DEPS_DIR)
+ifeq ($(filter $(DEPS_DIR),$(subst :, ,$(ERL_LIBS))),)
+ifeq ($(ERL_LIBS),)
+ ERL_LIBS = $(DEPS_DIR)
+else
+ ERL_LIBS := $(ERL_LIBS):$(DEPS_DIR)
+endif
+endif
export ERL_LIBS
ERLC_OPTS ?= -Werror +debug_info +warn_export_all +warn_export_vars \
@@ -210,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 ?=