automake
[Top][All Lists]
Advanced

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

Re: Large number of tests when shell has limited argument list space


From: Ralf Wildenhues
Subject: Re: Large number of tests when shell has limited argument list space
Date: Tue, 6 Feb 2007 23:51:37 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hello Albert,

* Albert Chin wrote on Tue, Feb 06, 2007 at 09:45:10PM CET:
> 
> I don't know if this is easy, but check-TESTS could be modified to
> iterate over more than one $(TESTS) variable:
>   check-TESTS: $(TESTS1) $(TESTS2) $(TESTS3) ...
>           @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[        ]'; \
>           srcdir=$(srcdir); export srcdir; \
>           list=' $(TESTS1) '; \
>           if test -n "$$list"; then \
>             ...
>           fi; \
>           list=' $(TESTS2) '; \
>           if test -n "$$list"; then \
>             ...
>           fi; \
>           list=' $(TESTS3) '; \
>           if test -n "$$list"; then \
>             ...
>           fi; \
>           ...

Doesn't work: the whole rule (until the first non-escaped newline) is
passed to the shell at once, as in:
  sh -c 'failed=0; all=0; ...'

It's this call which will fail.

Cheers,
Ralf




reply via email to

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