1
0
Fork 0
kagi.el/justfile

20 lines
622 B
Makefile
Raw Permalink Normal View History

2024-02-11 11:12:27 +00:00
set positional-arguments
# 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 $@
# 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)
test pattern="." flags="": compile
cask exec buttercup -L . --pattern {{pattern}} --no-skip {{flags}}
# Run unit tests matching a pattern with verbose debug info on failure
testv pattern=".": (test pattern "--traceback full")