Skip to content

Commit

Permalink
Add CT_OPTS variable for make target ct
Browse files Browse the repository at this point in the history
Example, run a single test case like:
make CT_OPTS='suites=riak_kv_sweeper case=initiailize_sweep_request_test'
  • Loading branch information
Raghav Karol committed Nov 25, 2016
1 parent 3f84f3f commit b4da308
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools.mk
Expand Up @@ -28,6 +28,7 @@ REBAR ?= ./rebar
REVISION ?= $(shell git rev-parse --short HEAD)
PROJECT ?= $(shell basename `find src -name "*.app.src"` .app.src)
EUNIT_OPTS ?=
CT_OPTS ?=

.PHONY: compile-no-deps test docs xref dialyzer-run dialyzer-quick dialyzer \
cleanplt upload-docs
Expand All @@ -41,7 +42,7 @@ eunit: compile
${REBAR} ${EUNIT_OPTS} eunit skip_deps=true

ct: compile
${REBAR} ct skip_deps=true
${REBAR} ${CT_OPTS} ct skip_deps=true

upload-docs: docs
@if [ -z "${BUCKET}" -o -z "${PROJECT}" -o -z "${REVISION}" ]; then \
Expand Down

2 comments on commit b4da308

@nickelization
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to make temporary changes to tools.mk locally, that's fine, but tools.mk is normally supposed to be copied verbatim from basho/tools.mk. Could you make a PR against our tools.mk repo with these changes? That way we can stay in sync with "upstream", and others can also make use of this improvement.

@raghavkarol
Copy link

@raghavkarol raghavkarol commented on b4da308 Nov 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nickelization - Pull request created basho/tools.mk#15

Please sign in to comment.