help-make
[Top][All Lists]
Advanced

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

RE: Writing a program to be executed from Make and participate in thejob


From: Dave Korn
Subject: RE: Writing a program to be executed from Make and participate in thejob server protocol
Date: Thu, 19 Jul 2007 00:56:42 +0100

On 16 July 2007 23:06, Zack Weinberg wrote:

> I'd like to write a program that, when invoked appropriately from
> inside a parallel make run, participates in the job server protocol.
> Specifically, I have three test suites that get run (using the same
> controller program) from "make check", and I'd like "make -jN check"
> to parallelize individual test cases.  (One of the test suites is much
> larger than the other two.)  The logical way to do this is to code the
> controller to talk to the job server.

> (I don't think it is practical to make the test controller *be* a
> recursive make invocation.)

  My first thought would be "enumerate all the testcases, autogenerate and eval 
a target for each of them and add a dependency on that target to check:".

  Should I guess that you're worried about the overhead of invoking the test 
controller individually for each testcase, and that normally a single 
invocation of the controller runs an entire suite?

  In which case wouldn't you gain 99% of that back by turning the controller 
into a server daemon (perhaps with three instances?) that listens to a fifo or 
something and let the command invoked in the per-test auto rules be a wrapper 
script that sends arguments to the controller and waits for a result back from 
it?

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....





reply via email to

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