Tests: Add makem.sh, update Makefile

This commit is contained in:
Adam Porter 2019-08-08 15:29:53 -05:00
parent 2dbe40d9ea
commit 00d9bbd85b
2 changed files with 561 additions and 3 deletions

View file

@ -1,4 +1,23 @@
.PHONY: test
# * Verbosity
test:
cask exec buttercup -L .
# Since the "-v" in "make -v" gets intercepted by Make itself, we have
# to use a variable.
verbose = $(v)
ifneq (,$(findstring vv,$(verbose)))
VERBOSE = "-vv"
else ifneq (,$(findstring v,$(verbose)))
VERBOSE = "-v"
endif
# * Rules
# Unless/until I add Cask support to makem.sh, I'm keeping this,
# because Cask lets me run the tests with a different version of Org
# than I have installed personally.
cask:
@cask exec buttercup -L .
%:
@./makem.sh $(VERBOSE) $(@)