automake-patches
[Top][All Lists]
Advanced

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

Re: [PATCH 11] Fix LAZY_TEST_SUITE handling and $(TEST_SUITE_LOG) recrea


From: Ralf Wildenhues
Subject: Re: [PATCH 11] Fix LAZY_TEST_SUITE handling and $(TEST_SUITE_LOG) recreation.
Date: Fri, 20 Mar 2009 00:24:15 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* Akim Demaille wrote on Sat, Mar 14, 2009 at 03:00:42PM CET:
> I defined TEST_LOGS from tests and tests from TESTS so that I can run
>
>       make check TESTS='2.x/*.chk *uob*'
>
> to have globbing on the list of the tests to run.  Partial runs of the  
> test suite have proved to be a very valuable feature.

Yes, I value partial runs of the testsuite.  This is the major reason we
worked hard to get $(TEST_LOGS) defined as make macro substitution based
on $(TESTS).

The old Automake testsuite allowed
  make check "TESTS=foo*.test"

style globbing, but more by accident than as an intended feature, I
think.  The new one does not allow this, at the moment.  If you're a
shell junkie, then of course there is help at hand:
  set x foo*.test ../../source/dir/bar*.test
  shift
  make check "TESTS=$*"

or
  eval make check \'TESTS= foo*.test ../../source/dir/bar*.test \'

Of course the need for manual VPATH resolution is a bit ugly (but was
needed for the non-parallel test suite as well).

Retaining the "TESTS=foo*.test" thing without GNU make-specific measures
is tricky.  It requires to shell-expand $(TESTS), before we even start
using either of $(TESTS) or $(TEST_LOGS).  IIUC that means we have to
introduce yet another restart of 'make'.  :-/
Do you see another way?

Thanks,
Ralf




reply via email to

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