Re: Several pass for a simple test in make check

2012-11-20 Thread Alexis Praga
Ha, yes. Simple and elegant. And we can use regexp for defining TESTS (not directly, but a temporary variable will work well enough). Adopted, thanks :) On Tue, Nov 20, 2012 at 5:06 PM, Stefano Lattarini < stefano.lattar...@gmail.com> wrote: > On 11/20/2012 03:58 PM, Alexis Praga wrote: > >> Yo

Re: Several pass for a simple test in make check

2012-11-20 Thread Stefano Lattarini
On 11/20/2012 03:58 PM, Alexis Praga wrote: >> You might write a script that generates both the tests and their >> list, and have this list included in the Makefile.am. Automake's >> own build system do something similar in its bootstrap.sh script: >> > > With this solution, the user cannot chose

Re: Several pass for a simple test in make check

2012-11-20 Thread Alexis Praga
> You might write a script that generates both the tests and their > list, and have this list included in the Makefile.am. Automake's > own build system do something similar in its bootstrap.sh script: > With this solution, the user cannot chose at runtime a certain number of tests he wants to ru

Re: Several pass for a simple test in make check

2012-11-17 Thread Stefano Lattarini
On 11/17/2012 11:26 AM, Alexis Praga wrote: >> >> 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

Re: Several pass for a simple test in make check

2012-11-17 Thread Alexis Praga
> > 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). > I

Re: Several pass for a simple test in make check

2012-11-16 Thread Stefano Lattarini
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:

Several pass for a simple test in make check

2012-11-16 Thread Alexis Praga
Hi, Is it possible to have several "PASS" or "FAIL" output with a single script in TESTS ? 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