2024-02-11 11:12:27 +00:00
|
|
|
set positional-arguments
|
|
|
|
|
2024-03-02 20:58:07 +00:00
|
|
|
# Run all unit tests
|
2024-03-02 20:55:00 +00:00
|
|
|
default: test
|
|
|
|
|
2024-03-23 08:45:31 +00:00
|
|
|
# For convenience, run cask through bash
|
2024-02-11 11:12:27 +00:00
|
|
|
cask *args:
|
|
|
|
cask $@
|
|
|
|
|
2024-03-02 20:58:07 +00:00
|
|
|
# Compile the Emacs Lisp file(s)
|
2024-02-11 19:50:42 +00:00
|
|
|
compile:
|
|
|
|
cask emacs -batch -L . -L test --eval "(setq byte-compile-error-on-warn t)" -f batch-byte-compile $(cask files); (ret=$? ; cask clean-elc && exit $ret)
|
|
|
|
|
2024-03-23 08:45:31 +00:00
|
|
|
# Run unit tests matching a pattern (matches all tests by default)
|
2024-02-22 21:15:46 +00:00
|
|
|
test pattern=".": compile
|
|
|
|
cask exec buttercup -L . --pattern {{pattern}} --no-skip
|