Loïc Hoguin 11 лет назад
Родитель
Сommit
46d08fcffe
2 измененных файлов с 5 добавлено и 2 удалено
  1. 2 0
      README.md
  2. 3 2
      erlang.mk

+ 2 - 0
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`
 the `make tests` command. If your suite module is named `ponies_SUITE`
 then you only need to put `ponies` in the list.
 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_APPS` is the list of applications to include when building the
 `.plt` file for Dialyzer. You do not need to put `erts`, `kernel` or
 `.plt` file for Dialyzer. You do not need to put `erts`, `kernel` or
 `stdlib` in there because they will always be included. The applications
 `stdlib` in there because they will always be included. The applications

+ 3 - 2
erlang.mk

@@ -216,13 +216,14 @@ build-tests: build-test-deps
 	$(gen_verbose) erlc -v $(ERLC_OPTS) -o test/ \
 	$(gen_verbose) erlc -v $(ERLC_OPTS) -o test/ \
 		$(wildcard test/*.erl test/*/*.erl) -pa ebin/
 		$(wildcard test/*.erl test/*/*.erl) -pa ebin/
 
 
+CT_OPTS ?=
 CT_RUN = ct_run \
 CT_RUN = ct_run \
 	-no_auto_compile \
 	-no_auto_compile \
 	-noshell \
 	-noshell \
 	-pa $(realpath ebin) $(DEPS_DIR)/*/ebin \
 	-pa $(realpath ebin) $(DEPS_DIR)/*/ebin \
 	-dir test \
 	-dir test \
-	-logdir logs
-#	-cover test/cover.spec
+	-logdir logs \
+	$(CT_OPTS)
 
 
 CT_SUITES ?=
 CT_SUITES ?=