bug-make
[Top][All Lists]
Advanced

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

Re: [bug #33138] .PARLLELSYNC enhancement with patch


From: Paul Smith
Subject: Re: [bug #33138] .PARLLELSYNC enhancement with patch
Date: Sun, 21 Apr 2013 19:30:05 -0400

On Fri, 2013-04-19 at 14:09 +0300, Eli Zaretskii wrote:
> > Date: Fri, 19 Apr 2013 11:54:05 +0200
> > Cc: address@hidden, address@hidden
> > From: Frank Heckenbach <address@hidden>
> > 
> > > Is there a simple enough Makefile somewhere that could be used to test
> > > this feature, once implemented?
> > 
> > We have a test in the test suite (output-sync). Can you use that?
> 
> I hoped for something simpler and not involving Perl or Unixy shell
> features, because I'd like to use this in the native Windows
> environment, where the Windows port of Make runs.  However, if that's
> the best possibility, I guess I'd craft something based on that test.

The basic feature can be tested trivially like this:

  all: one two

  one two:
          @echo start $@
          @sleep 1
          @echo stop $@

Now if you run this using "make -j" you'll get:

  start one
  start two
  stop one
  stop two

If you run this using "make -j -O" you should get:

  start one
  stop one
  start two
  stop two

There's more to test than that: before it's done we need to test
recursive make invocations for example.  But the above is simple.




reply via email to

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