automake
[Top][All Lists]
Advanced

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

Re: Extended test suites


From: Ralf Wildenhues
Subject: Re: Extended test suites
Date: Sat, 29 Aug 2009 10:27:17 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

* Ralf Wildenhues wrote on Fri, Aug 28, 2009 at 08:20:30PM CEST:
> * Martin Quinson wrote on Thu, Aug 27, 2009 at 06:33:05PM CEST:
> > TESTS?=regular mandatory tests
> > TESTS_EXTRA=other, more fragile tests.
> > check-extra: $(TESTS_EXTRA)
> >     for d in $(SUBDIRS) ; do $(MAKE) check-extra $$d ; done
> >     TESTS="$(TESTS) $(TESTS_EXTRA)" $(MAKE) check
> 
> Why does this not work?
> 
> TESTS = regular mandatory tests
> TESTS_EXTRA = other, more fragile tests.
> check-extra: $(TESTS_EXTRA)
>       for d in $(SUBDIRS) ; do $(MAKE) check-extra $$d ; done
>       $(MAKE) check TESTS="$(TESTS) $(TESTS_EXTRA)"

Hmm, now that I've slept over it, my suggestion will also override TESTS
in subdirectories, at least when you use GNU make.  You could ignore it
by running an internal rule that doesn't recurse like check does, or
override the variable for the called instance only: that should work
portably with the suggestion from
<http://thread.gmane.org/gmane.comp.sysutils.automake.general/10961/focus=10962>

Cheers,
Ralf




reply via email to

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