[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autotest: loops of tests

From: Noah Misch
Subject: Re: Autotest: loops of tests
Date: Sat, 19 Mar 2005 13:29:32 -0800
User-agent: Mutt/

On Fri, Mar 18, 2005 at 09:03:52AM +0100, Ralf Wildenhues wrote:
> for flag in -foo -bar
> do
>   AT_SETUP(test with flag $flag.)
>   AT_DATA(, ...)
>   AT_CHECK($compile $flag ..)
> done
> except that AT_SETUP does not to work inside a shell compound command.
> Alternatively, I would be happy as well with any other means which
> achieves almost the same effect.  Like:

I suggest using an m4sugar looping construct or writing a macro to abstract the
common bits.  AT_CHECK_AT_TITLE_CHAR and its underlying stack in
demonstrate the latter approach.  Does one of those techniques meet your needs?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]