[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole c36535463c 071/143: Merge pull request #435 f
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole c36535463c 071/143: Merge pull request #435 from rswgnu/matsl-rsw-run-tests-specified-by-selector |
Date: |
Mon, 19 Feb 2024 15:59:04 -0500 (EST) |
branch: externals/hyperbole
commit c36535463c01570e7ea361ef37c9e70ff4e90388
Merge: 327f53f078 407114d7f3
Author: Robert Weiner <rsw@gnu.org>
Commit: GitHub <noreply@github.com>
Merge pull request #435 from
rswgnu/matsl-rsw-run-tests-specified-by-selector
Run tests in batch mode specified by selector
---
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 d59f27c469 026/143: Fix most remaining outstanding issues in HyRolo, ibut-link-directly, (continued)
- [elpa] externals/hyperbole d59f27c469 026/143: Fix most remaining outstanding issues in HyRolo, ibut-link-directly, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 46d8da0039 019/143: Fix test as ebut is being identified correctly, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 0798e16ab0 030/143: Fix doc on switch of cross-window drags create ibuts with Action Key., ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole ee453d177f 033/143: hpath--expand-list-match-regexp - Fix test with regexp char quoting, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 140798a28f 037/143: Merge pull request #426 from rswgnu/matsl-rsw-add-missing-fast-demo-tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f2c6081a9c 034/143: Add fast-demo test for outline section with line and column, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole c51017f96b 040/143: Fix HyRolo search bug in Org mode when no * delim in file, just text, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7e6d2e9659 062/143: Remove flymake/flycheck/byte-compile warnings (#431), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a4c41006cf 066/143: *ert* buffer - make {.} jump to interactively defined test def, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 3e88bb0b17 067/143: Reuse ert test result items when Smart Keys run tests from defs, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole c36535463c 071/143: Merge pull request #435 from rswgnu/matsl-rsw-run-tests-specified-by-selector,
ELPA Syncer <=
- [elpa] externals/hyperbole ffd2dcbb85 077/143: Add tests for non file ebut creation and deletion, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 3940e00d12 080/143: Fix mult-version/mixed Org installations and hyrolo improvements, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole cec4659839 082/143: ebut-delete-removes-ebut-in-non-file-buffer - Enable this test, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1b8fb059c6 089/143: Fix HyRolo {f} and {b} commands and tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 3206c44448 086/143: Remove tar-ball dependency on elc files (#442), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 433eba17ca 092/143: Print build environment info when using eln target (#445), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a85f06a9e4 090/143: Merge branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 19aced9b01 078/143: Fix hyrolo-org-mode hide/show commands;, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 94b792e23f 076/143: hsys-xref.el - Add forgotten file, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 72d17af6e8 081/143: Merge branch 'rsw' into HEAD, ELPA Syncer, 2024/02/19