emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: Ilya Shlyakhter <ilya_shl@alum.mit.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] using babel for regression testing
Date: Tue, 17 Apr 2012 13:46:42 -0400	[thread overview]
Message-ID: <87k41eb69p.fsf@gmx.com> (raw)
In-Reply-To: <jm6ugo$uon$1@dough.gmane.org> (Ilya Shlyakhter's message of "Thu, 12 Apr 2012 12:05:45 -0400")

Ilya Shlyakhter <ilya_shl@alum.mit.edu> 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/

      reply	other threads:[~2012-04-17 19:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12 16:05 [babel] using babel for regression testing Ilya Shlyakhter
2012-04-17 17:46 ` Eric Schulte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k41eb69p.fsf@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ilya_shl@alum.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).