automake
[Top][All Lists]
Advanced

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

Re: Several pass for a simple test in make check


From: Stefano Lattarini
Subject: Re: Several pass for a simple test in make check
Date: Sat, 17 Nov 2012 01:46:48 +0100

On 11/16/2012 04:27 PM, Alexis Praga wrote:
> Hi,
> 
> Is it possible to have several "PASS" or "FAIL" output with a single script
> in TESTS ?
>
Yes -- but only if you use TAP, or define some custom test protocol that
can do so.  More info:
<http://www.gnu.org/software/automake/manual/automake.html#Using-the-TAP-test-protocol>
<http://www.gnu.org/software/automake/manual/automake.html#Custom-Test-Drivers>
Both these approaches require Automake 1.12 or later though.

> I only have one script which loop over several configurations, so I would
> like to have one output for each iteration.
> 'make check' only write once in a log file for each test though.
>
> The TAP protocol allows that but I cannot use it (see my previous question
> on the mailing list).
>
A band-aid solution is to have a test script automatically generated for each
configuration you have to support.  This might also offer better performances
with concurrent make (and if your per-configuration tests are not fast, this
might indeed become the preferred solution).

HTH,
  Stefano




reply via email to

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