all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Splitting some erc tests
Date: Tue, 24 May 2022 22:17:37 -0400	[thread overview]
Message-ID: <jwvwneajrm3.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87bkvmfm8b.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 25 May 2022 03:13:24 +0200")

> 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




  reply	other threads:[~2022-05-25  2:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-24 19:11 Splitting some erc tests Lars Ingebrigtsen
2022-05-24 19:59 ` Stefan Monnier
2022-05-25  1:13   ` Lars Ingebrigtsen
2022-05-25  2:17     ` Stefan Monnier [this message]
2022-05-25 12:02       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvwneajrm3.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.