From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yasushi SHOJI Subject: testing/README: need to enable sh and org for the current test Date: Sun, 27 Jan 2013 23:24:20 +0900 Message-ID: <87y5feg0vf.wl@dns1.atmark-techno.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzTA2-0007Cl-Jb for emacs-orgmode@gnu.org; Sun, 27 Jan 2013 09:24:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzTA1-00085X-FV for emacs-orgmode@gnu.org; Sun, 27 Jan 2013 09:24:42 -0500 Received: from plane.gmane.org ([80.91.229.3]:36470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzTA1-00085O-8q for emacs-orgmode@gnu.org; Sun, 27 Jan 2013 09:24:41 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TzTAG-0002BH-GR for emacs-orgmode@gnu.org; Sun, 27 Jan 2013 15:24:56 +0100 Received: from p654785.hkidff01.ap.so-net.ne.jp ([121.101.71.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Jan 2013 15:24:56 +0100 Received: from yashi by p654785.hkidff01.ap.so-net.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Jan 2013 15:24:56 +0100 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: emacs-orgmode@gnu.org 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