From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] using babel for regression testing Date: Tue, 17 Apr 2012 13:46:42 -0400 Message-ID: <87k41eb69p.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKEMY-0003FN-4h for emacs-orgmode@gnu.org; Tue, 17 Apr 2012 15:46:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKEMT-0003j2-Tj for emacs-orgmode@gnu.org; Tue, 17 Apr 2012 15:46:53 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:34614) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SKEMT-0003il-MD for emacs-orgmode@gnu.org; Tue, 17 Apr 2012 15:46:49 -0400 In-Reply-To: (Ilya Shlyakhter's message of "Thu, 12 Apr 2012 12:05:45 -0400") 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: Ilya Shlyakhter Cc: emacs-orgmode@gnu.org Ilya Shlyakhter writes: > Is there a babel command to do the following: > evaluate all code blocks; for those for which the result is not yet > recorded in the org file, record the result; for those for which the > result was already recorded, compare the new result with the old result; > flag blocks where there is a difference. > > thanks, > > ilya > > Hi ilya, No, the above workflow is not wrapped up in any existing single Babel function. If you wanted to implement this yourself you could do so with a custom emacs lisp function or perhaps more easily, you could either; 1. add one code block to the file which calls all other code blocks and performs the result comparison, or 2. you could do what we did when initially testing the Babel functionality, and include all of your tests in a single table along with the expected results, you can then use the `sbe' function from table formulas, to run all code blocks by evaluating the table. -- Eric Schulte http://cs.unm.edu/~eschulte/