From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Collection of code block snippets Date: Mon, 05 Sep 2011 10:54:40 -0600 Message-ID: <87zkiiq4ko.fsf@gmail.com> References: <878vq48dvt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0d0s-0007oS-5S for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 13:31:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0d0q-0003nV-Nt for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 13:31:14 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:36431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0d0q-0003mY-F3 for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 13:31:12 -0400 Received: by pzk36 with SMTP id 36so9650729pzk.17 for ; Mon, 05 Sep 2011 10:31:10 -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: Rainer M Krug Cc: Org Mode Hi Rainer, > Just as a sideline: would it be possible, to use this file to test babel (on > a high level)?, i.e. collect all results and compare them with previous sets > of results? > Two problems I see with running these examples in a single large block 1. I'm not sure how to collect all of the results, both of the two options that occur to me - mapping over each example and evaluating the first code block or - exporting to some backend and checking the resulting export file would either leave out some results or possibly be very brittle to small changes (e.g., changes in the exporter backend) 2. executing the whole set would require a wide range of languages be installed on the users system many of which most people would never use > > Especially, as this file is high-level and contains a whole range of > "examples for the real world", I think that might be useful. It would > definitely not be usable t pinpoint errors, but at identify unintended side > effects. I do agree that this collection holds great promise as fodder for Babel unit tests (unit tests which are sorely needed). Each example could be wrapped in an ert test method and then one-by-one copied over into the Org-mode test suite. This should be a fairly easy way to greatly increase Babel's test suite coverage -- and most importantly it would be explicitly testing topics that have arisen previously on the mailing list so are of importance to users. > And if this could be done by the user to test .emacs configuration > settings, that would be really great. > That's a good idea. Simply running the Org-mode test suite is a good way for users to test the sanity of their local config. Best -- Eric > > Thanks, > > Rainer > > > >> >> Hope this is useful and or fun, I will continue to update it as the >> scraps.org file grows. >> >> Cheers -- Eric >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte/ >> >> -- Eric Schulte http://cs.unm.edu/~eschulte/