mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 15:02:52 +00:00
* mk/default.mk: Add default for new variable BTEST_RE to select all tests. (BTEST_OB_LANGUAGES): Remove sh (always needed, as emacs-lisp) and add comment for ruby. (BTEST): Use BTEST_RE to select tests from the test suite. Reorganize pre-loading of Org, Babel, Ox and babel languages into a known clean environment. * mk/targets.mk (CONF_TEST): Add BTEST_RE to the output of config-test. * testing/org-batch-test-init.el: New file. Remove all traces of any Org built into Emacs or otherwise present in the environment so it can not be picked up spuriously during testing or conceal errors in the Org version under test. * testing/org-test.el (org-test-run-batch-tests): Showtest selection in messages. (org-test-run-all-tests): Update ID locations.
21 lines
552 B
EmacsLisp
21 lines
552 B
EmacsLisp
;;
|
|
;; Remove Org remnants built into Emacs
|
|
;;
|
|
|
|
;; clean load-path
|
|
(setq load-path
|
|
(delq nil (mapcar
|
|
(function (lambda (p)
|
|
(unless (string-match "lisp\\(/packages\\)?/org$" p)
|
|
p)))
|
|
load-path)))
|
|
;; remove property list to defeat cus-load and remove autoloads
|
|
(mapatoms (function (lambda (s)
|
|
(let ((sn (symbol-name s)))
|
|
(when (string-match "^\\(org\\|ob\\|ox\\)\\(-.*\\)?$" sn)
|
|
(setplist s nil)
|
|
(when (eq 'autoload (car-safe s))
|
|
(unintern s)))))))
|
|
|
|
;; we should now start from a clean slate
|