org-mode/testing/lisp
Leo Butler 2ba45fcb78
* lisp/ob-maxima.el: enable use of `batch' loader and `draw'
* (org-babel-header-args:maxima): Document the two new header
arguments (batch and graphics-pkg) that are specific to ob-maxima.
* (org-babel-maxima--command-arguments-default): A new variable
storing the default command-line argument(s).  This value was
hard-coded in `org-babel-maxima:execute'.
* (org-babel-maxima--graphic-package-options): A new variable that
stores an alist of Maxima graphics packages and the Maxima code to set
up that package.
* (org-babel-maxima--default-epilogue): A new variable that stores an
alist of the clean-up code that is run at end of a `graphical-output'
or `non-graphical-output' source block.
* (org-babel-maxima--output-filter-regexps): A new variable that
stores a list of regexps to identify "bad" output lines to be removed
from Maxima's output.  Source-code comments document each regexp's
purpose.  Two additional regexps have been added: one filters
un-wanted output from `batch' and the other removes empty input lines
that `batch'-ed output may spuriously produce (actual empty input
lines are syntax errors, see the new tests below).
* (org-babel-maxima--output-filter): A new function that takes a
single line of Maxima output.  It returns nil if the line has zero
length or matches a regexp in
`org-babel-maxima--output-filter-regexps'; otherwise, it returns the
line.  This function and regexp replace the hard-coded filter in
`org-babel-execute:maxima'.
* (org-babel-maxima-expand): Prepare the source block for execution,
depending on whether it is producing graphical output or not.  In case
of graphical output, use the `graphics-pkg' header to set the graphics
package and use `org-babel-maxima--graphic-package-options' to set-up
the package.  Grovel the graphics terminal from the output filename.
* (org-babel-execute:maxima): Use the :batch header argument and
`org-babel-maxima--command-arguments-default' to execute the source
block.  Replace the existing, in-line output filter and its regexps
with `org-babel-maxima--output-filter' and
`org-babel-maxima--output-filter-regexps'.

* testing/examples/ob-maxima-test.org: Add test examples.

Include examples of the batch-related tests from
testing/lisp/test-ob-maxima.el.  Provide an example of the
`:graphics-pkg' header argument with the `draw' package.

* testing/lisp/test-ob-maxima.el: Introduce six new, batch-related
test functions.  Each test exercises the :batch header argument.  The
response to unusual inputs is tested (empty strings, strings with just
whitespace, input with the `:lisp' reader, and two syntax-related
errors).

link: https://list.orgmode.org/87cyz1ivzw.fsf@t14.reltub.ca/
2023-10-04 11:27:46 +03:00
..
test-ob-C.el testing: Delete useless ert tests 2023-09-17 12:48:36 +03:00
test-ob-R.el * testing/lisp/test-ob-R.el (ob-session-R-result-value): New test 2023-04-18 15:04:57 +02:00
test-ob-awk.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-clojure.el * testing/lisp/test-ob-clojure.el: Remove incorrect tests (all the tests) 2023-08-25 10:46:36 +03:00
test-ob-emacs-lisp.el Update remaining copyright years 2023-01-01 13:13:15 -05:00
test-ob-eshell.el testing/lisp/test-ob-eshell.el: Fix tests 2022-10-13 18:28:56 +08:00
test-ob-exp.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-fortran.el testing: Delete useless ert tests 2023-09-17 12:48:36 +03:00
test-ob-haskell-ghci.el * testing/lisp/test-ob-haskell-ghci.el: Test output without EOL 2023-09-08 10:59:46 +03:00
test-ob-header-arg-defaults.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-java.el Update remaining copyright years 2023-01-01 13:13:15 -05:00
test-ob-julia.el testing/lisp: Add missing `featurep' checks for required packages 2022-10-13 18:30:07 +08:00
test-ob-lilypond.el testing: Delete useless ert tests 2023-09-17 12:48:36 +03:00
test-ob-lob.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-lua.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-maxima.el * lisp/ob-maxima.el: enable use of `batch' loader and `draw' 2023-10-04 11:27:46 +03:00
test-ob-octave.el org-babel-comint-with-output: Fix for edge case of `comint-prompt-regexp' 2023-09-06 12:19:14 +03:00
test-ob-perl.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-plantuml.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-python.el test-ob-python: Unit test for restarting session 2023-08-30 21:48:36 -07:00
test-ob-ruby.el testing/lisp: Add missing `featurep' checks for required packages 2022-10-13 18:30:07 +08:00
test-ob-scheme.el test-ob-scheme.el: Disable testing for older Emacs unsupported by Geiser 2023-08-07 14:57:17 +03:00
test-ob-sed.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-shell.el ob-shell.el: Add async evaluation 2023-03-22 14:55:11 -04:00
test-ob-sql.el testing/lisp: Add missing `provide' 2022-10-13 18:30:44 +08:00
test-ob-sqlite.el ob-sqlite: Use a transient in-memory database by default 2023-08-12 11:00:48 +03:00
test-ob-table.el org-sbe: Allow quoting string values 2023-02-23 12:29:18 +03:00
test-ob-tangle.el ob-tangle/collect-blocks: Small refactoring and extra commentary 2023-07-28 10:27:27 +03:00
test-ob.el org-babel-where-is-src-block-result: Fix inside affiliated parsed keyword 2023-08-16 11:07:20 +03:00
test-oc.el org-cite-list-bibliography-files: Preserve relative bibliography paths 2023-05-02 14:47:56 +02:00
test-ol-bbdb.el Prefer HTTPS to HTTP for links to gnu.org 2021-03-21 14:29:13 -04:00
test-ol.el testing: Re-introduce more useful new tests instead of deleted dupllicates 2023-08-08 15:40:59 +03:00
test-org-agenda.el test-org-agenda/todo-selector: Remove stray `message' call 2023-08-18 11:08:12 +03:00
test-org-archive.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-attach-git.el * testing/lisp/test-org-attach-git.el: Avoid using global git config 2023-08-18 12:03:58 +03:00
test-org-attach.el org-element: Defer more when parsing headings and inlinetasks 2023-07-01 14:35:36 +03:00
test-org-capture.el org-capture-finalize: Do not save new file with :no-save aborted capture 2023-01-22 13:49:07 +03:00
test-org-clock.el test-org-clok/org-clock-update-time-maybe: Fix test for non-English LANG 2023-09-15 12:00:06 +03:00
test-org-colview.el fixup! test-org-colview/...: Fix Emacs 28 compatibility 2023-08-21 12:58:44 +03:00
test-org-datetree.el lisp/org-datetree.el: Allow datetrees with TODO, priority, tags 2023-01-21 12:29:32 +03:00
test-org-duration.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-element.el org-element-dynamic-block-open-re-nogroup: Demand block name 2023-09-12 11:15:17 +03:00
test-org-feed.el Prefer HTTPS to HTTP for links to gnu.org 2021-03-21 14:29:13 -04:00
test-org-fold.el test-org-fold.el: Add test for inline image displaying when cycling 2022-10-26 12:43:08 +08:00
test-org-footnote.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-info.el ol-info: Define :insert-description function 2022-08-26 21:09:39 +08:00
test-org-inlinetask.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-lint.el ox-icalendar: Add support for unscheduled and repeating TODOs 2023-06-18 06:51:47 -07:00
test-org-list.el org-toggle-item: Move footnote-definitions out of the lists 2022-11-11 13:19:01 +08:00
test-org-macro.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-macs.el test-org-macs.el: Add test for template-expansion bug 2022-04-30 17:45:32 +08:00
test-org-num.el test-org-num.el: Do not rely on fixed overlay order in `overlays-in' 2022-11-09 10:12:44 +08:00
test-org-pcomplete.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-protocol.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-src.el test-org-src.el: Work around `current-column' bug in older emacs 2023-07-10 11:19:31 +03:00
test-org-table.el testing: Re-introduce more useful new tests instead of deleted dupllicates 2023-08-08 15:40:59 +03:00
test-org-tempo.el Prefer HTTPS to HTTP for links to gnu.org 2021-03-21 14:29:13 -04:00
test-org-timer.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org.el org-make-tags-matcher: Re-add quoting of property names 2023-09-03 09:48:41 +03:00
test-ox-html.el fixup! test-ox-html: Add new tests for checkboxes: ascii, html & unicode 2023-08-10 15:47:30 +03:00
test-ox-icalendar.el ox-icalendar: Add support for unscheduled and repeating TODOs 2023-06-18 06:51:47 -07:00
test-ox-latex.el lisp/ox-latex.el: Add the `:literal' attribute to verse block. 2023-08-18 11:41:24 +03:00
test-ox-publish.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ox-texinfo.el ox-texinfo: Fix invalid syntax in Texinfo version detection code 2023-02-17 13:30:16 +03:00
test-ox.el org-element-at-point: Throw an error when not in org-mode 2023-08-18 11:11:17 +03:00
test-property-inheritance.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00