Hi Ralf. On Monday 06 September 2010, Ralf Wildenhues wrote: > * Ralf Wildenhues wrote on Mon, Sep 06, 2010 at 09:39:54PM CEST: > > Hmm, maybe we can generate a makefile snippet on the fly, to be > > included by the recursive make. > > Bob, can you try out this patch? > > Thanks, > Ralf > > 2010-09-06 Ralf Wildenhues <[email protected]> > > parallel-tests: avoid command-line length limit issue. > * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass > sanitized TEST_LOGS value as makefile snippet on standard > input to $(MAKE), to avoid exceeding the command line limit on > w32 (MSYS). > Report by Bob Friesenhahn. > > diff --git a/lib/am/check.am b/lib/am/check.am > index c612b22..39ae9d2 100644 > --- a/lib/am/check.am > +++ b/lib/am/check.am > @@ -236,10 +236,12 @@ check-TESTS: > ## we rely on .PHONY to work portably. > @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) > @list='$(TEST_LOGS)'; \ > - list=`for f in $$list; do \ > - test .log = $$f || echo $$f; \ > - done | tr '\012\015' ' '`; \ > - $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$list" > + { echo "TEST_LOGS = "; \ > + for f in $$list; do \ > + test .log = $$f || echo $$f; \ > + done; \ > + } | { tr '\012\015' ' '; echo; } \ > + | $(MAKE) -f Makefile -f - $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) Does this works even if the developer is using, say, GNUmakefile.am instead of Makefile.am?
Regards, Stefano
