[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 407114d7f3 070/143: Run tests in batch mode s
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole 407114d7f3 070/143: Run tests in batch mode specified by selector |
Date: |
Mon, 19 Feb 2024 15:59:03 -0500 (EST) |
branch: externals/hyperbole
commit 407114d7f365b95b8e023b307bb13d0d43c72494
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: Mats Lidell <mats.lidell@lidells.se>
Run tests in batch mode specified by selector
Run all hyrolo tests
make test SELECTOR=hyrolo
Bonus. Control size of backtraces so that we get more info on
errors. For full backtrace add command line argument FULL_BT=
make test SELECTOR=hyrolo FULL_BT=
---
ChangeLog | 12 ++++++++++++
Makefile | 24 +++++++++++++++++++++---
2 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index be839776ec..4c7275ec39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2024-01-06 Mats Lidell <matsl@gnu.org>
+
+* Makefile (HYPB_ERT_BATCH, HYPB_ERT_BATCH_BT): Add command line arg to
+ run test specified by selector. Example to run all hyrolo tests
+
+ make test SELECTOR=hyrolo
+
+ Bonus. Control size of backtraces so that we get more info on
+ errors. For full backtrace add command line argument FULL_BT=
+
+ make test SELECTOR=hyrolo FULL_BT=
+
2024-01-06 Bob Weiner <rsw@gnu.org>
* Makefile (test-all): Revert to use 'ert-run-tests-interactively' again
diff --git a/Makefile b/Makefile
index 14f9cb49c4..c5dbc38630 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
# Author: Bob Weiner
#
# Orig-Date: 15-Jun-94 at 03:42:38
-# Last-Mod: 6-Jan-24 at 01:47:15 by Bob Weiner
+# Last-Mod: 6-Jan-24 at 16:59:43 by Mats Lidell
#
# Copyright (C) 1994-2023 Free Software Foundation, Inc.
# See the file HY-COPY for license information.
@@ -71,7 +71,7 @@
#
# To run unit tests:
# make test - run not interactive tests in batch
mode
-# make test-all - run all tests startin an emacs in
windowed mode
+# make test-all - run all tests starting an Emacs in
windowed mode
#
# Verify hyperbole installation using different sources:
# make install-<source>
@@ -469,9 +469,27 @@ test: test-ert
LET_VARIABLES = (auto-save-default) (enable-local-variables :all)
LOAD_TEST_ERT_FILES=$(patsubst %,(load-file \"%\"),${TEST_ERT_FILES})
+# Run make test SELECTOR=<ert-test-selector> to limit batch test to
+# tests specified by the selector. See "(ert)test selectors"
+ifeq ($(origin SELECTOR), command line)
+HYPB_ERT_BATCH = (ert-run-tests-batch-and-exit \"${SELECTOR}\")
+else
+HYPB_ERT_BATCH = (ert-run-tests-batch-and-exit)
+endif
+
+# For full backtrace run make test FULL_BT=<anything or even empty>
+ifeq ($(origin FULL_BT), command line)
+HYPB_ERT_BATCH_BT = (ert-batch-backtrace-line-length nil)
+else
+HYPB_ERT_BATCH_BT = (ert-batch-backtrace-line-length 256)
+endif
+
test-ert:
@echo "# Tests: $(TEST_ERT_FILES)"
- $(EMACS_BATCH) --eval "(load-file \"test/hy-test-dependencies.el\")"
--eval "(let ((auto-save-default)) $(LOAD_TEST_ERT_FILES)
(ert-run-tests-batch-and-exit))"
+ $(EMACS_BATCH) --eval "(load-file \"test/hy-test-dependencies.el\")" \
+ --eval "(let ((auto-save-default) (ert-batch-print-level 10)
(ert-batch-print-length 20) \
+ $(HYPB_ERT_BATCH_BT) (ert-batch-backtrace-right-margin 2048)) \
+ $(LOAD_TEST_ERT_FILES) $(HYPB_ERT_BATCH))"
all-tests: test-all
test-all:
- [elpa] externals/hyperbole 5703cf7608 007/143: HyRolo caching and movement fixes, (continued)
- [elpa] externals/hyperbole 5703cf7608 007/143: HyRolo caching and movement fixes, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 6550a0ac7c 013/143: hyrolo-any-file-type-problem-p - Add to handle invalid file suffixes, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 2173bf7e09 002/143: Add new HYPERAMP.org talk slides and update talks in HY-TALK, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 339c6a2a8d 005/143: Fixes for handling outline-regexp and hyrolo-entry-regexp, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 97111e4bd0 004/143: Merge branch 'master' into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1f942eac01 008/143: Fix HyRolo {n} and {p} movement commands, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole ca3cf8e427 017/143: hyrolo.el - Fix {t} and {o} commands, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole bc0c5b9086 044/143: HyRolo - if hyrolo-file-list is set on load, initialize its cache, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1f45b45af9 047/143: Add hyrolo-get-file-list tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 38110ee8f7 065/143: Makefile - Change running of ert tests from interactively to batch, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 407114d7f3 070/143: Run tests in batch mode specified by selector,
ELPA Syncer <=
- [elpa] externals/hyperbole 926f8a02fd 010/143: Fix many hyrolo multi-file-format issues; fix hywconfig by name, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 027eb85174 014/143: Merge matsl-rsw-hpath-expand' into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a7a5723712 015/143: Fix 'hpath--expand-list-match-regexp' test., ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 54d7ae565a 020/143: Complete test suite for hui:link-possible-types, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 12950cd2db 029/143: Matsl rsw fix failing tests (#424), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 98edfae8d1 021/143: Fix test with link-to-string-match since bug is fixed, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 966605b7a3 028/143: hkey-window-link, {M-o w} - invert the meaning of prefix arg, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7adb441c0e 036/143: kotl-mode - fix kill and yank commands not moving to valid pos first, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 2187b3522b 049/143: Add test for hiding and showing, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole e995fc8905 050/143: Add test for moving between two sections, ELPA Syncer, 2024/02/19