-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from CyberShadow/next
Major revision (complete overhaul of nearly everything)
- Loading branch information
Showing
50 changed files
with
3,350 additions
and
743 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.elc | ||
/.cask/ | ||
/tests/*.res.* |
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
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
(source melpa) | ||
|
||
(development | ||
(depends-on "undercover")) | ||
(depends-on "dash") | ||
(depends-on "shut-up")) |
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 |
---|---|---|
@@ -1,13 +1,32 @@ | ||
emacs ?= emacs | ||
all: test | ||
|
||
test: clean | ||
cask exec emacs -Q -batch -l d-mode-test.el -l d-mode.el -f ert-run-tests-batch-and-exit | ||
test: test-source test-compiled | ||
|
||
test-source: clean | ||
cask exec emacs -Q -batch -l d-mode-test.el -l d-mode.el -f ert-run-tests-batch-and-exit | ||
|
||
test-compiled: compile | ||
D_MODE_NO_COVERAGE=1 cask exec emacs -Q -batch -l d-mode-test.el -l d-mode.elc -f ert-run-tests-batch-and-exit | ||
|
||
# Generate a coverage report viewable in Emacs. | ||
coverage: clean | ||
rm -f d-mode.elc | ||
D_MODE_COVERAGE=1 cask exec emacs -Q -batch -l d-mode-test.el -l d-mode.el -f ert-run-tests-batch-and-exit | ||
|
||
compile: | ||
$(emacs) -Q -batch -f batch-byte-compile d-mode.el | ||
$(emacs) -Q -batch --eval '(setq byte-compile-error-on-warn t)' -f batch-byte-compile d-mode.el | ||
|
||
clean: | ||
rm -f d-mode.elc | ||
find tests -name '*.res.*' -delete | ||
|
||
# Show just the differences between the actual and expected results. | ||
test-diff: | ||
for f in tests/*.res.* ; do diff --color -u "$${f/.res/}" "$$f" ; done | ||
|
||
# Accept any mismatching actual output as the expected output. | ||
test-accept: | ||
for f in tests/*.res.* ; do mv "$$f" "$${f/.res/}" ; done | ||
|
||
.PHONY: all test | ||
.PHONY: all test compile clean test-diff test-accept |
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
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 @@ | ||
/.resultset.json* |
Oops, something went wrong.