[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [babel] Collection of code block snippets
From: |
Rainer M Krug |
Subject: |
Re: [O] [babel] Collection of code block snippets |
Date: |
Fri, 09 Sep 2011 10:22:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 |
On Fri 09 Sep 2011 00:03:59 CEST, Martyn Jago wrote:
> Hi Eric
>
> Martyn Jago <address@hidden> writes:
>
>> Hi Eric
>>
>> Eric Schulte <address@hidden> 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:
>address@hidden:~$ 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
address@hidden:~$
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
- Re: [O] [babel] Collection of code block snippets, (continued)
- Re: [O] [babel] Collection of code block snippets, Martyn Jago, 2011/09/07
- Re: [O] [babel] Collection of code block snippets, Eric Schulte, 2011/09/08
- Re: [O] [babel] Collection of code block snippets, Martyn Jago, 2011/09/08
- Re: [O] [babel] Collection of code block snippets, Eric Schulte, 2011/09/08
- Re: [O] [babel] Collection of code block snippets, Martyn Jago, 2011/09/08
- Re: [O] [babel] Collection of code block snippets, Martyn Jago, 2011/09/08
- Re: [O] [babel] Collection of code block snippets,
Rainer M Krug <=
- Re: [O] [babel] Collection of code block snippets, Martyn Jago, 2011/09/09
- Re: [O] [babel] Collection of code block snippets, Martyn Jago, 2011/09/09
- Re: [O] [babel] Collection of code block snippets, Eric Schulte, 2011/09/09
- Re: [O] [babel] Collection of code block snippets, Martyn Jago, 2011/09/10
- Re: [O] [babel] Collection of code block snippets, Eric Schulte, 2011/09/11
- Re: [O] [babel] Collection of code block snippets, David Maus, 2011/09/14
- Re: [O] [babel] Collection of code block snippets, Martyn Jago, 2011/09/14
- Re: [O] [babel] Collection of code block snippets, Eric Schulte, 2011/09/09