[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Repeating a test suite with a different executable
From: |
Braden McDaniel |
Subject: |
Re: Repeating a test suite with a different executable |
Date: |
Mon, 15 Oct 2007 01:29:04 -0400 |
On Sun, 2007-10-14 at 21:03 -0600, Eric Blake wrote:
> According to Braden McDaniel on 10/14/2007 8:33 PM:
> > Is there something clever I could do to repeat a series of tests (in
> > testsuite.at) with different executables? The tests consist of a series
> > of input files.
>
> Autotest is built on top of m4sugar, which is a macro preprocessor, so it
> sounds like you would just write a macro that takes one parameter (the
> test you are running) and expands into the text that tests everything
> using the parameter in place of the program name. Autoconf's own
> tests/local.at shows a good example of writing macros that make it easier
> to factor out the repetitive parts of tests into higher-level macros
> conditionalized on the one part of the family of tests that differs
> between tests. Or consider tests/autotest.m4, where the macro AT_CHECK_AT
> expands into the entire AT_SETUP/AT_DATA/AT_CHECK/AT_CLEANUP sequence.
Thanks for the pointers. Looks like I should be able to cook something
up.
--
Braden McDaniel e-mail: <address@hidden>
<http://endoframe.com> Jabber: <address@hidden>