aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 16:36:17 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 16:36:17 -0500
commit93063d8a35060d5467e2d056bd4496e51f17ddc1 (patch)
tree666a81fdb34e758ffb1a49ab8808d0efcdd1face /tests/Makefile
parent08cf28b2b752a9fdad10201484763f1fbb5733b3 (diff)
downloadchime-93063d8a35060d5467e2d056bd4496e51f17ddc1.tar.gz
chime-93063d8a35060d5467e2d056bd4496e51f17ddc1.zip
test: harden test dependency and temp-dir setup
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile
index abf91bb..8fd2e0c 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -55,7 +55,12 @@ check-deps:
printf "$(YELLOW)Warning: .eask not found — run 'make setup' from project root$(NC)\n"; \
exit 1; \
fi
- @printf "$(GREEN)✓ eask available, deps installed$(NC)\n"
+ @$(EMACS_BATCH) -l check-deps.el >$(PROJECT_ROOT)/tests/check-deps-output.log 2>&1 || { \
+ printf "$(RED)Error: required Emacs Lisp test dependencies are missing$(NC)\n"; \
+ cat $(PROJECT_ROOT)/tests/check-deps-output.log; \
+ exit 1; \
+ }
+ @printf "$(GREEN)✓ eask available, required Emacs Lisp deps loadable$(NC)\n"
# Run all tests (excluding :slow)
test: check-deps
@@ -260,7 +265,7 @@ lint: check-deps
clean:
@printf "$(YELLOW)Cleaning byte-compiled files...$(NC)\n"
@rm -f *.elc ../*.elc
- @rm -f test-output.log test-file-output.log test-unit-output.log test-integration-output.log
+ @rm -f check-deps-output.log test-output.log test-file-output.log test-unit-output.log test-integration-output.log
@printf "$(GREEN)✓ Cleaned$(NC)\n"
# Show help
@@ -280,7 +285,7 @@ help:
@echo " make count - Count tests per file"
@echo " make list - List all test names"
@echo " make clean - Remove byte-compiled files and logs"
- @echo " make check-deps - Verify eask + installed deps"
+ @echo " make check-deps - Verify eask + loadable Emacs Lisp deps"
@echo " make help - Show this help message"
@echo ""
@echo "Project-root targets (run from project root):"