From 46d08fcffe8848b492089c29c2effb7767075792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 29 Dec 2013 14:44:07 +0100 Subject: Add CT_OPTS --- README.md | 2 ++ erlang.mk | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 460882d..22cb2bf 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,8 @@ the various operations of the documentation generation. the `make tests` command. If your suite module is named `ponies_SUITE` then you only need to put `ponies` in the list. +`CT_OPTS` allows you to specify extra common_test options. + `PLT_APPS` is the list of applications to include when building the `.plt` file for Dialyzer. You do not need to put `erts`, `kernel` or `stdlib` in there because they will always be included. The applications 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 ?= -- cgit v1.2.3