autoconf-patches
[Top][All Lists]
Advanced

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

Re: Autotest function usage


From: Ralf Wildenhues
Subject: Re: Autotest function usage
Date: Thu, 18 Oct 2007 00:54:58 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* Eric Blake wrote on Wed, Oct 17, 2007 at 11:22:57PM CEST:
> 
> Effectively, your patch eliminated the reason to worry about freeing the 
> memory 
> across forks, since the test groups are no longer occupying memory as 
> functions.  Also, your approach supercedes my idea about performing a single 
> sed script up front - since we are no longer using shell functions, the 
> $at_test_source can no longer contain more than one test at a time.

You could have a sed script that copies out all tests you're interested
in, and also sprinkles in the intermediate code.  Getting that right in
the presence of sed command limits can be fun though.  Of course awk
can help.  Or simpler, create all per-test sources in one go:

  /^#AT_START_27$/,/^#AT_STOP_27/w at-test-source-27
  /^#AT_START_44$/,/^#AT_STOP_44/w at-test-source-44
  ...

I have no idea how many `w' commands can portably be used in a sed
script, but this would definitely need good testing on older systems.

Cheers,
Ralf




reply via email to

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