From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Collection of code block snippets Date: Thu, 08 Sep 2011 09:16:01 -0600 Message-ID: <87mxef6p4r.fsf@gmail.com> References: <878vq48dvt.fsf@gmail.com> <87zkiiq4ko.fsf@gmail.com> <87bouxr3v1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1gLA-0000wH-Oq for emacs-orgmode@gnu.org; Thu, 08 Sep 2011 11:16:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1gL4-0007cc-Vh for emacs-orgmode@gnu.org; Thu, 08 Sep 2011 11:16:32 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:46110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1gL4-0007cV-OH for emacs-orgmode@gnu.org; Thu, 08 Sep 2011 11:16:26 -0400 Received: by pzk36 with SMTP id 36so1333189pzk.17 for ; Thu, 08 Sep 2011 08:16:25 -0700 (PDT) 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 Hi Martyn Martyn Jago writes: > Hi Eric > > Eric Schulte writes: > > [...] > >> >> I just made three small changes to the testing framework so it is now >> possible to run the test suite in batch mode with the following. >> >> emacs -Q --batch -l path/to/org/testing/org-test.el --eval "(setq >> org-confirm-babel-evaluate nil)" -f org-test-run-all-tests > > Great idea - unfortunately its not quite working for me since I get > four failing tests. In addition I have no (easy) indication of which > four tests are failing since the backtrace is just the output of the > tests working (no backtrace for failed tests). > I'm getting four failing tests as well when I start Emacs with the -Q option and no failing tests when I run it with my configuration loaded. I will dig through my personal config, find out what options are making these tests pass, and adjust the tests appropriately so that they all pass with no personal config. > > This is what I like about the ert-run-batch commands - you get an > indication and summary of tests passed, and the backtrace of any > failures. > > Also, I mentioned that ert-batch.el and ert-run.el are not part of > Emacs. This is actually because their contents were merged into ert.el > within Emacs. > Thanks for mentioning the batch ert commands, I was not aware of their existence. I've added a batch version of org-test-run-all-tests to the org-mode test suite, the following should now be sufficient to run the test suite from the command line with nicer output. #+begin_src sh emacs -Q --batch -l path/to/org/testing/org-test.el \ --eval "(setq org-confirm-babel-evaluate nil)" \ -f org-test-run-all-tests #+end_src Thanks -- Eric > > Regards > > Martyn > >> >> Best -- Eric > > -- Eric Schulte http://cs.unm.edu/~eschulte/