initialize Babel languages and provide possibility to load extra packages for testing
* default.mk: Run emacs without a site-file. BTEST_EXTRA redefined to hold names of extra packages to require for testing. BTEST_PRE and BTEST_POST allow additional options to be injected around setup of standard load path for testing. BTEST_OB_LANGUAGES holds the names of Babel languages to required. R is not added to the list since it requires ess to be installed and configured. All variables can be overridden in local.mk as before.
This commit is contained in:
parent
d5914ad47f
commit
72d7c95469
17
default.mk
17
default.mk
|
@ -33,13 +33,20 @@ BATCH = $(EMACS) -batch -Q \
|
|||
--eval '(defconst org-release "$(ORGVERSION)-Make")' \
|
||||
|
||||
# How to run tests
|
||||
BTEST_EXTRA = # placeholder
|
||||
BTEST = $(EMACS) -batch \
|
||||
$(BTEST_EXTRA) \
|
||||
-L lisp/ \
|
||||
BTEST_PRE = # add options before standard load-path
|
||||
BTEST_POST = # add options after standard load path
|
||||
BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh # R
|
||||
# R is not activated by default because it requires ess to be installed and configured
|
||||
req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
|
||||
BTEST_EXTRA = # extra packages to require
|
||||
req-extra = --eval '(require '"'"'$(req))'
|
||||
BTEST = $(EMACS) -batch -Q \
|
||||
$(BTEST_PRE) -L lisp/ -L testing/ $(BTEST_POST) \
|
||||
--eval '(defconst org-release "$(ORGVERSION)-Test")' \
|
||||
-l testing/org-test.el \
|
||||
-eval "(setq org-confirm-babel-evaluate nil)" \
|
||||
$(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \
|
||||
$(foreach req,$(BTEST_EXTRA),$(req-extra)) \
|
||||
--eval '(setq org-confirm-babel-evaluate nil)' \
|
||||
-f org-test-run-batch-tests
|
||||
|
||||
# How to byte-compile the whole source directory
|
||||
|
|
Loading…
Reference in New Issue