summaryrefslogtreecommitdiff
path: root/Makefile.win
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.win')
-rw-r--r--Makefile.win21
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile.win b/Makefile.win
index a42ec7027..fd1ab9b86 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -60,6 +60,11 @@ COUCHDB_VERSION = $(RELTAG)$(DIRTY)
endif
endif
+# needed to do text substitutions
+comma:= ,
+empty:=
+space:= $(empty) $(empty)
+
DESTDIR=
# Rebar options
@@ -72,6 +77,8 @@ tests=
EUNIT_OPTS=skip_deps=$(skip_deps)
DIALYZE_OPTS=skip_deps=$(skip_deps)
+EXUNIT_OPTS=$(subst $(comma),$(space),$(tests))
+
################################################################################
# Main commands
################################################################################
@@ -166,7 +173,19 @@ 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.cmd
+ @dev\run -a adm:pass --no-eval 'test\elixir\run.cmd --exclude without_quorum_test --exclude with_quorum_test $(EXUNIT_OPTS)'
+
+.PHONY: elixir-cluster-without-quorum
+elixir-cluster-without-quorum: elixir-check-formatted elixir-credo devclean
+ @dev\run -n 3 -q -a adm:pass \
+ --degrade-cluster 2 \
+ --no-eval 'test\elixir\run --only without_quorum_test $(EXUNIT_OPTS)'
+
+.PHONY: elixir-cluster-with-quorum
+elixir-cluster-with-quorum: elixir-check-formatted elixir-credo devclean
+ @dev\run -n 3 -q -a adm:pass \
+ --degrade-cluster 1 \
+ --no-eval 'test\elixir\run --only with_quorum_test $(EXUNIT_OPTS)'
.PHONY: elixir-check-formatted
elixir-check-formatted: