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: > >> 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 run. > > > Why not? I do that in Automake all the time: > > $ make check TESTS="..." > > > The only way to do that would be to generate again the list of test files > > and recreate a Makefile. > > > No, overriding TESTS at runtime is enough (and it is a very important and > prominently documented feature). > > HTH, > Stefano > > > -- Alexis Praga