Added a test files and ammended the Makefile to add a tests target

This commit is contained in:
2025-12-29 19:58:27 +00:00
parent 80101cd34b
commit 6e13e90e7d
5 changed files with 66 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: all fast clean help
.PHONY: all fast clean tests help
# Default target: full build with search index
all:
@@ -15,10 +15,15 @@ clean:
@echo "Cleaning output directory..."
rm -rf output/
tests:
@echo "Running all the tests..."
emacs -batch -l ert -l tests/macros-tests.el -f ert-run-tests-batch-and-exit
# Show help message
help:
@echo "Available targets:"
@echo " make - Full rebuild (with search index)"
@echo " make fast - Fast rebuild (without search index)"
@echo " make clean - Remove output directory"
@echo " make tests - Run all of the tests associated with the project"
@echo " make help - Show this help message"