Eric Schulte
12f0fb2d75
adding a file for R tests
...
* testing/lisp/test-ob-R.el (test-ob-R/simple-session): Simple session
test.
2011-09-21 09:10:22 -06:00
Martyn Jago
cfc019073e
Refactor tests to use `org-test-with-temp-text' * testing/lisp/test-ob.el: refactor
2011-09-21 09:10:22 -06:00
Martyn Jago
94c0f143dd
Modifications to enable test script to run with emacs-23 and emacs-22 * testing/org-test.el: enable test script to run with emacs-23 and emacs-22 * testing/lisp/test-org-exp.el: added org-ascii requirement
2011-09-20 09:03:41 -06:00
Eric Schulte
ded9f87ebc
org-test-with-temp-text allows variable inputs holding strings
...
* testing/org-test.el (org-test-with-temp-text): Allow variable inputs
holding strings.
2011-09-20 09:01:20 -06:00
Eric Schulte
9da40a0d6e
Convenience macro for testing.
...
* testing/org-test.el (org-test-with-temp-text): Convenience macro for
testing.
2011-09-19 10:01:32 -06:00
David Maus
56de2cf7a6
Explicitely set coding system for unescaped string
...
* test-org.el (test-org/org-link-unescape-ascii-extended-char):
Explicitely set coding system for unescaped string.
Needed for Emacs22 to pass these tests. The input string is extended
ASCII which is covered by latin-1 coding system.
2011-09-18 16:40:01 +02:00
David Maus
ee957745db
Conditionally define `special-mode' for Emacs22
...
* org-test.el: Conditionally define `special-mode' for Emacs22.
Copied definition from Emacs23's simple.el.
2011-09-18 10:35:50 +02:00
Eric Schulte
15a9eac67e
isolating dangerous testing examples
...
* testing/examples/babel-dangerous.org: To house the dangerous.
* testing/examples/babel.org (an): Removed a trouble maker.
2011-09-16 09:52:34 -06:00
Sebastien Vauban
cd05d152cf
Add test checking that any variable declared with no default value will generate a proper error message.
2011-09-16 09:52:34 -06:00
Sebastien Vauban
fefff8ec87
Add test checking that any variable declared with no default value will generate a proper error message.
2011-09-16 09:52:34 -06:00
David Maus
37db5deea5
Fix check for feature Org mode
...
* org-test.el: Fix check for feature Org mode.
2011-09-16 06:48:16 +02:00
Eric Schulte
7eaa67260b
test the combination of code block results wrapper and type
...
* testing/examples/babel.org (an): Test the combination of code block
results wrapper and type.
* testing/lisp/test-ob.el (test-org-babel/combining-scalar-and-raw-result-types):
Test the combination of code block results wrapper and type.
2011-09-15 15:29:10 -06:00
Eric Schulte
dbf0e6d5bc
fixed author information
...
* testing/lisp/test-ob-awk.el: Fixed author information.
* testing/lisp/test-ob-fortran.el: Fixed author information.
2011-09-12 10:42:22 -06:00
Martyn Jago
fd1e005e33
Add missing FSF / author headers and org-test dependency to some test files * testing/lisp/test-ob-awk.el: * testing/lisp/test-ob-fortran.el: * testing/lisp/test-ob-lilypond.el: * testing/lisp/test-ob.el: * testing/lisp/test-org-exp.el: Add missing FSF / author headers and org-test dependency to some test files.
2011-09-12 10:39:45 -06:00
Martyn Jago
7f62b224af
Remove jump.el dependency from test execution * testing/org-test.el: Remove jump.el dependency from test execution removing the need for a user to install git submodules
2011-09-12 10:37:25 -06:00
Eric Schulte
f1fcc592fd
re-wrapped test to prevent failure during batch execution
...
* testing/lisp/test-ob.el (test-org-babel/inline-src-blocks):
Re-wrapped test to prevent failure during batch execution.
2011-09-11 14:43:32 -06:00
Eric Schulte
f78f29ebea
all tests should now pass on Emacs23
...
* testing/lisp/test-ob.el (test-org-babel/org-babel-get-inline-src-block-matches):
All tests should now pass on Emacs23.
2011-09-11 14:19:02 -06:00
Eric Schulte
bae8dfed77
Better Org-mode initialization for batch tests.
...
Thanks to Martyn Jago for this patch.
* testing/org-test.el (org-test-dir): Better Org-mode initialization
for batch tests.
2011-09-09 14:31:06 -06:00
Martyn Jago
8fb588d4d3
* testing/lisp/test-ob.el: Fixed typo
2011-09-09 14:31:06 -06:00
Martyn Jago
bb0b9709ef
* testing/lisp/test-ob.el: More tests for inline source blocks execution via org-ctrl-c-ctrl-c
2011-09-09 14:31:05 -06:00
Eric Schulte
5b98dfb644
adding function for batch test evaluation
...
* testing/org-test.el (org-test-run-batch-tests): Allows for batch
evaluation of the Org-mode test suite.
2011-09-08 09:11:50 -06:00
Eric Schulte
f1746a5118
test of comma stripping behavior
...
* testing/examples/org-exp.org: Example file for export tests.
* testing/lisp/test-org-exp.el (test-org-exp/stripping-commas): List
file for export tests.
2011-09-06 21:58:51 -06:00
Eric Schulte
f0d139adfa
correctly resolving load-path in testing files
...
* testing/lisp/test-org.el (testing-lisp-dir): Require all files with
load-path set.
* testing/lisp/test-ob-lob.el (expand-file-name): Relative load path.
* testing/lisp/test-ob-fortran.el (load-path): Relative load path.
2011-09-06 11:12:29 -06:00
Eric Schulte
09986fa395
commenting out single failing test
...
* testing/lisp/test-ob-fortran.el: Commenting out single failing test.
2011-09-06 09:09:09 -06:00
Eric Schulte
966ec3f1f1
ensure all tests have unique names
...
* testing/lisp/test-ob-exp.el (test-ob-exp/org-babel-exp-src-blocks/w-no-headers2):
Renamed to be unique.
2011-09-06 09:07:00 -06:00
Eric Schulte
242a928646
removing test: shouldn't test a variables value, should test its functionality
...
* testing/lisp/test-ob.el (test-org-babel/get-header): Removing a
test, shouldn't test a variables value, should test its
functionality.
2011-09-06 08:57:10 -06:00
Martyn Jago
223ac13486
Inline source block and test fixes * lisp/ob.el: Fixed late night refactoring error * testing/examples/babel.org: whitespace * testing/lisp/test-ob.el: Fixed test-org-babel/inline-src-block-regexp (regression error) Renamed test-org-babel/parse-header-args2 since duplicate test heading Made test-org-babel/parse-header-args less brittle
2011-09-06 08:53:07 -06:00
Martyn Jago
d7d052ec7c
Bug fixes to inline source block execution triggering. * lisp/ob.el: Created org-babel-get-inline-src-block-matches() to fix problems with org-ctrl-c-ctrl-c not triggering inline src block execution when point is on or after a space within the inline src block body. Also fixed execution problems where inline src block is on buffer line 1. * testing/examples/babel.org: Test data for org-babel-get-inline-src-block-matches()
...
* testing/lisp/test-ob.el: Tests for
org-babel-get-inline-src-block-matches()
2011-09-06 08:52:59 -06:00
Eric Schulte
14c635450a
test inline src blocks
...
* testing/examples/babel.org (an): Adding example inline code blocks.
* testing/lisp/test-ob.el (test-org-babel/inline-src-blocks): Test
inline code blocks.
2011-08-29 16:14:13 -06:00
Eric Schulte
63faebd64b
more robust test execution with `org-test-run-all-tests'
...
* testing/org-test.el (org-test-touch-all-examples): Open all example
files -- seems to help resolution of org ids.
(org-test-run-all-tests): Open all example files before running
tests.
2011-08-23 08:36:49 -06:00
Sergey Litvinov
55fe477899
Get rid of tmp and backup file in test load
2011-08-05 11:29:41 -06:00
Litvinov Sergey
6b6ab13810
Awk can be called with no in-file: and no :stdin
2011-07-24 14:05:55 -06:00
Litvinov Sergey
c65df4aa01
ob-fortran.el: fix bug with string input, add ob-fortran tests with ert
2011-07-21 11:21:33 +02:00
Litvinov Sergey
2249abb8ad
Add fortran to babel
2011-07-18 12:11:53 -06:00
Eric Schulte
def5a2f567
test: updated babel tangling test to reflect body-parsing change
2011-07-15 09:31:36 -06:00
Martyn Jago
514ed6b79c
ob-lilypond: more consistent behavior with other code block languages
...
> Hi
>
> I've added functionality to make ob-lilypond act in a consistent
> org-babel way by default (think ob-dot).
>
> The previous modus operandi is now known as arrange-mode and is
> selected by setting ly-arrange-mode to t
>
> More details including examples are at
> http://github.com/mjago/ob-lilypond
2011-07-06 07:17:29 -06:00
Eric Schulte
c22c904718
test: adding simple regression test for table formula evaluation
2011-07-04 12:13:41 -06:00
Eric Schulte
20401ecd6d
test: small changes to ensure proper setup... passing all tests
2011-07-04 12:04:43 -06:00
Martyn Jago
dacf18e80a
ob-lilypond: test suite, all tests passing
2011-07-01 12:22:33 -07:00
Eric Schulte
b18e0cb117
test: tests for expanding noweb references
2011-06-28 13:04:58 -07:00
Eric Schulte
8348f9cfbb
test: another order of arguments test
2011-06-28 13:04:57 -07:00
Eric Schulte
ef42f3cc9c
ob-lob: inline calls should export even when preceeded by an "="
...
* lisp/ob-exp.el (org-babel-in-example-or-verbatim): Also check for in
verbatim emphasis.
(org-babel-exp-lob-one-liners): Cleaner checking for escaped call
lines.
2011-06-28 13:04:57 -07:00
Eric Schulte
c399484313
test: inline export of raw results
2011-06-28 13:04:57 -07:00
Eric Schulte
214acebac9
test: more tests of exporting call lines in a variety of situations
2011-06-27 11:34:00 -07:00
Eric Schulte
8d7d4428cc
test: explicitly testing inline call lines at the beginning of a line
2011-06-25 17:46:57 -07:00
Eric Schulte
e28cba02dd
tests: ensure un-named variables are assigned in the correct order -- passing all tests
2011-06-25 15:21:02 -07:00
Eric Schulte
328202cf62
tests: more thorough testing of inline call lines -- passing all tests
2011-06-25 15:07:01 -07:00
Eric Schulte
550d24aa8e
ob-tests: adding tests of new un-named arguments
2011-06-25 14:41:13 -07:00
Eric Schulte
949dd1606c
ob-tests: passing all tests
...
fixed alignment of code and removed overly strict hashing test
2011-06-25 14:31:50 -07:00
Eric Schulte
ff62c5d700
added a test for the new noweb-ref header argument, passing all tests
...
* testing/examples/babel.org: Example data for new test.
* testing/lisp/test-ob-tangle.el
(ob-tangle/no-excessive-id-insertion-on-tangle): Safer to narrow,
and less work.
(ob-tangle/continued-code-blocks-w-noweb-ref): Testing new
:noweb-ref header argument.
2011-06-15 21:27:58 -07:00
Eric Schulte
6fe935dd46
Adding instructions for running tests in batch mode.
...
This makes it easier to test multiple versions of Emacs.
* testing/README.org: Adding instructions for running tests in batch
mode.
2011-06-14 14:37:11 -07:00
Eric Schulte
978cdf276d
Babel: code block may have empty bodies, now passing all tests
...
* lisp/ob.el (org-babel-src-block-regexp): Babel: code block may have
empty bodies.
* testing/lisp/test-ob-tangle.el
(ob-tangle/no-excessive-id-insertion-on-tangle): Updated the ID.
* testing/lisp/test-ob.el (test-org-babel/src-block-regexp): Cleaned
up the test.
(test-org-babel/default-header-args): Removed trivial test.
(test-org-babel/get-header): Indentation.
(test-org-babel/sha1-hash): Updated Hash for new sorting schema.
2011-06-14 13:41:32 -07:00
Martyn Jago
38bc761e21
Modified testing/README.org to include ERT installation information for Emacs version < 24. Added new tests
2011-03-02 11:46:47 -07:00
Eric Schulte
750502e3bf
ignore testing/ert, in case anyone wants to keep ert installed there
...
This may be useful for testers using older version of Emacs
2011-03-01 10:01:40 -07:00
Martyn Jago
ed89b9cdca
Changes to suit latest ert structure. ERT is now a part of EMACS and the source of the ERT git submodule is deprecated, as are some files within. Changes testing/README and .gitmodules to suit.
2011-03-01 09:59:01 -07:00
David Maus
ada3ff175f
Define factory function to create pre-defined link export tests
...
* lisp/test-org-html.el (test-org-html/export-link-alist): New
variable. Abstract link export test definition.
(test-org-html/export-link-factory): New function. Create tests for
link export.
2011-02-01 06:47:20 +01:00
David Maus
415d4fbf38
New function: Strip text properties
...
* org-test.el (org-test-strip-text-props): New function. Strip text
properties.
2011-02-01 06:28:34 +01:00
Bastien Guerry
cf19aefc4f
Add links.org to testing/examples/
...
This file will help test various links type and the way they are
exported in various backends.
2011-01-17 18:23:45 +01:00
David Maus
048f32d075
Provide tests for table formular format conversion
...
* test-org-table.el (test-org-table/org-table-convert-refs-to-rc/3)
(test-org-table/org-table-convert-refs-to-rc/2)
(test-org-table/org-table-convert-refs-to-rc/1)
(test-org-table/org-table-convert-refs-to-an/3)
(test-org-table/org-table-convert-refs-to-an/2)
(test-org-table/org-table-convert-refs-to-an/1): Provide tests for
table formular format conversion.
2011-01-11 22:07:33 +01:00
Eric Schulte
8efcd4338d
adding test of error when exporting marked subtree with code blocks
2010-12-13 12:41:55 -07:00
David Maus
1b5ff1e341
Add test for escaping and unescaping url with already escaped char
...
* test-org.el (test-org/org-link-escape-url-with-escaped-char): Add
test for escaping and unescaping url with already escaped char.
2010-11-29 21:04:41 +01:00
Eric Schulte
d24b04d82f
ob: cleaner parsing of header arguments
...
Thanks to Charles C. Berry for insisting on this issues existence
This change is now secured with a unit test
* lisp/ob.el (org-babel-parse-header-arguments): Stripping trailing
spaces off of header arguments (even the first one).
2010-11-23 09:39:26 -07:00
David Maus
6de7ac6b89
New function: Run all tests for current file
...
* org-test.el (org-test-current-file): New function. Run all tests
for current file.
2010-11-22 19:29:05 +01:00
David Maus
47486604a4
New tests for unicode aware percent escaping
...
* test-org.el (test-org/org-link-escape-ascii-character)
(test-org/org-link-escape-ascii-ctrl-character)
(test-org/org-link-escape-multibyte-character)
(test-org/org-link-escape-custom-table)
(test-org/org-link-escape-custom-table-merge)
(test-org/org-link-unescape-ascii-character)
(test-org/org-link-unescape-ascii-ctrl-character)
(test-org/org-link-unescape-multibyte-character)
(test-org/org-link-unescape-ascii-extended-char): New tests for
unicode aware percent escaping
All tests for escaping/unescaping multibyte characters are expected to
fail at the moment, because org-link-escape/unescape is not yet
unicode aware.
2010-11-21 19:51:50 +01:00
Eric Schulte
68b5ca3989
updated tests to accommodate new #+call: line header arg. pass-through
2010-11-08 14:26:47 -07:00
David Maus
f99197e143
`which-function' does not return a list, but the name of the function
...
* org-test.el (org-test-current-defun): `which-function' does not
return a list, but the name of the function.
2010-11-02 21:11:16 +01:00
Eric Schulte
6599e17654
babel: uncomment test-ob-lob.el test which seems to have stochastic failures
2010-10-21 07:53:33 -06:00
Eric Schulte
09758a4b81
babel: updating tests
2010-10-21 07:11:27 -06:00
Eric Schulte
6fa1ae974a
minor test cleanup
2010-10-21 13:06:56 +01:00
Eric Schulte
e905dbe0f6
babel hashing now handles more complex types in params
...
* lisp/ob.el (org-babel-sha1-hash): now handles more complex types in
params
* testing/examples/babel.org: whitespace
* testing/lisp/test-ob.el (test-org-babel/sha1-hash): new test for
babel hashing
2010-10-21 13:06:55 +01:00
Eric Schulte
fd97cb9386
ob-lob: now working with the new variable resolution setup
...
* lisp/ob-lob.el (org-babel-lob-execute): now expanding variable
references before execution
* lisp/ob.el (org-babel-merge-params): better indentation, and finally
sorted out the proper replacement of conflicting variable
definitions
2010-10-21 13:06:00 +01:00
Eric Schulte
1412447d61
babel evaluation once again working in tables
...
* lisp/ob-table.el (sbe): reworking for better indentation and to
integrate the new variable resolution
2010-10-21 13:06:00 +01:00
Eric Schulte
832dc71f31
ob-lob: now working with the new ob-get-src-block-info
...
ob-get-src-block-info wasn't correctly returning the name of the
code block
* lisp/ob-lob.el (org-babel-lob-ingest): now returns the count of
ingested code blocks
* lisp/ob.el (org-babel-get-src-block-info): walks up possible
additional header arg lines before checking for the code block name
(org-babel-merge-params): can now handle empty variables gracefully
2010-10-21 13:06:00 +01:00
Eric Schulte
3ab7f12792
org-test is now ready for the newyears
2010-10-21 13:06:00 +01:00
Eric Schulte
9931dae20a
babel: exporting now working with the new ob-get-src-block-info schema
...
includes a simple export test
* lisp/ob-exp.el (org-babel-exp-in-export-file): wrapper for
collecting information from within the original export file
(org-babel-exp-src-blocks): simplified through use of the above
macro
(org-babel-exp-code): simplified through the use of new functions
for parsing header arguments
(org-babel-exp-results): simpler high-level organization, also this
is now where the expansion of variable references takes place during
export
* lisp/ob.el (org-babel-expand-variables): broke variable replacement
in a parameter list into it's own function
(org-babel-get-src-block-info): now using the above function
2010-10-21 13:05:59 +01:00
Eric Schulte
9ba9ef99a6
babel: now allows multi-line header arguments with #+headers: before code block
...
for example, from the test of this functionality
* multi-line header arguments
:PROPERTIES:
:ID: b77c8857-6c76-4ea9-8a61-ddc2648d96c4
:END:
(map 'list #'list numbers letters)
| 1 | a |
| 2 | b |
| 3 | c |
| 4 | d |
| 5 | e |
| 6 | f |
| 7 | g |
* lisp/ob.el (org-babel-multi-line-header-regexp): new variable for
matching header lines preceding code blocks
(org-babel-src-name-w-name-regexp): now includes possible header
lines between source name and code block
(org-babel-get-src-block-info): now also collecting header arguments
from preceding header lines
(org-babel-src-block-names): updated match-string to reflect new
value of org-babel-src-name-w-name-regexp
(org-babel-merge-params): fixed error in variable string regexp
2010-10-21 13:05:59 +01:00
Eric Schulte
3d2aec3588
adding simple test of variable resolution
2010-10-21 13:05:59 +01:00
Eric Schulte
a9f3c9fe11
now using newer version of jump.el -- run $ git submodule update
2010-10-21 13:05:59 +01:00
Eric Schulte
c9b017632e
ob-sh: no longer fails on empty results
...
* lisp/ob-sh.el (org-babel-sh-evaluate): no longer assumes that
results are non-nil
2010-10-15 09:25:33 -06:00
Eric Schulte
1ff357d59f
removing old testing file as it can cause errors
...
the file testing/org-html.el will live on in the git VC history
2010-10-15 09:15:01 -06:00
Eric Schulte
d32c8d49e5
ob-tangle: only create links for blocks that will actually tangle
...
this commit includes a unit test
* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): only create
links for blocks that will actually tangle
2010-10-14 17:15:11 -06:00
Eric Schulte
b04265eabc
ob-sh: don't insert extra newlines in the beginning of the body
...
* lisp/ob-sh.el (org-babel-expand-body:sh): don't insert extra
newlines in expanded shell bodies
2010-10-14 08:10:23 -06:00
Eric Schulte
38df64b4f6
tests: adding test for eval'd elisp forms in header arguments
2010-10-14 07:32:21 -06:00
Eric Schulte
19efdcca43
added tangle tests exercising new desired tangling behavior
2010-10-06 10:23:50 -06:00
Eric Schulte
462fc24cd3
typo in testing/README.org, once again, thanks Nick Dokos
...
* testing/README.org: type
2010-10-06 09:04:06 -06:00
Eric Schulte
be42b2fb51
ensuring that test files include org-test in their load path
...
again thanks to Nick Dokos for pointing this out
2010-10-06 09:02:25 -06:00
Eric Schulte
25c9d74352
ensure that the testing/contrib/lisp directory is created
...
thanks to Nick Dokos for noticing this
2010-10-06 08:58:08 -06:00
Eric Schulte
d9e4469c1c
updated testing/README.org describing how to get started writing tests
2010-10-05 20:55:45 -06:00
Eric Schulte
e1b90eea45
ob-exp: fixed export when headings have links, with tests
...
also some organization of the test directory
* lisp/ob-exp.el (org-babel-exp-src-blocks): fixed export when
headings have links, with tests
2010-10-05 11:54:48 -06:00
Eric Schulte
41cde9d9bd
test: re-arranging example files into their own directory
2010-10-05 11:54:48 -06:00
Eric Schulte
d6143f1e7a
added a test ensuring that export works from buffers which aren't visiting files
2010-10-05 11:54:48 -06:00
Eric Schulte
49b22bb57e
more permissive selector in `org-test-run-all-tests'
2010-10-05 11:54:48 -06:00
Eric Schulte
5bafe303aa
beginning tests for ob-exp, and related improvements to org-test
...
- fixed issue in creation of new files
- fixed issue in org-test-in-file
- new example file w/o any headlines
2010-10-05 11:54:48 -06:00
Eric Schulte
9bd5f511ce
improving test-helper macros for better name-spaceing and more flexibility
2010-10-05 11:54:48 -06:00
Eric Schulte
271d1bb986
fixed `org-test-load' so that is recursively loads all test files
2010-10-05 11:54:48 -06:00
Eric Schulte
e694d1fe39
requiring ert and jump, and using jump for navigation `org-test-jump'
2010-10-05 11:54:48 -06:00
Eric Schulte
58b0242bcb
updating org-testing requires to load ert and jump.el
2010-10-05 11:54:48 -06:00
Eric Schulte
509ee52b53
adding ERT and jump.el as git submodules
2010-10-05 11:54:48 -06:00
Eric Schulte
70ee58a8ab
merge ert-testing and schulte-testing, temporarily removing navigation functions
2010-10-05 11:54:48 -06:00
Sebastian Rose, Hannover, Germany
2b52d1911c
Create a test file per defun.
...
* org-test-which-func: New function. Find name of defun around point.
* org-test-ensure-buffer-emacs-lisp-p: New function. Ensure a buffer
hold an elisp file based on filename extension.
2010-10-05 11:54:48 -06:00