[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Splitting some erc tests
From: |
Stefan Monnier |
Subject: |
Re: Splitting some erc tests |
Date: |
Tue, 24 May 2022 22:17:37 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> but that goes against the Make grain -- Make should control the
> parallelism, of course. So a number of rules like:
>
> %.log-1: %.elc
> $(emacs) ... (ert-run-tests-batch-and-exit ... $* $jobs)
>
> or something... but... this is way out of my Makefile comfort zone.
Something like that, yes.
My intuition tells me to first give those tests some unique name
pattern, so that we can use a different rule like
%-par2.log: %-par2.elc %-2.1-part.log %-2.2-part.log
cat $*-2.1-part.log $*-2.2-part.log >$@
Generalizing this to `%-parN.log` and writing the rules for
`%-N.M-part.log` is left as an exercise for the reader.
BTW I don't think we need to know the `-j` arg passed to `make` to
decide how to split the files: just split them into coarse enough grains
that splitting them doesn't slow down the -j1 case significantly.
Stefan