emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* testing/README: need to enable sh and org for the current test
@ 2013-01-27 14:24 Yasushi SHOJI
  2013-01-30 16:35 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Yasushi SHOJI @ 2013-01-27 14:24 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

With the current HEAD(release_7.9.3d-894-gfe805ed), it seems we need
to load "sh" and "org" for babel language to run the test sucessfully.

#+BEGIN_SRC elisp
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((emacs-lisp . t)
     (sh . t)
     (org . t)))
  (setq org-confirm-babel-evaluate nil)
#+END_SRC

Am I missing something? Does it work as documented in testing/README
for everyone?

if not, should we patch the README like this? (just an idea, not completed)

diff --git a/testing/README b/testing/README
index 8ce7a19..9601ea7 100644
--- a/testing/README
+++ b/testing/README
@@ -15,12 +15,16 @@ The simplest way to run the Org-mode test suite is from the command
 line with the following invocation.  Note that the paths below are
 relative to the base of the Org-mode directory.
 
+Also note that many of the current tests uses babel evaluation...
+
 #+BEGIN_SRC sh :dir (expand-file-name "..")
   # For Emacs earlier than 24, add -L /path/to/ert
   emacs -Q --batch \
         -L lisp/ -L testing/ -L testing/lisp -l lisp/org.el \
         -l lisp/org-id.el -l testing/org-test.el \
-        --eval "(progn (org-reload) (setq org-confirm-babel-evaluate nil))" \
+        --eval "(progn (org-reload) (setq org-confirm-babel-evaluate nil) \
+        (org-babel-do-load-languages 'org-babel-load-languages \
+        '((emacs-lisp . t) (sh . t) (org . t))))" \
         -f org-test-run-batch-tests
 #+END_SRC
 
@@ -43,7 +47,12 @@ load and run the test suite with the following commands.
      (require 'org-test)
    #+END_SRC
 
-2) Then run the test suite,
+2) Disable babel evaluation confirmation
+   #+BEGIN_SRC emacs-lisp
+     (setq org-confirm-babel-evaluate)
+   #+END_SRC
+
+3) Then run the test suite,
    #+BEGIN_SRC emacs-lisp
      (org-test-run-all-tests)
    #+END_SRC
-- 
           yashi

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: testing/README: need to enable sh and org for the current test
  2013-01-27 14:24 testing/README: need to enable sh and org for the current test Yasushi SHOJI
@ 2013-01-30 16:35 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-01-30 16:35 UTC (permalink / raw)
  To: Yasushi SHOJI; +Cc: emacs-orgmode

Hi Yasushi,

Yasushi SHOJI <yashi@atmark-techno.com> writes:

> With the current HEAD(release_7.9.3d-894-gfe805ed), it seems we need
> to load "sh" and "org" for babel language to run the test sucessfully.

Indeed.

> #+BEGIN_SRC elisp
>   (org-babel-do-load-languages
>    'org-babel-load-languages
>    '((emacs-lisp . t)
>      (sh . t)
>      (org . t)))
>   (setq org-confirm-babel-evaluate nil)
> #+END_SRC
>
> Am I missing something? 

Nope -- I applied your patch in master, thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-30 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-27 14:24 testing/README: need to enable sh and org for the current test Yasushi SHOJI
2013-01-30 16:35 ` Bastien

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).