emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] test-ob-sh/session


From: Achim Gratz
Subject: Re: [O] test-ob-sh/session
Date: Fri, 03 Aug 2012 22:25:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Eric Schulte writes:
> There are a number of tests which execute shell code blocks in
> test-ob.el.  This file has no guards, so it will be run on every
> system.

I know, I'm not (currently) talking about these.  What puzzles me is
that the three tests in test-ob-sh get defined and run even though the
feature ob-sh is not available.  It may be that this gets somehow
subverted by having the other tests unguarded, but I can't see how.

> I guess at the time I wrote these tests I assumed that every system
> would support both emacs-lisp and sh code blocks.

Specifically a shell that is more or less POSIX compatible... even
though even tcsh passes all tests.  :-)

> At some point either
>
> 1. all tests in test-ob.el which run sh code blocks should be placed
>    behind conditional guards so they are only loaded when shell support
>    is present

That would be preferrable for tests which really depend on a shell being
available.

> 2. all tests in test-ob.el which run sh code blocks should be switched
>    to running emacs-lisp code blocks

And this would be preferred for tests which should always be run without
making any assumptions on the environment.



Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




reply via email to

[Prev in Thread] Current Thread [Next in Thread]