Bastien Guerry
8f3b8ee44c
testing/org-test.el: Fix `org-test-with-temp-text'.
...
* org-test.el (org-test-with-temp-text): No need to kill a
temporary buffer. Don't use (prog1 ,@body ...), only expand
,@body.
Thanks to Nick Dokos for pointing this.
2012-12-15 08:00:30 +01:00
Bastien Guerry
ecd0562c5f
Fix the master branch.
...
I started from the 78ec8e commit then cherry-picked and squashed
commits that have been done in master since then, except the bad
commits that overwrote the tree (in master) with the tree in maint.
This commit also bumps the version number to 7.8.06.
The only "fix" that was made between 78ec8e and the previous commit
is e0072f which has been reported to break stuff.
2012-03-19 22:01:29 +01:00
Bastien Guerry
de42649f7b
Manually revert maint to e85080.
...
e85080 is the last correct commit in the maint branch
before releasing 7.8.04. The 7.8.05 release should be
done from this commit.
2012-03-17 16:28:46 +01:00
Bastien Guerry
73bb18ba37
Manually revert to the Release 7.8.04 tag.
2012-03-17 15:52:24 +01:00
Bastien Guerry
6e534f9c61
Manually revert back to commit e85080.
...
This fixes a wrong merge that should not have happened:
commit 7e903a merges the master branch into the maint branch,
while we really want to keep the maint branch a bugfix-only
branch.
This commit reverts back the maint branch to its state before
merging the master branch. From there, we will fix remaining
problems with the maint branch (e.g. copyright issues) then
release this maint branch as Org-mode 7.8.05.
2012-03-17 14:34:01 +01:00
Eric Schulte
a3a48f698f
ensure that test constants are loaded by org-test.el
2012-03-01 11:37:04 -07:00
Eric Schulte
618eb91e12
fully remove contrib/ from the test infrastucture
2012-03-01 11:28:46 -07:00
Eric Schulte
85974ce727
killing all of the test buffers
2012-01-24 09:41:21 -07:00
Eric Schulte
b0eebd1ae1
be a little nicer about burying buffers used in running tests
2012-01-24 09:35:40 -07:00
Eric Schulte
7423c15d3e
added edbug specs for testing macro
...
* testing/lisp/test-property-inheritance.el (test-org-in-property-buffer):
Added edbug spec.
* testing/org-test.el (org-test-at-id): Added edbug spec.
(org-test-in-example-file): Added edbug spec.
2012-01-11 10:15:20 -07:00
Martyn Jago
49de19ba02
Modify macro `org-test-with-temp-text-in-file' to work on emacs 22. * testing/org-test.el:
...
In Emacs 22 the `kill-buffer' argument is NOT optional. This change
reflects this and allows the macro `org-test-with-temp-text-in-file'
to work in Emacs 22 for org compatibility. This fixes the test
`test-ob-lob/do-not-eval-lob-lines-in-example-blocks-on-export'
2012-01-04 17:30:13 +01:00
Bastien Guerry
e44d2975ff
Fix copyright (to 2012) year and Org version (to 7.8.03).
2012-01-03 18:47:01 +01:00
Eric Schulte
1f206ed477
new testing macro for in-file execution with temp text
...
* testing/org-test.el (org-test-with-temp-text-in-file): A new testing
macros for temp-text tests which require a file name (e.g., for
export).
2011-11-18 11:30:59 -07:00
Eric Schulte
9702f5520e
revert changes to interactive function `org-test-run-all-tests'
2011-11-15 08:56:25 -07:00
Martyn Jago
0440b83ac5
Changes to fix sandboxed tests to suit the standard code block syntax, and some changes to reduce ID testing scope and improve result gathering. * testing/org-test.el: Add org as an executable language for sand-boxed testing to suit the standard code block syntax. Use .org-test-id-locations as ID file temporarily whilst testing. Add `org-test-update-id-locations' to do just that. Clear *Messages* buffer and temporarily set `message-log-max to t to ensure capturing entire test backtrace.
...
* testing/.gitignore: ignore testing/.org-test-id-locations
2011-11-15 08:56:25 -07:00
Eric Schulte
630b9c80ca
Indicate tests with missing dependencies by adding a expected failing test
...
* testing/lisp/test-ob-R.el (featurep): Signal missing dependencies
with an error rather than a throw.
* testing/org-test.el (missing-test-dependency): Define the error
signal for missing dependencies.
(org-test-for-executable): Signal missing dependencies with an error
rather than a throw.
(org-test-load): Define an expected failing test for each file with
missing dependencies.
2011-11-15 08:56:25 -07:00
Martyn Jago
49d6951caa
Fix don't load symlinks (Emacs interlocking files) * testing/org-test.el: During test development various interlocking files may be present in testing/lisp directory (since they are being edited by emacs). Currently org-test-load will attempt to load these
2011-11-15 08:56:25 -07:00
Martyn Jago
0cc18ed120
Avoid loading (and failing) symbolic links (interlocking files) * testing/org-test.el: During test development various interlocking files may be present in testing/lisp directory (since they are being edited by emacs). Currently org-test-load will attempt to load these and fail.
2011-11-15 08:56:25 -07:00
Tassilo Horn
4bbdfd229d
Replace org-mode-p with usual (eq major-mode 'org-mode) check
...
Additionally, replace one
(or (org-mode-p) (derived-mode-p 'org-mode))
with
(derived-mode-p 'org-mode)
cause that is reflexive anyway (returns true, if the current mode is
org-mode).
Delete one check testing for org-mode or org derived mode
2011-10-22 11:29:24 +02:00
Eric Schulte
832fd8b415
less hacky check for executables when loading tests
...
* testing/org-test.el (org-test-for-executable): Less hacky check for
executables when loading tests.
2011-09-26 06:16:55 -06:00
David Maus
07d11a6847
Make sure Org mode is turned on after loading the example file
...
* org-test.el (org-test-in-example-file): Make sure Org mode is turned
on after loading the example file.
2011-09-25 09:26:50 +02:00
Eric Schulte
4446e50e3d
org tests using throw/catch rather than errors to avoid loading unsupported tests
2011-09-24 15:57:14 -06:00
Eric Schulte
c8c804e917
update function documentation for `org-test-with-temp-text'
...
* testing/org-test.el (org-test-with-temp-text): Update function documentation.
2011-09-23 15:49:31 -06:00
Eric Schulte
25a066d5b6
catching more general errors during recursive load of test files
...
* testing/org-test.el (org-test-load): Catching more general errors
during recursive load.
2011-09-23 09:57:40 -06:00
Eric Schulte
decd7227f6
only load those test files for which the required executables are present
...
* testing/org-test.el (org-exe-not-found): An error type used to
signal a missing executable
(org-test-for-executable): A function used by test files to throw an
error if a required executable is not present.
(org-test-load): Simply skip files for which the required
executables are not present.
* testing/lisp/test-ob-R.el: Conditional loading.
* testing/lisp/test-ob-awk.el: Conditional loading.
* testing/lisp/test-ob-fortran.el: Conditional loading.
2011-09-21 16:41:44 -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
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
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
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
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
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
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
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
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
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
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
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
3ab7f12792
org-test is now ready for the newyears
2010-10-21 13:06:00 +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
19efdcca43
added tangle tests exercising new desired tangling behavior
2010-10-06 10:23:50 -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
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