Tests: Add makem.sh, update Makefile
This commit is contained in:
parent
2dbe40d9ea
commit
00d9bbd85b
2 changed files with 561 additions and 3 deletions
25
Makefile
25
Makefile
|
|
@ -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) $(@)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue