From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [babel] Collection of code block snippets Date: Fri, 09 Sep 2011 10:22:16 +0200 Message-ID: <4E69CCB8.4050707@gmail.com> References: <878vq48dvt.fsf@gmail.com> <87zkiiq4ko.fsf@gmail.com> <87bouxr3v1.fsf@gmail.com> <87mxef6p4r.fsf@gmail.com> <87bouvdj15.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1wLw-0004wt-Dx for emacs-orgmode@gnu.org; Fri, 09 Sep 2011 04:22:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1wLv-00042c-5C for emacs-orgmode@gnu.org; Fri, 09 Sep 2011 04:22:24 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:48824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1wLv-00042V-0n for emacs-orgmode@gnu.org; Fri, 09 Sep 2011 04:22:23 -0400 Received: by wwf10 with SMTP id 10so651939wwf.30 for ; Fri, 09 Sep 2011 01:22:21 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martyn Jago Cc: emacs-orgmode@gnu.org On Fri 09 Sep 2011 00:03:59 CEST, Martyn Jago wrote: > Hi Eric > > Martyn Jago writes: > >> Hi Eric >> >> Eric Schulte 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