From 0cb30c77d888a38360f11657f7a391ab72fa312e Mon Sep 17 00:00:00 2001 From: Max Nikulin Date: Tue, 26 Jul 2022 22:11:40 +0700 Subject: [PATCH] org-test: Run all ol tests on make test * mk/default.mk (BTEST_RE): Add -ol to the default pattern. * testing/org-test.el (org-test-run-batch-tests): Update default regexp for test selection in the docstring. Only `test-ol/org-toggle-link-display' from test-ol.el was executed since it is matched by "org" part of the pattern. The leading dash is added to make tests a bit more specific. Reported in: Ihor Radchenko to emacs-orgmode. Re [PATCH v7] ol.el: add description format parameter to org-link-parameters. Sun, 24 Jul 2022 21:15:31 +0800. https://list.orgmode.org/87v8rmd53g.fsf@localhost/ --- mk/default.mk | 2 +- testing/org-test.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/default.mk b/mk/default.mk index 33e737da3..7371d3a99 100644 --- a/mk/default.mk +++ b/mk/default.mk @@ -72,7 +72,7 @@ REPRO_ARGS ?= req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))' lst-ob-lang = ($(ob-lang) . t) req-extra = --eval '(require '"'"'$(req))' -BTEST_RE ?= \\(org\\|ob\\) +BTEST_RE ?= \\(org\\|ob\\|-ol\\) BTEST_LOAD = \ --eval '(add-to-list '"'"'load-path (concat default-directory "lisp"))' \ --eval '(add-to-list '"'"'load-path (concat default-directory "testing"))' diff --git a/testing/org-test.el b/testing/org-test.el index 0520e82f9..6defa9cc9 100644 --- a/testing/org-test.el +++ b/testing/org-test.el @@ -424,7 +424,7 @@ setting `pp-escape-newlines' to nil manually." "^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*\\.org$"))) (defun org-test-run-batch-tests (&optional org-test-selector) - "Run all tests matching an optional regex which defaults to \"\\(org\\|ob\\)\". + "Run all tests matching an optional regex which defaults to \"\\(org\\|ob\\|-ol\\)\". Load all test files first." (interactive) (let ((org-id-track-globally t) -- 2.25.1