org-mode/testing/lisp
Leo Butler 81f2741bca
prevent error in Octave process, add tests, update test docs
* lisp/ob-octave.el (org-babel-execute:octave):

  -Ensure that the special Octave variable `ans' is bound when
  GFX-FILE is non-nil.  The glue code in
  ORG-BABEL-OCTAVE-WRAPPER-METHOD causes Octave to exit with a
  non-zero exit code when `ans' is not bound.

  -Change format control string to %S from %s.  Ensure the graphics
  filename is quoted.  If it is not, Octave may create a mis-named
  file or fail entirely.

* testing/examples/ob-octave-test.org:

  Update the Graphical tests section:
  -put in the correct headers;
  -add a remark about where to find each test.

* testing/lisp/test-ob-octave.el:

  Add the three tests ob-octave/graphics-file,
  ob-octave/graphics-file-session and ob-octave/graphics-file-space.

  -ob-octave/graphics-file: The first test verifies that the first bug
  identified above is fixed; it also verifies that graphics file
  creation works correctly for scripting.

  -ob-octave/graphics-file-session: The second test verifies graphics
  file creation works correctly for sessions.  The Octave command
  `crash_dumps_octave_core(0)' is included to prevent the creation of
  a core file (`octave-workspace').

  -ob-octave/graphics-file-space: The third test verifies that a
  graphics filename with a space in it is created correctly.

Thanks to Ihor Radchenko for helpful feedback.
Ref: https://list.orgmode.org/8735asbtfe.fsf@localhost/T/#u
2022-12-17 11:20:43 +03:00
..
test-ob-C.el ob-C: do not swallow double quotes on raw output 2022-09-27 16:20:57 +02:00
test-ob-R.el ob-R.el: Restore the handling of org-list in as var 2022-12-14 12:36:38 +03: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: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-emacs-lisp.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08: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: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08: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 ob-core: Resolve named list references to simple lists 2022-11-26 09:51:36 +08: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: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08: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 testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-octave.el prevent error in Octave process, add tests, update test docs 2022-12-17 11:20:43 +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 fixup! test-ob-python: Disable test failing on CI when using older Emacs 2022-11-16 17:42:17 +08: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 testing/lisp: Add missing `featurep' checks for required packages 2022-10-13 18:30:07 +08:00
test-ob-sed.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-ob-shell.el org-babel: Never throw away standard error 2022-11-04 10:48:38 +08:00
test-ob-sql.el testing/lisp: Add missing `provide' 2022-10-13 18:30:44 +08:00
test-ob-sqlite.el testing/lisp: Add missing `provide' 2022-10-13 18:30:44 +08:00
test-ob-table.el org-sbe: Fix when the macro is expanded outside Org file 2022-11-23 17:26:55 +08:00
test-ob-tangle.el org-babel: Add new "strip-tangle" :noweb argument value 2022-11-07 10:54:13 +08:00
test-ob.el org-babel-result-to-file: Fix results file inside attachment dir 2022-12-07 14:13:49 +03:00
test-oc.el testing: Address FIXMEs identified in 1a5e3f931 2022-09-16 11:30:16 +08: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: Address FIXMEs identified in 1a5e3f931 2022-09-16 11:30:16 +08:00
test-org-agenda.el org-agenda: Make sure file restriction can be removed 2022-10-12 15:35:12 +08: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: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-attach.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-capture.el org-capture: Add template hook properties 2022-10-07 13:38:52 +08:00
test-org-clock.el test-org-clock: Test DWIM update of days 2022-11-06 11:27:35 +08:00
test-org-colview.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-datetree.el org-datetree-insert-line: Fix blank line insertion 2022-10-26 15:25:24 +08:00
test-org-duration.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-element.el testing/lisp/test-org-element.el: Uncomment working test 2022-11-26 16:05:19 +08: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 testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08: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 testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00
test-org-table.el org-table-convert-refs-to-rc: Fix failing test 2022-11-25 14:45:09 +08: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-fold-core-save-visibility: Fix macro expansion 2022-12-10 12:03:53 +03:00
test-ox-html.el ox-html: Update from MathJax 2 to MathJax 3+ 2022-11-21 10:44:56 +08:00
test-ox-latex.el org-latex-line-break-safe: Use safer value of "\\[0pt]" 2022-10-29 10:34:05 +08: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: Include LaTeX in Texinfo exports 2022-09-21 15:29:50 +08:00
test-ox.el lisp/test-ox.el: Add tests for `org-export-get-ordinal' 2022-12-13 11:49:42 +03:00
test-property-inheritance.el testing: Make all files use `lexical-binding` 2022-09-15 19:17:19 +08:00