org-mode/testing/examples
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
..
att1 org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
att2 org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
data/ab/cd123 org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
images test-org-fold.el: Add test for inline image displaying when cycling 2022-10-26 12:43:08 +08:00
pub Merge branch 'maint' 2018-02-15 15:04:59 +01:00
pub-symlink Fix failing tests 2018-02-15 15:01:45 +01:00
sub-bib org-cite-list-bibliography-files: Preserve relative bibliography paths 2023-05-02 14:47:56 +02:00
subdir fix SETUPFILE pathname expansion with subdirectories 2015-09-24 10:16:04 +02:00
agenda-file.org org-agenda: Fix regression when diary sexp timestamps are ignored 2022-03-26 15:17:45 +08:00
agenda-search.org org-search-view: Fix searching across inlinetasks 2022-12-27 13:10:02 +03:00
attachments.org org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
babel-dangerous.org change this failing test so that it no longer fails 2013-04-03 11:30:14 -06:00
babel.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
babel.org org-element: New `org-element-*property*' functions 2023-07-01 14:35:43 +03:00
diary-file test-org-agenda: Test diary inclusion 2019-01-08 21:32:44 +01:00
include.html ox: implement additional #+INCLUDE markup 2014-06-07 18:02:52 +02:00
include.org ox: Update INCLUDE keywords wrt property drawers 2014-10-28 14:23:52 +01:00
include2.org Fix the maint branch. 2012-03-19 20:27:28 +01:00
link-in-heading.org test: re-arranging example files into their own directory 2010-10-05 11:54:48 -06:00
links.org Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
macro-templates.org Remove useless data in test file 2012-10-10 22:46:50 +02:00
no-heading.org Change Org-mode into Org mode 2017-12-31 15:48:09 +01:00
normal.org Change Org-mode into Org mode 2017-12-31 15:48:09 +01:00
ob-C-test.org ob-C: do not swallow double quotes on raw output 2022-09-27 16:20:57 +02:00
ob-awk-test.in Awk can be called with no in-file: and no :stdin 2011-07-24 14:05:55 -06:00
ob-awk-test.org Fix typos 2019-11-16 17:17:36 -05:00
ob-fortran-test.org Replace TBLNAME with NAME in tests 2016-02-10 15:40:11 +01:00
ob-header-arg-defaults.org Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00
ob-lilypond-broken.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-broken.org ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.error ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.org ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-maxima-test.org * lisp/ob-maxima.el: enable use of `batch' loader and `draw' 2023-10-04 11:27:46 +03:00
ob-octave-test.org prevent error in Octave process, add tests, update test docs 2022-12-17 11:20:43 +03:00
ob-screen-test.org Map "screen" to shell-script-mode 2012-01-20 11:47:13 -07:00
ob-sed-test.org ob-sed-test: Make the tests pass on BSD systems, such as macOS 2022-10-07 12:10:20 +08:00
org-exp.org test of comma stripping behavior 2011-09-06 21:58:51 -06:00
property-inheritance.org Org document property-drawers 2019-10-19 14:07:58 +02:00
setupfile.org fix SETUPFILE pathname expansion with subdirectories 2015-09-24 10:16:04 +02:00
setupfile3.org fix SETUPFILE pathname expansion with subdirectories 2015-09-24 10:16:04 +02:00