-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests with buttercup & makem.sh
- Loading branch information
1 parent
a6ecca9
commit d973793
Showing
6 changed files
with
1,362 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
makem.sh linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ | |
# Undo-tree save-files | ||
*.~undo-tree | ||
|
||
# Tests | ||
sandbox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# * makem.sh/Makefile --- Script to aid building and testing Emacs Lisp packages | ||
|
||
# URL: https://github.com/alphapapa/makem.sh | ||
# Version: 0.5 | ||
|
||
# * Arguments | ||
|
||
# For consistency, we use only var=val options, not hyphen-prefixed options. | ||
|
||
# NOTE: I don't like duplicating the arguments here and in makem.sh, | ||
# but I haven't been able to find a way to pass arguments which | ||
# conflict with Make's own arguments through Make to the script. | ||
# Using -- doesn't seem to do it. | ||
|
||
ifdef install-deps | ||
INSTALL_DEPS = "--install-deps" | ||
endif | ||
ifdef install-linters | ||
INSTALL_LINTERS = "--install-linters" | ||
endif | ||
|
||
ifdef sandbox | ||
ifeq ($(sandbox), t) | ||
SANDBOX = --sandbox | ||
else | ||
SANDBOX = --sandbox=$(sandbox) | ||
endif | ||
endif | ||
|
||
ifdef debug | ||
DEBUG = "--debug" | ||
endif | ||
|
||
# ** Verbosity | ||
|
||
# Since the "-v" in "make -v" gets intercepted by Make itself, we have | ||
# to use a variable. | ||
|
||
verbose = $(v) | ||
|
||
ifneq (,$(findstring vvv,$(verbose))) | ||
VERBOSE = "-vvv" | ||
else ifneq (,$(findstring vv,$(verbose))) | ||
VERBOSE = "-vv" | ||
else ifneq (,$(findstring v,$(verbose))) | ||
VERBOSE = "-v" | ||
endif | ||
|
||
# * Rules | ||
|
||
# TODO: Handle cases in which "test" or "tests" are called and a | ||
# directory by that name exists, which can confuse Make. | ||
|
||
%: | ||
@./makem.sh $(DEBUG) $(VERBOSE) $(SANDBOX) $(INSTALL_DEPS) $(INSTALL_LINTERS) $(@) | ||
|
||
.DEFAULT: init | ||
init: | ||
@./makem.sh -vvv $(SANDBOX) --install-linters --install-deps -i buttercup | ||
|
||
quick: | ||
@./makem.sh -vvv $(SANDBOX) --exclude evaluate-with-file-functions.el --no-compile test | ||
|
||
test: | ||
@./makem.sh -vvv $(SANDBOX) --exclude evaluate-with-file-functions.el test |
Oops, something went wrong.