From 05e9b238893603b5090abf1dd3c7d1d10857c573 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 9 Nov 2025 15:35:13 -0600 Subject: test: Exclude slow tests from batch executions Update the test commands to skip tests tagged with :slow during batch execution, improving testing efficiency. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8d9b4b47..b6daeabc 100644 --- a/Makefile +++ b/Makefile @@ -97,7 +97,7 @@ test-unit: @failed=0; \ for test in $(UNIT_TESTS); do \ echo " Testing $$test..."; \ - $(EMACS_TEST) -l ert -l $$test -f ert-run-tests-batch-and-exit || failed=$$((failed + 1)); \ + $(EMACS_TEST) -l ert -l $$test --eval "(ert-run-tests-batch-and-exit '(not (tag :slow)))" || failed=$$((failed + 1)); \ done; \ if [ $$failed -eq 0 ]; then \ echo "$(COLOR_GREEN)✓ All unit tests passed$(COLOR_RESET)"; \ @@ -115,7 +115,7 @@ test-integration: @failed=0; \ for test in $(INTEGRATION_TESTS); do \ echo " Testing $$test..."; \ - $(EMACS_TEST) -l ert -l $$test -f ert-run-tests-batch-and-exit || failed=$$((failed + 1)); \ + $(EMACS_TEST) -l ert -l $$test --eval "(ert-run-tests-batch-and-exit '(not (tag :slow)))" || failed=$$((failed + 1)); \ done; \ if [ $$failed -eq 0 ]; then \ echo "$(COLOR_GREEN)✓ All integration tests passed$(COLOR_RESET)"; \ @@ -131,7 +131,7 @@ ifndef FILE @exit 1 endif @echo "$(COLOR_BLUE)Running tests in $(FILE)...$(COLOR_RESET)" - @$(EMACS_TEST) -l ert -l $(TEST_DIR)/$(FILE) -f ert-run-tests-batch-and-exit + @$(EMACS_TEST) -l ert -l $(TEST_DIR)/$(FILE) --eval "(ert-run-tests-batch-and-exit '(not (tag :slow)))" @echo "$(COLOR_GREEN)✓ Tests in $(FILE) complete$(COLOR_RESET)" test-name: -- cgit v1.2.3