On Fri 09 Sep 2011 00:03:59 CEST, Martyn Jago wrote: > Hi Eric > > Martyn Jago <martyn.j...@btinternet.com> writes: > >> Hi Eric >> >> Eric Schulte <schulte.e...@gmail.com> writes: >> >>> Hi Martyn, >>> >>>> >>>> I have written a few more tests for inline source blocks execution with >>>> org-ctrl-c-ctrl-c (not extensive by any means). >>> >>> Thanks for adding these tests, I get 6 failures all with the same error >>> [1], is that intentional? If not would you mind taking another look at >>> this patch? > > I reverse-engineered my =test-init.el= script using a call to > =org-test-run-batch-tests= and from that worked out why your script was > breaking tests. > > One problem on my system is that emacs was using the wrong org mode > since the newer org location wasn't known about. Also, the languages, > emacs-lisp and sh need to be switched on (I thought emacs-lisp was on by > default)? > > Now all tests pass. > > My minimised script... > > --8<---------------cut here---------------start------------->8--- > (let ((org-dir "~/org-mode/")) > (add-to-list 'load-path (concat org-dir "lisp")) > (add-to-list 'load-path (concat org-dir "testing")) > (require 'org-test) > (setq org-confirm-babel-evaluate nil) > (org-babel-do-load-languages > 'org-babel-load-languages '((emacs-lisp . t) (sh . t))) > (org-test-run-batch-tests)) > --8<---------------cut here---------------end--------------->8--- > > Called by... > > --8<---------------cut here---------------start------------->8--- > emacs -Q -script ~/orgmode/testing/test-init.el > --8<---------------cut here---------------end--------------->8--- > > Your modified script... > > --8<---------------cut here---------------start------------->8--- > emacs -Q -batch -L ~/org-mode/lisp ~/org-mode/testing -l org-test.el \ > -eval "(progn(setq org-confirm-babel-evaluate nil) \ > (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp \ > . t) (sh . t))))" -f org-test-run-batch-tests > --8<---------------cut here---------------end--------------->8--- > > I've fixed my typos in test-ob.el below. > > Best, Martyn > > > > > > [...]
I just tried to run the tests, and I got the following error: >rkrug@ecolmod:~$ emacs -Q -batch -L ~/.emacs.d/org-mode/lisp >~/.emacs.d/org-mode/testing -l org-test.el -eval "(progn(setq >org-confirm-babel-evaluate nil) \ (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp \ . t) (sh . t))))" -f org-test-run-batch-tests Cannot open load file: ert rkrug@ecolmod:~$ I read that the ert file should be included in emacs but I installed GNU Emacs 23.2.1 from the ubuntu repos - do I have tio install from source? Org-mode version 7.7 (release_7.7.267.g1633) I would very much like to run the tests on my system. Thanks, Rainer