summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorILYA Khlopotov <iilyak@apache.org>2018-12-07 16:27:54 +0000
committerILYA Khlopotov <iilyak@apache.org>2018-12-07 22:45:03 +0000
commitbe38d66ef9fb8b97bf2d5d2f7c3bf4698eee5f93 (patch)
tree44bf3d880e1d1fd91d3abc8af661f2e75642268b /Makefile
parent77eb982bd9cd078e45e4a424e7ffa46f7073bfa5 (diff)
downloadcouchdb-be38d66ef9fb8b97bf2d5d2f7c3bf4698eee5f93.tar.gz
Support specifying individual Elixir tests to run
Individual tests can be specified as: - make elixir tests=test/basics_test.exs - make elixir tests=test/basics_test.exs,test/config_test.exs - make elixir tests=test/basic_test.exs:17
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5af99740d..04c40e7fe 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,11 @@ COUCHDB_VERSION = $(RELTAG)$(DIRTY)
endif
endif
+# needed to do text substitutions
+comma:= ,
+empty:=
+space:= $(empty) $(empty)
+
DESTDIR=
# Rebar options
@@ -80,6 +85,7 @@ DIALYZE_OPTS=$(shell echo "\
apps=$(apps) \
skip_deps=$(skip_deps) \
" | sed -e 's/[a-z]\{1,\}= / /g')
+EXUNIT_OPTS=$(subst $(comma),$(space),$(tests))
#ignore javascript tests
ignore_js_suites=
@@ -195,7 +201,7 @@ python-black-update: .venv/bin/black
.PHONY: elixir
elixir: elixir-check-formatted elixir-credo devclean
- @dev/run -a adm:pass --no-eval test/elixir/run
+ @dev/run -a adm:pass --no-eval test/elixir/run $(EXUNIT_OPTS)
.PHONY: elixir-check-formatted
elixir-check-formatted: