emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Martyn Jago <martyn.jago@btinternet.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] Collection of code block snippets
Date: Fri, 09 Sep 2011 14:39:36 -0600	[thread overview]
Message-ID: <87pqj9fo0x.fsf@gmail.com> (raw)
In-Reply-To: m24o0mynqj.fsf@btinternet.com

Martyn Jago <martyn.jago@btinternet.com> writes:

> Hi Eric
>
> Martyn Jago <martyn.jago@btinternet.com> writes:
>
> [...]
>
>>
>> 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)?
>
> I was quite wrong here, emacs-lisp is available - apologies for the
> noise.
>
> My last stab at this is floating a suggestion for something like the
> following in org-tests.el...
>
> (let ((org-test-dir (expand-file-name
> 		      (file-name-directory
> 		       (or load-file-name buffer-file-name)))))
>    (let ((org-lisp-dir (expand-file-name
>    		       (concat org-test-dir "../lisp"))))
>      (unless (member 'features "org")
>        (setq load-path (cons org-lisp-dir load-path))
>        (org-babel-do-load-languages
> 	'org-babel-load-languages '((sh . t)))))
>    (let* ((load-path (cons
> 		     (expand-file-name "ert" org-test-dir)
> 		     (cons
> 		      (expand-file-name "jump" org-test-dir)
> 		      load-path))))
>     (require 'ert)
>     (require 'ert-x)
>     (require 'jump)
>     (require 'which-func)
>     (require 'org)))
>

Looks perfect, I'm adding this to the definition of `org-test-run-batch-tests'.

I still get one failing test when running this in batch mode.
,----
| 1 unexpected results:
|    FAILED  test-org-babel/inline-src-blocks
`----

and 6 failures when run interactively, but these may be local issues so
I'll check them out.
,----
| Selector: "\\(org\\|ob\\)"
| Passed: 103
| Failed: 6 (6 unexpected)
| Total:  109/109
| 
| Started at:   2011-09-09 14:38:49-0600
| Finished.
| Finished at:  2011-09-09 14:38:54-0600
| 
| ..........................................................................F..FFFFF...........................
| 
| F test-org-babel/inline-src_blk-default-results-replace-line-1
|     (error "C-c C-c can do nothing useful at this location")
| 
| F test-org-babel/inline-src_blk-results-file
|     (error "C-c C-c can do nothing useful at this location")
| 
| F test-org-babel/inline-src_blk-results-raw
|     (error "C-c C-c can do nothing useful at this location")
| 
| F test-org-babel/inline-src_blk-results-scalar
|     (error "C-c C-c can do nothing useful at this location")
| 
| F test-org-babel/inline-src_blk-results-silent
|     (error "C-c C-c can do nothing useful at this location")
| 
| F test-org-babel/inline-src_blk-results-verbatim
|     (error "C-c C-c can do nothing useful at this location")
`----

Thanks -- Eric

>
> In otherwords, if org is not yet a feature, add org mode to the load
> path _and_ =do-load-babel-languages= adding sh, but keeping evaluation confirmation
> on the command line. 
>
> This reduces your script back to...
>
> Emacs -Q -batch -l org-test.el -eval "(setq org-confirm-babel-evaluate nil)" -f org-test-run-batch-tests
>
> Regards
>
> Martyn
>
>
> [...]
>
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

  reply	other threads:[~2011-09-09 20:40 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-04 16:35 [babel] Collection of code block snippets Eric Schulte
2011-09-05  8:29 ` Rainer M Krug
2011-09-05 16:54   ` Eric Schulte
2011-09-06  8:26     ` Rainer M Krug
2011-09-06 15:16       ` Eric Schulte
2011-09-06 15:35       ` Martyn Jago
2011-09-06 17:13         ` Eric Schulte
2011-09-07  8:19           ` Rainer M Krug
2011-09-07 18:24             ` Martyn Jago
2011-09-07 18:15           ` Martyn Jago
2011-09-08 15:16             ` Eric Schulte
2011-09-08 16:18               ` Martyn Jago
2011-09-08 17:44                 ` Eric Schulte
2011-09-08 18:34                   ` Martyn Jago
2011-09-08 22:03                     ` Martyn Jago
2011-09-09  8:22                       ` Rainer M Krug
2011-09-09 10:58                         ` Martyn Jago
2011-09-09 11:11                       ` Martyn Jago
2011-09-09 20:39                         ` Eric Schulte [this message]
2011-09-10  8:09                           ` Martyn Jago
2011-09-11 20:57                             ` Eric Schulte
2011-09-14  4:49                             ` David Maus
2011-09-14 12:10                               ` Martyn Jago
2011-09-09 19:19                       ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqj9fo0x.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=martyn.jago@btinternet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).