On Fri, 2013-04-19 at 14:09 +0300, Eli Zaretskii wrote:
> > Date: Fri, 19 Apr 2013 11:54:05 +0200
> > Cc: bo...@kolpackov.net, bug-make@gnu.org
> > From: Frank Heckenbach <f.heckenb...@fh-soft.de>
> > 
> > > 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.


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to